Spell checking: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (persdic.dat -> persdict.dat (KB article))
(added links to related articles, category)
Line 10: Line 10:
While you are in Edit Mode, you will not be able to use browser features such as links.  F5 (Reset) will restore browser to normal usage.
While you are in Edit Mode, you will not be able to use browser features such as links.  F5 (Reset) will restore browser to normal usage.


Set-up of built-in Firefox spelling checker, if not working initially in a text box.
==Setting up the spell checker==
Setup of built-in Firefox spell checker, if not working initially in a text box:
* Tools -> Options -> Advanced -> General -> "Check my spelling as I type" ''(default)''
* Tools -> Options -> Advanced -> General -> "Check my spelling as I type" ''(default)''
* [[Layout.spellcheckDefault|layout.spellcheckDefault]]  set to 2 ''(1 is default)''
* Set [[layout.spellcheckDefault]]  to '''2''' (default = 1)  
* [[Spellchecker.dictionary|spellchecker.dictionary]], set to "en-US".  ''(for US English, should already be set for your locale)''
* Set [[spellchecker.dictionary]] should be set to your locale (e.g., to '''en-US''' for US English)  
* Restart Firefox if any changes such as changing layout.spellcheckDefault to 2.
* Restart Firefox if you made any changes such as changing '''layout.spellcheckDefault''' to '''2'''.
* Check spelling, if does not identify misspelled words in the text area, or allow you to add a word when right clicking then take Firefox down, and create [[persdict.dat]] with notepad (file can be empty) in your [Profile profile] directory, restart Firefox, and retest.  
* Check spelling; if Firefox does not identify misspelled words in the text area, or allow you to add a word when right clickingthen exit Firefox and create [[persdict.dat]] with notepad (file can be empty) in your [[Profile folder - Firefox|Firefox profile folder]], restart Firefox, and retest.  


Any page with a text-box will allow you to make the initial spell checking tests.  The search box in the right-hand column of this page will serve the purpose.  Words typed are tested upon use of spaces or other delimiters.   
Any page with a text-box will allow you to make the initial spell checking tests.  The search box in the right-hand column of this page will serve the purpose.  Words typed are tested upon use of spaces or other delimiters.   
Line 23: Line 24:
Even though the Add to Dictionary does not allow you to change the capitalization of a word when adding the word, you can correct the  capitalization first, before rechecking to see if it really needs to be added to the dictionary.  
Even though the Add to Dictionary does not allow you to change the capitalization of a word when adding the word, you can correct the  capitalization first, before rechecking to see if it really needs to be added to the dictionary.  


==Modifying your custom dictionary==  
==Modifying your custom dictionary==
You will need to use a text editor to remove incorrectly added words to your [[persdict.dat]] file, or to manually merge other entries into it such as from Microsoft Word as an example of where you may have already added a lot of custom entries to a dictionary.
You will need to use a text editor to remove incorrectly added words to your [[persdict.dat]] file, or to manually merge other entries into it such as from Microsoft Word as an example of where you may have already added a lot of custom entries to a dictionary.


Line 30: Line 31:
==Extensions==
==Extensions==
The "[https://addons.mozilla.org/firefox/addon/8153 SpellCheck]" extension will check an entire web page and is invoked from the Edit (menu), "Spell Check" and adds a toggle switch to the Tools menu to activate/inactive the extension.  Simpler to setup but may interfere with usage by advanced users with it's extra menus and overhead.  
The "[https://addons.mozilla.org/firefox/addon/8153 SpellCheck]" extension will check an entire web page and is invoked from the Edit (menu), "Spell Check" and adds a toggle switch to the Tools menu to activate/inactive the extension.  Simpler to setup but may interfere with usage by advanced users with it's extra menus and overhead.  
==See also==
*[[Dictionaries]]


==External links==
==External links==
[http://labnol.blogspot.com/2006/11/firefox-2-spelling-dictionary-hacks.html Firefox Dictionary & Spell Checker Hacks: Edit Misspelled Words, Merge with Word Dictionary - Digital Inspiration]
*[http://support.mozilla.com/kb/Using+the+spell+checker Using the spell checker (Firefox Support)]
*[http://labnol.blogspot.com/2006/11/firefox-2-spelling-dictionary-hacks.html Firefox Dictionary & Spell Checker Hacks: Edit Misspelled Words, Merge with Word Dictionary - Digital Inspiration]
 
[[Category:Configuration]]

Revision as of 17:28, 29 October 2009

Spell Checker

Firefox has a built-in spelling checker, but it is not immediately available even for checking the spelling within input text boxes. The steps outlined here explain how to get the dictionary active for within text-boxes, adding words to it's dictionary, removing incorrectly added words, and extending use of the spell checker to check any webpage not just input text-boxes.

Once set up properly so that the spelling check works in a text area, you can have the built-in spelling checker check any webpage, by making the document editable with a bookmarklet. You might want to assign a keyword shortcut such as "spellcheck:" in the bookmarks properties or if on the Bookmarks Toolbar simply name it "Sp" with or without an assigned keyword shortcut.

javascript:document.body.contentEditable='true';%20document.designMode='on';%20void%200

The above bookmarklet will place the entire webpage into Edit Mode which will allow you to check the spelling on the entire page.

While you are in Edit Mode, you will not be able to use browser features such as links. F5 (Reset) will restore browser to normal usage.

Setting up the spell checker

Setup of built-in Firefox spell checker, if not working initially in a text box:

  • Tools -> Options -> Advanced -> General -> "Check my spelling as I type" (default)
  • Set layout.spellcheckDefault to 2 (default = 1)
  • Set spellchecker.dictionary should be set to your locale (e.g., to en-US for US English)
  • Restart Firefox if you made any changes such as changing layout.spellcheckDefault to 2.
  • Check spelling; if Firefox does not identify misspelled words in the text area, or allow you to add a word when right clicking, then exit Firefox and create persdict.dat with notepad (file can be empty) in your Firefox profile folder, restart Firefox, and retest.

Any page with a text-box will allow you to make the initial spell checking tests. The search box in the right-hand column of this page will serve the purpose. Words typed are tested upon use of spaces or other delimiters.

Try these as test words: xghi Google goggleplex splinter xdfe;

Even though the Add to Dictionary does not allow you to change the capitalization of a word when adding the word, you can correct the capitalization first, before rechecking to see if it really needs to be added to the dictionary.

Modifying your custom dictionary

You will need to use a text editor to remove incorrectly added words to your persdict.dat file, or to manually merge other entries into it such as from Microsoft Word as an example of where you may have already added a lot of custom entries to a dictionary.

[Windows Users] The entries in persdict.dat are one word per line, if you see the words together with no space then edit with another text editor and if you then see the words each on their own lines, save the file. Should then look correct in notepad, and notepad can be used to make any manual changes such as deletions.

Extensions

The "SpellCheck" extension will check an entire web page and is invoked from the Edit (menu), "Spell Check" and adds a toggle switch to the Tools menu to activate/inactive the extension. Simpler to setup but may interfere with usage by advanced users with it's extra menus and overhead.

See also

External links