Skip to main content
Participating Frequently
Apr 20, 2022 11:33 AM UTC
Question

Commas in headings causing issues with topic filenames and xrefs in HTML5

Hi All. Using FrameMaker 16.0.4 on Windows 10. I'm currently having an issue with cross references when I generate HTML5 topics. As an example, I have an FM file with multiple H1s and H2s, along with cross references between those headings. When I generate HTML5, H1s and H2s get split into separate HTML topics (as defined in the Publish settings). On themost part this works without any issues, however if I have a H1 or H2 that uses one or commas in the title, the cross reference pojnts the "wrong" filename and shows as a broken link in the HTML. For example, a H2 with the title "Components, Capacity, and Resiliency" generates the file "Components__44__Capacity__44__and_Resiliency.htm" - the TOC uses the correct file reference, but cross references use "Components,_Capacity,_and_Resiliency.htm". Any ideas on how I can resolve this?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    9 replies

    Inspiring
    Mar 13, 2023 2:14 PM UTC

    You noted in an update to the Tracker that when you publish the fm file separately from the book file, that there is no substitution for the comma. Does that mean you can publish the offending file then copy the HTML pages to the book output file folder?

    Translate
    frameexpert
    Community Expert
    Community Expert
    Apr 20, 2022 11:54 AM UTC

    As a workaround, you could use Notepad++ to do Find/Change across all of the files in the output set. It looks like the pattern is to change ,_ to __.

    Translate
    www.frameexpert.com
    frameexpert
    Community Expert
    Community Expert
    Apr 20, 2022 11:59 AM UTC

    Translate
    www.frameexpert.com
    D5C7BAuthor
    Participating Frequently
    Apr 20, 2022 12:13 PM UTC

    Thanks for the suggestion. Bit of a pain having to do this as an additional "manual" step but at least it will resolve my issue for now 🙂

    Translate
    Community Expert
    Apr 20, 2022 11:47 AM UTC

    Hi,

     

    I tested this with a dummy file, and I got the same result.

    You could batch rename the files with a renamer like Total Commander.

    However, you should describe this as well in the Adobe Tracker:

    https://tracker.adobe.com/#/home

    When you post the link to your tracker report here, I will vote for it.

     

    Best regards

     

    Winfried

    Translate
    D5C7BAuthor
    Participating Frequently
    Apr 20, 2022 12:11 PM UTC

    Thanks, and I'll do that now 🙂

    Translate