Skip to main content
Community Expert
July 7, 2023
Question

FM 2022 and problems in formatting output to HTML5 in variables

  • July 7, 2023
  • 3 replies
  • 148 views

I have a document with some user variables with product names. I want the text in the variable to be bold.

So I have created a character tag which is called Bold and which bolds text no matter what size or color.

The character tag I have inserted in the definition of the variable like this:

... and works perfectly fine when publishing to print.

Publishing to HTML5, however, gives me this:

FrameMaker can't figure out how to handle the Bold tag and uses the print font settings and not the web font settings I have defined in the css when publishing to HTML5.

It seems like a bug to me. Can anybody help?

 

    This topic has been closed for replies.

    3 replies

    Community Expert
    July 8, 2023

    I managed to figure it out by studying the html output in a an editor. What I needed was a check mark in the "Clean up inline html styles".

    FrameMaker inserted the code of the original formatting in the html output, but after the checkbox - it also removed the html formatting again. Next stop - how do I get yellow highlights on my index words in the html5 search? It ought to be there, but it isn't.

    Bjørn Smalbro - FrameMaker.dk
    Bob_Niland
    Community Expert
    Community Expert
    July 8, 2023

    What have you for:
    File ▼ Publish
    Responsive HTML5
    filename.sts {🔧 Edit}
    /Style Mapping\
    ⊞ Character Styles
    ├─ Bold
    ☐ Map to HTML Tag [ ? ]

    Community Expert
    July 7, 2023

    Hi,

    You mention your web font settings in CSS. How does this definition look like?

    And what happens, when you remove the Bold tag from the variable definition and apply the Bold character format to the variable?

    Best regards, Winfried