Highlighted

Robohelp 2015: remove font attribute from any instance of a style

Explorer ,
Sep 12, 2016

Copy link to clipboard

Copied

I am working with a fairly old help file, imported from (I think) Robohelp 7. All the pages are topped with a banner that uses 'Heading 1'. I need to change the colours of 'Heading 1' to match corporate policy. I have updated the relevant CSS file. I have updated all pages to make sure they are referencing the correct CSS file. On pages that I have written since I took on the task, the new colours are applied as I would hope - albeit at design time, with a strange pattern of diagonal lines on the background colour.

The problem is with the older pages. Whilst they also use 'Heading 1', they appear to have a font attribute placed over the top of the embedded style. This means they do not inherit the white lettering of my new style, they remain black, which renders them unreadable against my new background colour. If I right click on an affected heading, I can 'remove attribute' and the black text turns white as per the CSS. However there are far too many pages thus affected for me to address them all.

Is there a way to remove all font attributes from anything having the 'Heading 1' style?

Adobe Community Professional
Correct answer by Peter Grainge | Adobe Community Professional

Search has a Starts With and Ends With feature. You need to be careful with it so back up first.

Topics

HTML help

Views

475

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Robohelp 2015: remove font attribute from any instance of a style

Explorer ,
Sep 12, 2016

Copy link to clipboard

Copied

I am working with a fairly old help file, imported from (I think) Robohelp 7. All the pages are topped with a banner that uses 'Heading 1'. I need to change the colours of 'Heading 1' to match corporate policy. I have updated the relevant CSS file. I have updated all pages to make sure they are referencing the correct CSS file. On pages that I have written since I took on the task, the new colours are applied as I would hope - albeit at design time, with a strange pattern of diagonal lines on the background colour.

The problem is with the older pages. Whilst they also use 'Heading 1', they appear to have a font attribute placed over the top of the embedded style. This means they do not inherit the white lettering of my new style, they remain black, which renders them unreadable against my new background colour. If I right click on an affected heading, I can 'remove attribute' and the black text turns white as per the CSS. However there are far too many pages thus affected for me to address them all.

Is there a way to remove all font attributes from anything having the 'Heading 1' style?

Adobe Community Professional
Correct answer by Peter Grainge | Adobe Community Professional

Search has a Starts With and Ends With feature. You need to be careful with it so back up first.

Topics

HTML help

Views

476

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Sep 12, 2016

Copy link to clipboard

Copied

You to remove the inline styling use multi-file find and replace. Backup first.

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Sep 14, 2016

Copy link to clipboard

Copied

Thank you for the response, I didn't know what I was looking for in the HTML really but I have now figured it out thanks to your nudge. In this example the title "Topics" is wrapped in its own inline style and then with a tag for Heading 1:

<h1 id="H11" style="position: relative;"><font style="font-size: 14pt;"

  color="#010100" size="4">Topics</font></h1>

As you can see RH has broken the text over two lines. What you cannot see in the snip is a number of tab characters which are also present. I have figured out that if I remove the font style tag, RH will clean up the </font> for me. Which is helpful. However there could be up to about 1,000 of these to deal with so I need to use Find and Replace as you suggest. However... I am struggling to get F&R to work on a string that contains a carriage return. Can this be done?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Sep 15, 2016

Copy link to clipboard

Copied

Search has a Starts With and Ends With feature. You need to be careful with it so back up first.

www.grainge.org for free RoboHelp & Authoring info. Use the blue Reply button at the top to help me help you.
The black Reply link nests replies and they sort out of order.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Ayrton_5 LATEST
Explorer ,
Sep 16, 2016

Copy link to clipboard

Copied

That sounds promising, I will give it a go. Thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...