aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2024-08-17 11:44:35 +0300
committerEli Zaretskii2024-08-17 11:44:35 +0300
commite966dd5ee2c20e3579e490d05a1eb31b3272db45 (patch)
tree391c079d82917481cb94ebec81a3b6dff620ad0a
parent8a072d1f05befb302a2107c44b935af7a69ad0d3 (diff)
downloademacs-e966dd5ee2c20e3579e490d05a1eb31b3272db45.tar.gz
emacs-e966dd5ee2c20e3579e490d05a1eb31b3272db45.zip
Document spell-checking of multiple languages
* doc/emacs/fixit.texi (Spelling): Document spell-checking multi-lingual text with Hunspell.
-rw-r--r--doc/emacs/fixit.texi24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/emacs/fixit.texi b/doc/emacs/fixit.texi
index af9ca5fcdf6..32763a09dd1 100644
--- a/doc/emacs/fixit.texi
+++ b/doc/emacs/fixit.texi
@@ -450,6 +450,30 @@ dictionary is specified by the variable
450spelling program looks for a personal dictionary in a default 450spelling program looks for a personal dictionary in a default
451location, which is specific to each spell-checker. 451location, which is specific to each spell-checker.
452 452
453@cindex spell-checking different languages
454@cindex language for spell-checking
455 Usually, a dictionary used by a spell-checker is for a specific
456language. The default language is determined from your system's
457environment and locale. Both the standard dictionary and your personal
458dictionary should be changed if you want to spell-check text in a
459different language. You can use the @code{ispell-change-dictionary}
460command for that.
461
462@cindex spell-checking multi-lingual text
463@findex ispell-hunspell-add-multi-dic
464 Hunspell is special in that it supports spell-checking using several
465different dictionaries in parallel. To use this feature, invoke the
466@kbd{M-x ispell-hunspell-add-multi-dic} command before you start using
467Hunspell for a particular combination of dictionaries. This command
468prompts for the dictionary combination, which should be a
469comma-separated list of language-specific dictionary names, such as
470@samp{en_US,de_DE,ru_RU}. Thereafter, you can spell-check text which
471mixes these languages without changing the dictionaries each time.
472(Caveat: when several languages use the same script, it is possible that
473a word that is mis-spelled in one language is found as a valid spelling
474in the dictionary of another language; in that case, the mis-spelled
475word might be missed.)
476
453@vindex ispell-complete-word-dict 477@vindex ispell-complete-word-dict
454 A separate dictionary is used for word completion. The variable 478 A separate dictionary is used for word completion. The variable
455@code{ispell-complete-word-dict} specifies the file name of this 479@code{ispell-complete-word-dict} specifies the file name of this