Skip navigation
DannyH.
Currently Being Moderated

Extra bold text?

Apr 10, 2012 7:29 AM

Hi,

 

I create a WebHelp with RH 9. It is a new project which was created in RH 9.

 

The text contains words in bold (like this). Some short lines (style Normal like the text) are also bold. These lines are not headlines, but they should be highlighted in bold (see below).

To add bold I use the bold button of RH. When I generate the WebHelp and open it in Firefox (currently version 11), then words within a text and the short bold line look different ?! The single word appears extra bold and the line appears normal bold.

 

The genereated HTML looks like:

for a word: <span style="font-weight: bold;"><b>word in bold</b></span>

for the short line: <p style="font-weight: bold;">line in bold</p>

 

When I switch to the HTML view in RH it looks like:

for a word: <span style="font-weight: bold;">word in bold</span>

for the short line: <p style="font-weight: bold;">line in bold</p>

 

Why does the generation procedure handle bold things different? And why does it add the <b> tag for words within a longer text? I don't want to create a special style sheet for bold words when there is a button to make a word bold.

 

Can someone explain that?

 

Regards

DannyH

 
Replies
  • Currently Being Moderated
    Apr 11, 2012 11:36 AM   in reply to DannyH.

    Hi,

     

     

     

    I just did a quick test on RH9 and Robo inserts the span as wel as the for the span and the paragraph in my case. Is there a special routine you use for making bold paragraphs? I fiddled with several settings, but I could not get the result you describe.

     

     

     

    Greet,

     

     

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 13, 2012 10:11 AM   in reply to DannyH.

    Mmmh, I tested on two different RoboHelp installations. On one installation, I don't get the result you describe. On the other installation I do get the HTML code you describe, but I don't see any difference in bold text in the output. I must be going nuts...

     

    Could your CSS be interfering somehow by adding a 'font-weight: bolder;' to the <b> element? I will test some more to see what makes the difference.

     

    Greet,

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    May 3, 2012 1:53 PM   in reply to Willam van Weelden

    Hi,

     

    We are seeing the same issue in RH 9.0.1.232 on Windows 7.

     

    The text <span style="font-weight: bold;">Text</span> becomes <span style="font-weight: bold;"><b>Text</b></span> when webhelp is generated.

     

    Whether this appears as "super-bold" in a browser seems to vary depending on the user. When viewing the topic in Firefox 12, the bold text looked fine to me, but a colleague who viewed the same topic on her PC (also in FF12) saw the text as "super-bold."

     

    I wonder if this means that it is something to do with some local browser settings or display settings on the PC used to view the topic?

     

    Any idea why RH is inserting the <b> tags in generated files?

     

    Cheers,

    Dave

     
    |
    Mark as:
  • Currently Being Moderated
    May 3, 2012 1:56 PM   in reply to robopenguin

    Sorry, to clarify, I didn't mean that each user's perception of the boldness of the text varied. The boldness of the text actually did look different on two separate PCs running FF12.

     

    Dave

     
    |
    Mark as:
  • Currently Being Moderated
    May 4, 2012 1:34 AM   in reply to robopenguin

    I've seen the code your describe and, as Willam, has stated, it will not affect appearance.

    1. What font are you using?
    2. Are the two PCs running at different screen resolutions?

     

    It might help to see screenshots. Use the camera icon you will see when replying to insert the images.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 4, 2012 11:06 AM   in reply to Peter Grainge

    Hi Peter,

     

    I think I figured this out. This seems to be a Firefox issue whereby the <b> tag in conjunction with some additional bold formatting on the text (via a style or span tag) is interpreted by Firefox as "bolder". We are using Arial 10pt for the style in the css, so Firefox looks for a font that is bolder than Arial Bold and renders the text as Arial Black.

     

    This is apparently caused by Direct2D/DirectWrite hardware acceleration in Firefox. Disabling hardware acceleration resolved the issue for my collegue. You can do that from the Advanced tab in the Firefox Options dialog box. Interestingly, I have hardware acceleration enabled and I don't see the issue at all, so go figure!

     

    Detailed discussion of the issue can be found at:

    https://bugzilla.mozilla.org/show_bug.cgi?id=548975

    https://bugzilla.mozilla.org/show_bug.cgi?id=550128

     

    For reference, here is a screenshot of the topic in Firefox 12 from my colleague's laptop with hardware acceleration enabled.

    1920 x 1080 laptop.png

    Here is a screenshot of the topic in Firefox 12 with hardware acceleration turned off.

    1920 x 1080 laptop hw_disabled.png

     

    I'm not sure what the HTML/CSS specifications say about how the double bold formatting markup should be interpreted by browsers. Mozilla doesn't seem to consider this a bug.

     

    However, I do wonder what the reasoning is behind RH inserting those <b> tags. If the HTML specs do say that <span style="font-weight: bold;"><b>Text</b> should be interpreted as bolder text, then RH's addition of the <b> tag is changing the markup to something that was not intended by the author.

     

    Cheers,

    Dave

     
    |
    Mark as:
  • Currently Being Moderated
    May 5, 2012 1:42 AM   in reply to robopenguin

    Your images are the same size but note that the words at the end of the line starting "Pinnacle" are different. That suggests the issue is to do with the zoom level the two machines are set at. Check that out.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2012 2:31 AM   in reply to DannyH.

    I don't know if that is a bug but I can only suggest reporting it as such.

     

    Can you identify a style difference between the first bold line and the second as that is where it is most obvious?

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2012 2:55 AM   in reply to Peter Grainge

    Apart from reporting is as a bug, as a workaround, you can use a script or a search and replace to remove all the tags from your output. It’s more work for you, but you customers won’t have to do anything.

     

     

     

    Greet,

     

     

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    May 8, 2012 11:04 AM   in reply to DannyH.

    Create a project with one topic that contains just the above content and uses the same CSS. Check your output from it does create the problem you describe.

     

    See the Contact page on my site and send the project as instructed there. Do make sure you include a link to this thread and please do not email the project direct.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 12:50 AM   in reply to Peter Grainge

    I see similar differences in the source and output and have toggled the hardware acceleration before launching the help. I can see no diiference but a quick Google suggests it is only going to impact certain machines anyway.

     

    Have you established the code you refer to is linked with the problem by editing an output topic to remove it?

     

    Otherwise, my thinking is you are going to have to live with this.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 2:41 AM   in reply to DannyH.

    I am not arguing that you are doing anything with the code or denying that RoboHelp is adding the <b> tag. You are saying "If those additional <b> tags in the output would not be there, everything would be ok." My point was to edit those tags out of the output file to see if all is then OK. From what I am reading you are saying they are the cause but I am not clear whether that is theory on your part or that you have proved it.

     

    Enter "Direct2D/DirectWrite hardware acceleration" into Google and see the first link. That suggests to me the setting will only affect machines with certain hardware.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 3:25 AM   in reply to DannyH.

    You are doing better than I would in whatever your first language is.

     

    In Design View I created two paragraphs to start with and applied Bold to the first sentence and a single word, the to the whole second paragraph.

     

    Where there are closing span tags, in the output you will get the extra <b> tags that are causing your problem. You will note there is no closing span tag in the second paragraph and no <b> tag gets written in the output.

     

    <p><span style="font-weight: bold;">This is some sample text.</span> This

    is some sample text. This is some sample text. This is some sample text.

    This is some sample text. This is some sample text. This is some sample

    text. This is some sample text. This is some sample text. This is some

    sample text. This is some sample <span style="font-weight: bold;">text</span>.</p>

    <p style="font-weight: bold;">This is some sample text. This is some sample

    text. This is some sample text. This is some sample text. This is some

    sample text. This is some sample text. This is some sample text. This

    is some sample text. This is some sample text. This is some sample text.

    This is some sample text.</p>

     

     

    Then I hit Enter and clicked the bold icon to return to normal weight and got this crazy HTML.

     

    <p style="font-weight: bold;"><span style="font-weight: normal;">Sample

    text added later.</span></p>

     

    I have reported this as a bug.

     

    Meantime try this. In Tools > Options there is an option Convert RoboHelp edited topics to HTML. Tick that and see if it makes a difference. It will apply to all projects.

     

    Does that help?

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 10, 2012 4:49 AM   in reply to DannyH.

    In that case the only option I see for now is Willam's script suggestion.

     

    Sorry.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 22, 2012 2:38 PM   in reply to DannyH.

    Another option might be to use a character style for bold text. That would probably be more work that using a script on the output files though.

     

    Dave

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2012 3:25 AM   in reply to DannyH.

    I added this to my CSS and it fixed it right up:

     

    b{

    font-weight:bold;

    }

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2012 3:38 AM   in reply to The Real Mike73

    Interesting, so Danny wasn't the only one with this problem.

     

    Thanks for posting a solution Mike.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2012 4:26 AM   in reply to The Real Mike73

    P.S. I'm using RH 8, so it must be a change in FF, but it's also annoying that RH adds the extra tags.

     

    If my solution above doesn't work for you, try this:

     

    b{

    font-weight:bold !important;

    }

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2012 5:37 AM   in reply to The Real Mike73

    Please anyone affected by this bug, submit a bug report.

     

    The more people who report a bug or request a feature, the more likely it is to be actioned. Please follow this link.

     

    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 1:57 AM   in reply to DannyH.

    I have this issue too so am using the workaround for now and have submitted a bug report.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 2:13 AM   in reply to Authorgirl

    hi,

    Please try the RoboHelp 10, this issue has been fixed in the new release of RoboHelp 10.

    thanks

    Praful Jain

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points