<%@ page language="C#" masterpagefile="~/templates/Documentation.master" inherits="Page" pagetitle="Using the Spell Checker" keywords="Using the Spell Checker"%>

Using the Spell Checker

You can use the Stylus Studio Spell Checker with all of Stylus Studio's text-based editors (like editors for XQuery and XSLT, for example) to both actively and passively check your documents for typographical errors such as misspellings and repeated words.

Figure 109. Stylus Studio's Spell Checker

Default Spell Checking

The Spell Checker is on by default for most editors. This means that when you open a document in a Stylus Studio text editor, and as you type in that document, Stylus Studio checks the document for typographical errors. Words that the Spell Checker identifies as possibly containing a typographical error are underlined with a red "squiggle", like the word Worx shown in Figure 106.

Tip

 

You can right-click a word with a squiggle and select Spell Checker Suggestions for to display a list of suggestions for the word identified by the Spell Checker.

Manual Spell Checking

At any time, you can manually spell check a document by selecting Tools > Check Spelling from the Stylus Studio menu. When you do this, Stylus Studio starts the Spell Checker, which reads through the current document. When it finds a possible typographical error, Stylus Studio displays the Spelling dialog box, as shown in Figure 109.

Using the Spelling dialog box, you can

Specifying Spell Checker Settings

You specify Spell Checker settings using the Spell Checking page of the Options dialog box.

Figure 110. Options for the Spell Checker

Spell Checker settings include

How to Spell Check a Document

To spell check a document:
1. Select Tools > Check Spelling from the menu.

Stylus Studio starts checking the document for typographical errors. If it finds a typographical error, it displays the Spelling dialog box.

If You Want To
Then
Replace the misspelled word with the word suggested by the Spell Checker
Click Replace. Click Replace All to replace all occurrences of that word.
You can also replace the misspelled word with another word selected from the Alternatives list box, or with a word you type in the Replace with field.
Ignore the misspelled word
Click Ignore. Click Ignore All to ignore all occurrences of that word.
Add the misspelled word to the personal dictionary
Click Add.
Edit the personal dictionary

2. Once you select an action, the Spell Checker continues checking the document.

When you have addressed all identified errors in the document (either by replacing, correcting, or ignoring them), the Spell Checker stops.

Using the Personal Dictionary

The Stylus Studio Spell Checker comes with its own dictionary. You can create a personal dictionary and fill it with your own entries. Personal dictionaries are used in conjuction with the Spell Checker dictionary across all Stylus Studio editors.

To add entries to the personal dictionary, you can

The personal dictionary is stored in the c:\Documents and Settings\username\
Application Data\Stylus Studio
directory.

Warning

 

Do not modify the files in this directory by hand. Use the Personal Dictionary Editor dialog box to make any changes to the personal dictionary.

To add a word to the personal dictionary:
1. Start the Spell Checker and display the Personal Dictionary Editor dialog box (click Edit on the Spelling dialog box).
2. Enter a word in the New Word field.
3. Click the Add button.

The word appears in the Words in Personal Dictionary list box.

4. Click the Close button.

Tip

 

You can also add any word identified as a misspelling to the personal dictionary by pressing the Add button on the Spelling dialog box.

To import lists into the personal dictionary:

Note

 

Lists you import into the personal dictionary must be unformatted .txt files, with each entry on its own line. Do not use tab- or comma-separated files.

1. Start the Spell Checker and display the Personal Dictionary Editor dialog box (click Edit on the Spelling dialog box).
2. Click the Import button.

The Open dialog box appears.

3. Select the .txt file you want to import into the personal dictionary and click Open.

The words in the list you import appear in the Words in Personal Dictionary list box.

4. Click the Close button.
To export the personal dictionary to a .txt file:
1. Start the Spell Checker and display the Personal Dictionary Editor dialog box (click Edit on the Spelling dialog box).
2. Click the Export button.

The Save As dialog box appears.

3. Navigate to the directory in which you want to save the copy of the personal dictionary.
4. Enter a name in the File name field.
5. Click Save.

The contents of the personal dictionary is saved to the text file.

6. Click the Close button.