Arbortext Command Language > Commands > spell
  
spell
spell { [ -entityscan-noentityscan] [ -selection | -all] | [ -accept | -ignoreall | -reject | -next | -delete] word [ word …]}
This command checks the entire document, or the selected text, for spelling errors. The default is to check the current selection if there is one, otherwise, the entire document is checked. Misspelled words are displayed in a window.
Examples
spell
spe -selection
spe -all
-entityscan (-es) controls whether or not the spell command will include the contents of entities. The counterpart, -noentityscan (-noes) will prevent the search from including the contents of entities. For example, the command spell –es will check the spelling of the document or selection, including all referenced entities. Setting this option overrides the set entityscan command.
The -accept option lets you add a new spelling to the “accepted” word list, saved in the aptspell.xml file. The -reject option lets you add a misspelling to the stop word list, also saved in the aptspell.xml file. Note that these options add words to the aptspell.xml file based on the current authoring language. You can set a language on individual tags in a document, so that language can vary based on the position of the cursor.
The -delete option removes words from the aptspell.xml file.
The -ignoreall option will cause Arbortext Editor to ignore the word for the current session, but not save it in the aptspell.xml file.
The -next option finds the next occurrence of a misspelling when interactive spell checking is enabled.
Arbortext Editor stores the aptspell.xml file in the application data directory. That directory is typically C:\Documents and Settings\username\Application Data\PTC\Arbortext\Editor.
Elements configured by the tag_display command to not be displayed can be recognized and operated on by the spell command by setting set hiddentagscan to on.
Examples
spell -accept Arbortext
spe -reject AM PM ATI
spe -delete a.m.
Related Topics
Autocorrection and Spelling Checks
Supported authoring languages
Creating and accessing a user-defined dictionary
Working with your exception dictionary
Configuring elements to be ignored during a spelling check