Skip to main content
Participating Frequently
April 20, 2022
Question

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

  • April 20, 2022
  • 3 replies
  • 355 views

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 has been closed for replies.

    3 replies

    Inspiring
    March 13, 2023

    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?

    frameexpert
    Community Expert
    Community Expert
    April 20, 2022

    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 __.

    frameexpert
    Community Expert
    Community Expert
    April 20, 2022

    D5C7BAuthor
    Participating Frequently
    April 20, 2022

    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 🙂

    Community Expert
    April 20, 2022

    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

    D5C7BAuthor
    Participating Frequently
    April 20, 2022

    Thanks, and I'll do that now 🙂