diff options
| author | Eli Zaretskii | 2024-08-17 11:44:35 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-17 11:44:35 +0300 |
| commit | e966dd5ee2c20e3579e490d05a1eb31b3272db45 (patch) | |
| tree | 391c079d82917481cb94ebec81a3b6dff620ad0a | |
| parent | 8a072d1f05befb302a2107c44b935af7a69ad0d3 (diff) | |
| download | emacs-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.texi | 24 |
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 | |||
| 450 | spelling program looks for a personal dictionary in a default | 450 | spelling program looks for a personal dictionary in a default |
| 451 | location, which is specific to each spell-checker. | 451 | location, 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 | ||
| 456 | language. The default language is determined from your system's | ||
| 457 | environment and locale. Both the standard dictionary and your personal | ||
| 458 | dictionary should be changed if you want to spell-check text in a | ||
| 459 | different language. You can use the @code{ispell-change-dictionary} | ||
| 460 | command 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 | ||
| 465 | different dictionaries in parallel. To use this feature, invoke the | ||
| 466 | @kbd{M-x ispell-hunspell-add-multi-dic} command before you start using | ||
| 467 | Hunspell for a particular combination of dictionaries. This command | ||
| 468 | prompts for the dictionary combination, which should be a | ||
| 469 | comma-separated list of language-specific dictionary names, such as | ||
| 470 | @samp{en_US,de_DE,ru_RU}. Thereafter, you can spell-check text which | ||
| 471 | mixes these languages without changing the dictionaries each time. | ||
| 472 | (Caveat: when several languages use the same script, it is possible that | ||
| 473 | a word that is mis-spelled in one language is found as a valid spelling | ||
| 474 | in the dictionary of another language; in that case, the mis-spelled | ||
| 475 | word 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 |