This content has been marked as final. Show 3 replies
Webhelp strips any "S" or "ES" from the end of the search term when launching the search. It saves it from having to search for both singular and plural versions of a term.
To fix this, you first have to make sure your term gets added to the search tables;
1) Create a unique substitute, or placeholder for the term; use something like "CESbebop" for every instance of "CES"
2) Generate the Webhelp.
3) Use a multi-file search-n-replace program like RePlaceEm to swap out the strange word "CESbebop" with your own "CES", in all the generated Webhelp files, including the search tables.
Second, you modify the script; here is the array that holds the list of suffixes, to make exceptions to those plural terms.
First, look in the whlang.js to find the gaFtsStem array, and notice the "es" and "s" elements ( gaFtsStem and gaFtsStem) - we will have to find the script that uses them, and create an exception for those terms.
In the whfhost.js file, you'll see the function GetStem() to allow your special terms (szWord) to pass unmolested. Create an exception for your terms (if szWord = "ces"....), so it doesn't try to trim it to singular when launching the search...
This looks like a good idea, but also something I will have to run everytime generate (which is 5 times a week). Do you know off hand if adding a synonym(s) through Robohelp Professional (which we are considering purchasing) would resolve this?
I couldn't say, as I don't have any experience with RH Pro. Perhaps someone else can chime in here. All I can say for sure is that it has a different search mechanism, and this fix would not likely work for RH Pro.
As far as repeating the modification every time you generate, it isn't really a problem. I use ReplaceEm, at:
... to insert the modifications I need. And, you can save your Search-n-Replaces, to repeat again after each generation. It's free, easy to use, and very fast.