Microsoft KB Archive/142100

= WD: How to Create an Exclude Dictionary =

PSS ID Number: 142100

Article Last Modified on 11/5/2000

-

The information in this article applies to:


 * Microsoft Word for Windows 6.0
 * Microsoft Word for Windows 6.0a
 * Microsoft Word for Windows 6.0c
 * Microsoft Word for Windows NT 6.0
 * Microsoft Word for Windows 95 7.0
 * Microsoft Word for Windows 95 7.0a
 * Microsoft Word for the Macintosh 6.0
 * Microsoft Word for the Macintosh 6.0.1
 * Microsoft Word for the Macintosh 6.0.1a

-



This article was previously published under Q142100



IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, click Help in Registry Editor, click the Contents tab, and click to view the "Restoring the Registry" topic.



SUMMARY
This article describes how to create an exclude dictionary. An exclude dictionary contains words that the main dictionary recognizes as being spelled correctly, but that you want questioned during a spelling check. Using an exclude dictionary allows you to specify preferred spellings for certain words.

For example, if you prefer "theatre" rather than "theater," add "theater" to the exclude dictionary so that if Word finds "theater" during a spell check, it prompts you for the correct spelling.

Once you create an exclude dictionary, Word uses it automatically with the main dictionary. If you want to check spelling without using the exclude dictionary, rename the exclude dictionary before you check spelling in a document.



Creating an Exclude Dictionary
 In a new, blank document, type the words that you want to put in the exclude dictionary. After typing each word, press ENTER to make each word a separate paragraph, for example:

center

theater

 On the File menu, click Save As. Make sure that you save the exclude dictionary in the same folder (directory) that contains the main dictionary.

In Word for Windows 6.x, the main dictionary is usually located in the following directory:

C:\Windows\Msapps\Proof

In Word for Windows NT, the main dictionary is usually located in the following folder:

C:\Windows\Msapps\Proof

In Word for Windows 95, the main dictionary is usually located in the following folder:

C:\Program Files\Common Files\Microsoft Shared\Proof

On the Macintosh, the main dictionary is usually located in the following folder:

Macintosh HD:Microsoft

NOTE: If you cannot find the main dictionary, see the "To Determine the Name and Path of the Main Dictionary" section later in this later. In the Save File As Type box, select Text Only (Windows) or Speller Exclude Dictionary (Macintosh). In the File Name box (Windows) or the Save Current Document As box (Macintosh), type a name for the exclude dictionary.

In Windows, the exclude dictionary must have the same name as the main language dictionary (the American English dictionary is Mssp2_en.lex) with which it is associated. However, it must have the file name extension of .exc. The exclude dictionary file name for the American English dictionary must be named Mssp2_en.exc.

On the Macintosh, the exclude dictionary must include the name of the language followed by "Exclude Dictionary." For example, an exclude dictionary for both English (US) and English (UK) would be named "English Exclude Dictionary." Click OK (Windows), or Save (Macintosh).

If Word prompts you to confirm that you want to save the file with formatting that will not be saved in text format, click Yes, and then click Text Only (Windows) or Speller Exclude Dictionary (Macintosh).

To Determine the Name and Path of the Main Dictionary
Word for Windows 6.x

The name and path of the main dictionary can be found in the Win.ini file located in the Windows folder.

  Do one of the following appropriate for your operating system:

Windows 3.x
 In File Manager, click Run on the File menu.</li> On the command line, type SYSEDIT and then click OK.</li></ol>

Windows 95
 On the Start menu, click Run.</li> In the Open box, type SYSEDIT and then click OK.</li></ol> </li> The System Configuration Editor appears. Click Window on the menu bar and select the Win.ini file.

NOTE: The Win.ini file should now be displayed for editing.</li> This file is divided into sections illustrated by square brackets ([section name]). Scroll through the file until you see the [MS Proofing Tools] section.

The path and file name of the main dictionary are located at the end of the Spelling entry as in the following example:

Spelling 1033,0=C:\WINDOWS\MSAPPLS\PROOF\MSSPEL2.DLL, C:\WINDOWS\MSAPPS\PROOF\MSSP2_EN.LEX

Mssp2_en.lex is the name of the main dictionary in this example. Whatever the name of the dictionary is, the file name ends with the ".lex" extension.</li> On the File menu, click Edit. Close the Configuration Editor without saving any changes.</li></ol>

Word for Windows NT

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).

 In the File Manager, click Run on the File menu.</li> On the command line, type REGEDIT (Windows NT 4.0) or REGEDT32 (Windows NT 3.5x) and then click OK.</li>  In the Registry Editor, locate and view the following registry key: <pre class="fixed_text">HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Proofing Tools </li> The Proofing Tools key contains the value names and value data to the Dictionary and Engine files.

NOTE: The Dictionary has a .lex file extension.</li> <li>Close the registry without making any changes.</li></ol>

Word for Windows 95

Use the RegOptions macro:

The name and path of the main dictionary can be found using the RegOptions macro that is contained in the Macros7.dot template.

<ol> <li>If Macros7.dot is already loaded globally, skip to step 2. Otherwise, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the File menu, click Templates.</li> <li>Click Add to add a global template.</li> <li>Locate the Macros7.dot file (usually this file is in the \Winword\Macros folder).

NOTE: If the Macros folder does not exist on your computer, the macros may not have been installed when you set up Word. If so, you need to run Word Setup again and select the Macros option.</li> <li>Select the template and click OK twice.</li></ol> </li> <li>On the Tools menu, click Macro.</li> <li>Verify that Macros7.dot is selected in the Macros Available In box.</li> <li>In the Macros list, select the RegOptions macro and then click Run.</li> <li>Select Word 7.0 Options in the Section drop-down list, select Tools Path in the Option drop-down list and view the path in the Setting box. Click OK when finished. (You may have to click in the Setting Window and press the END key to see the entire path and file name.)

-or-

Look in the Windows Registry:

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows 95. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the Changing Keys And Values online Help topic in Registry Editor (Regedit.exe). Note that you should understand how to restore the registry if a problem occurs after you edit it. For information about how to do this, click Help in Registry Editor, click the Contents tab, and click to view the "Restoring the Registry" topic. <ol> <li>To open the registry, click Run on the Start menu, and type REGEDIT .</li> <li> Locate and view the following registry key: <pre class="fixed_text">HKEY_CURRENT_USER\Software\Microsoft\Word\7.0\Proofing Tools\Spelling\1033\Normal\ </li> <li>The Normal key contains the value names and value data to the Dictionary and Engine files.

NOTE: The Dictionary has a .lex file extension.</li> <li>Close the registry without making any changes.</li></ol> </li></ol>

Additional query words: spell check dictionary exclude custom proof tools howto

Keywords: kbhowto kbproof KB142100

Technology: kbHWMAC kbOSMAC kbWord600 kbWord600a kbWord600c kbWord600Mac kbWord600NT kbWord601aMac kbWord601Mac kbWord95 kbWord95a kbWord95Search kbWordMacSearch kbWordSearch kbZNotKeyword2 kbZNotKeyword3

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.