It is possible to make AUCTeX load the spelling dictionary of the language which babel
is loaded with. One further convenience would be for it to appropriately react to changes of language within a document. Such changes can be made with macros of babel
and csquotes
. So, is it possible to make AUCTeX spell check in the correct language according to the language macros of a document?
Here follows a test document. A solution would make AUCTeX automatically spell check the first paragraph in English and the other paragraphs should be spell checked according to the specified language.
\documentclass{article}
\usepackage[danish,english]{babel}
\usepackage{csquotes}
\begin{document}
In computing, a spell checker (or spell check) is an application
program that flags words in a document that may not be spelled
correctly.
\foreignquote{danish}{I computerterminologi er en stavekontrol en
design feature eller et software program designet til at tjekke
stavningen af ord i et dokument og som normalt kan komme med forslag
til stavningsforslag.}
\hyphenquote{danish}{I computerterminologi er en stavekontrol en
design feature eller et software program designet til at tjekke
stavningen af ord i et dokument og som normalt kan komme med forslag
til stavningsforslag.}
\foreignlanguage{danish}{I computerterminologi er en stavekontrol en
design feature eller et software program designet til at tjekke
stavningen af ord i et dokument og som normalt kan komme med forslag
til stavningsforslag.}
\begin{hyphenrules}{danish} I computerterminologi er en stavekontrol
en design feature eller et software program designet til at tjekke
stavningen af ord i et dokument og som normalt kan komme med forslag
til stavningsforslag.
\end{hyphenrules}
This sentence should be spell checked with an English dictionary.
\end{document}
ispell-region
accordingly, but, probably, the only way to go is to use a spell checker backend providing this – certainly useful – feature. – mhp Mar 28 '12 at 19:09