Copy link to clipboard
Copied
Hi all,
I am not sure whether this is a bug or can be fixed. When I import from FM using chapter title paragraph styles for breaking the content into topics, then RH inserts the resulting file names into the topic as <title> elements and not the title names themselves.
This is no problem as long as you can use the default naming convention (i.e. heading and filename identical). For some output formats hovever it is necessary to use a different naming convention to avoid non-english characters in file names. In such a case I use <n> as naming, resulting in files that have ascending numbers as file names.
Now I receive e.g. a topic with the h1 heading "This is my topic", the filename "123.htm" and the HTML title "123". That is very bad because in the search results e.g. in Javahelp the HTML titles are displayed, resulting in unusable search results.
Do you have any suggestions how to avoid this dilemma?
Robert
Copy link to clipboard
Copied
I thought you could control that by using something in a marker – there was some little-known feature that allowed you to control what RH called the filename or or topic title (I forget which) based on a special marker & marker text in FM. You’ll need to dig around for it in either the forum or the TCS blog or the help.
Copy link to clipboard
Copied
Yes markers work ("PageBreak" or similar - would have to look it up) however these are several thousand topics so manually adding them to the sources would not be an option.
But you made me think - maybe I can come up with a Frame script..
Copy link to clipboard
Copied
FYI, the solution I am using nw is to run a find&replace tool over my imported sources (I use PowerGrep). With regular expression I copy the h1 content into the title elements.