Difference between revisions of "Spell check"

From WikEmacs
Jump to navigation Jump to search
(Created page with "See info pages on ispell. ==Ispell replacements== Current favorites appear to be aspell and hunspell. Point to the ispell replacement: (setq-default ispell-program-name "h...")
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
See info pages on ispell.
+
'''Spell Checking''' is done by Emacs by calling external spell checkers.  
  
==Ispell replacements==
+
= Basic setup =
  
Current favorites appear to be aspell and hunspell.
+
You need to install either '''aspell''' or '''hunspell'''.  
  
Point to the ispell replacement:
+
== On Windows==
  
 +
Links to pre compiled binaries are dead at time of writing.
 +
 +
RPMs with the noarch.rpm extension refer to packages which do not depend on a certain computer's architecture (e.g. interpreted programming languages and shell scripts). The utility 7zip can unpack an RPM on Windows, and the enclosed cpio file archive.
 +
 +
This did not help with the noarch RPMs I got from
 +
http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Factory/noarch/
 +
The executable hunspell.exe aborted after not finding a dll file.
 +
 +
After that dll was added, another dll was not found. I gave up after
 +
several iterations. This was with
 +
mingw32-hunspell-1.3.2-1.98.noarch.rpm and later
 +
mingw32-hunspell-1.3.2-1.99.noarch.rpm (and associated lang and tools
 +
RPMs).
 +
 +
= Useful commands =
 +
 +
; {{Command|ispell-change-dictionary RET SPC}}
 +
: Check list of installed dictionaries.
 +
 +
; {{CustomizeVariable|ispell-dictionary}}
 +
: Configure default dictionary.
 +
 +
; {{Command|add-file-local-variable RET ispell-dictionary RET TAB}}
 +
: Use this to change dictionary on per-file basis.  This command will add this line to the file in question.  Please save and re-load the file for new settings to take effect.
 +
 +
<pre>
 +
  -*- ispell-dictionary: "english" -*-
 +
</pre>
 +
 +
 +
= Common Customization =
 +
<!-- Customization common to all platforms goes here -->
 +
 +
== Hunspell ==
 +
 +
You need dictionary files for spell check to work. If you have installed '''OpenOffice''' or '''LibreOffice''', then dictionary files are already there.
 +
 +
<source lang="lisp">
 
(setq-default ispell-program-name "hunspell")
 
(setq-default ispell-program-name "hunspell")
 +
</source>
  
You might already have the required dictionary files in your browser or openoffice directory tree.
+
== Customization 2 ==
 +
<source lang="lisp">
 +
(message "You can also do this customization")
 +
</source>
  
==Windows XP difficulties==
+
==Project Pages==
Links to precompiled binaries are dead at time of writing.
+
; [http://fmg-www.cs.ucla.edu/geoff/ispell.html International Ispell]
 +
: Official Home page and lots of dictionaries
 +
* [http://kdstevens.com/~stevens/ispell-page.html International, Interactive Spell checker]
  
I got RPMs from [http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Factory/noarch/ openSUSE], but hunspell.exe aborted after not finding a dll file. After that dll was added, another dll was not found. I gave up after several iterations. This was with mingw32-hunspell-1.3.2-1.98.noarch.rpm and later mingw32-hunspell-1.3.2-1.99.noarch.rpm (and associated lang and tools RPMs).
+
 
 +
== Tutorial Pages==
 +
 
 +
; [http://xahlee.org/emacs/emacs_spell_checker_problems.html Spell checker problems]
 +
Xahlee's notes and tutorials
  
 
==External Links==
 
==External Links==
*[http://emacswiki.org/emacs/InteractiveSpell Emacswiki:InteractiveSpell]
+
* [http://emacswiki.org/emacs/InteractiveSpell Emacswiki:InteractiveSpell]
*[http://xahlee.org/emacs/emacs_spell_checker_problems.html XahLee.org page with tutorial links at the bottom]
+
 
 +
== See Also ==
 +
 
 +
* [[Flyspell-mode]]
 +
 
 +
 
 +
[[Category:Text Editing]]

Revision as of 20:47, 20 April 2012

Spell Checking is done by Emacs by calling external spell checkers.

Basic setup

You need to install either aspell or hunspell.

On Windows

Links to pre compiled binaries are dead at time of writing.

RPMs with the noarch.rpm extension refer to packages which do not depend on a certain computer's architecture (e.g. interpreted programming languages and shell scripts). The utility 7zip can unpack an RPM on Windows, and the enclosed cpio file archive.

This did not help with the noarch RPMs I got from http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Factory/noarch/ The executable hunspell.exe aborted after not finding a dll file.

After that dll was added, another dll was not found. I gave up after several iterations. This was with mingw32-hunspell-1.3.2-1.98.noarch.rpm and later mingw32-hunspell-1.3.2-1.99.noarch.rpm (and associated lang and tools RPMs).

Useful commands

M-x ispell-change-dictionary RET SPC
Check list of installed dictionaries.
M-x customize-variable RET ispell-dictionary
Configure default dictionary.
M-x add-file-local-variable RET ispell-dictionary RET TAB
Use this to change dictionary on per-file basis. This command will add this line to the file in question. Please save and re-load the file for new settings to take effect.
  -*- ispell-dictionary: "english" -*-


Common Customization

Hunspell

You need dictionary files for spell check to work. If you have installed OpenOffice or LibreOffice, then dictionary files are already there.

(setq-default ispell-program-name "hunspell")

Customization 2

(message "You can also do this customization")

Project Pages

International Ispell
Official Home page and lots of dictionaries


Tutorial Pages

Spell checker problems
Xahlee's notes and tutorials

External Links

See Also