Prev Next

Spelling Command Example

word
spell
spell_example.omh
Example In This Web Site

word
In OMhelp, a word starts either with an upper case letter or a lower case letter that is preceded by a non-letter. The words continues to, but does not include, the next upper case letter or non-letter.

spell
The spell command is used to specify special words that are not spelling errors and are not in the dictionary . It is also used to specify repeated words that should not be flagged as errors. (A repeated word is where the same word occurs twice with just white space between occurrences.)

spell_example.omh
Use the editor of your choice to create the file spell_example.omh in the xam directory with the following contents:
 
     $begin spell_example$$
     $spell
     	Fft
     	not not
     $$
     $section Example Spelling Exceptions$$
     
     $head Misspelled Words$$
     The word Fft is not in the dictionary.
     
     $head Repeated Words$$
     The word not is repeated in the sentence
     $pre
     	$$It is not not true.
     
     $end
You can also just copy spell_example.omh from the omh/getstarted directory . Once you have done this, you can execute omhelp with example_name equal to spell_example.

Example In This Web Site
You can view the result of making spell_example.omh part of the OMhelp help web site by selecting spell_example .
Input File: omh/getstarted/start_spell.omh