Re: Hooks for European languages
[email protected] (Frank Küster)
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
Jan-Ake Larsson <[email protected]> schrieb: > Reiner Steib wrote: >> Okay, how about this: >> >> ,----[ (info "(auctex)European") ] >> | AUCTeX supports style files for several languages. Each style file >> | may modify AUCTeX to better support the language, and will run a >> | language specific hook that will allow you to for example change ispell >> | dictionary, or run code to change the keyboard remapping. The >> | following will for example choose a Danish dictionary for documents >> | including `\usepackage[danish]{babel}'. This requires parsing to be >> | enabled, *note Parsing Files::. >> | >> | (add-hook 'TeX-language-dk-hook >> | (function (lambda () (ispell-change-dictionary "danish")))) >> | >> | The following style files are recognized. >> | [...] >> | `danish' >> | Runs style hook `TeX-language-dk-hook'. Pressing <"> will insert >> | `"`' and `"'' depending on context. >> | >> | `dutch' [...] >> `---- > > Just a quick note: the one swedish dictionary I seem to have installed > goes under the name "svenska". Could someone verify that > (ispell-change-dictionary "danish") is OK above, or if we need to use > "dansk". Debian ships the following files in the idanish dictionary package: usr/lib/ispell/danish.aff text/idanish usr/lib/ispell/danish.hash text/idanish usr/lib/ispell/dansk.aff text/idanish usr/lib/ispell/dansk.hash text/idanish usr/share/doc/idanish/README text/idanish usr/share/doc/idanish/README.Debian text/idanish usr/share/doc/idanish/changelog.Debian.gz text/idanish usr/share/doc/idanish/contributors.gz text/idanish usr/share/doc/idanish/copyright text/idanish I guess danish is a symlink to dans, or vice versa, and it doesn't matter. Regards, Frank -- Frank Küster Inst. f. Biochemie der Univ. Zürich Debian Developer