Skip navigation
Currently Being Moderated

Search capabilities in HTML Help

Oct 17, 2013 11:56 AM

Tags: #search #rh9 #robohelp_html_v9 #search_options #search_advanced_full_text

As I roll out the help to the users, I notice that many (mostly me, LOL) are frustrated by the primitive Search tab: no searching for phrases, no stemming or wild cards, no Boolean operators, and so on.

 

So I did some research and discovered some ways I can improve it, but I can't get it to work. (I'm using RoboHelp 9.)

 

Searching for Phrases

 

This, I discovered, after searching Peter Grainge's excellent site, is easy: Just use quotes! Okay, I should have tried that before I went looking, but thankfully Pete not only included that tip but a tip (in 8 - Navigation Pane) on changing the search prompt so that you can tell users that that's how to search for phrases. He says (and the RH 9 help says something similar) to do this:

 

To change the string from the default go to

 

File > Project Settings > General Tab > Advanced > LNG File Tab

 

and change FtsInputPrompt to your own string.

 

I tried that, closed it, recompiled, and no, it didn't change from the default. I closed the project, restarted RoboHelp 9, and tried again. Nope. What am I doing wrong?

 

Stemming

 

By "stemming", I mean typing part of a word and finding words that contain that part. Pete's site (in 10 - RoboHelp HTML - Features and Use) cites a question from someone who wants to "search on 'beam' to find 'beam', 'beams' and 'beaming'."

 

Pete's site says this:

 

Pete Lees responded with this:

 

You may need to check the language setting for each help file as only US English files support "stemmed" searches of the type that you described.

 

As I understand it, you can't set the language of an HTML Help file from within RoboHelp. Instead, you must open the project (.hhp) file in Notepad or HTML Help Workshop and add a line like this to the [OPTIONS] section:

 

Language=0x409 English (United States)

 

I tried that, editing the file with Notepad++, but once again, no luck (or, as they say across the pond, "No joy.") I closed the project, restarted RoboHelp 9, and tried again. Nope. What am I doing wrong?

 

Advanced Full-Text Search

 

On the Microsoft MSDN site, there are instructions for adding advanced full-text search that "allows a user to search using Boolean, wildcard, and nested expressions. A user can also limit the search to previous results, match similar words, or search topic titles only. When advanced full-text search is enabled, the Search tab in the Help Viewer is enhanced."

 

The instructions, of course, are for Microsoft's HTML Help Workshop, not RoboHelp. Here are the instructions. Does anyone know if you can do this manually? That is, add some lines to the .hhp file or something without using HTML Help Workshop?

 

http://msdn.microsoft.com/en-us/library/windows/desktop/ms670157%28v=v s.85%29.aspx

 
Replies
  • Currently Being Moderated
    Oct 17, 2013 12:18 PM   in reply to MM Acton

    After you edited the LNG settings, did you re-generate the help? I didn’t see that in your list of things you did. If you don’t re-generate, you would have manually edit the output files.

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 17, 2013 12:34 PM   in reply to MM Acton

    Sorry, missed that – the LNG hack may only work for WebHelp (where I know it works, because I use it all the time), not CHMs. Search the forum for LNG hits – I’m sure somebody mentioned that somewhere.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points