Skip to main content
Rsfl
Inspiring
July 5, 2023
Question

When importing Map IDs from Word, RH converts dashes into underscores

  • July 5, 2023
  • 3 replies
  • 555 views

Hi,

is there a way to avoid this? We import a Word document into RH that contains map IDs (in the form of TopicAlias footnotes). However, RH converts any dash into an underscore, e.g. "this-is-my-help-id" into "this_is_my_help_id".

I see no reason for this, is there a way to change this? Manually editing the BSSCDefault.h file does not work.

 

We use RH2019 classic + Word MS 365, output format is Responsive HTML help.

 

Robert

    This topic has been closed for replies.

    3 replies

    Community Expert
    July 7, 2023

    I'm pretty certain map ids for CHM always had to be only upper or lowercase letters, numbers and the underscore character. I feel like they also couldn't start with a number. However, I can no longer find any supporting documentation for these memories as CHM is so old.

    Rsfl
    RsflAuthor
    Inspiring
    July 5, 2023

    I should add that the file csh.js in the help output CAN be manually edited to use dashes and calling the help via URL using dashes works then. So this is technically possible, the problem lies in the handling of help IDs by RH.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    July 5, 2023

    Not aware of anything from the RH end, but what happens if you fix the Word doc to use underscores?

    Rsfl
    RsflAuthor
    Inspiring
    July 5, 2023

    Currently the application that calls the help uses dashes in the IDs, so I wanted to check whether there is a way to implement the help correspondingly. But yes, if there is no way to do this we will have to change our help IDs to underscores.

    Jeff_Coatsworth
    Community Expert
    Community Expert
    July 5, 2023

    I'm slightly confused - are you pushing the map file out to the application to use or are you receiving a map file from the application to be used inside the RH topics? I've not had any issues with mapids because all of mine are single word (no spaces or characters within) codes.