{"id":9097,"date":"2020-08-24T12:27:58","date_gmt":"2020-08-24T16:27:58","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=9097"},"modified":"2020-08-24T17:12:07","modified_gmt":"2020-08-24T21:12:07","slug":"using-multiple-dictionaries-for-spellchecking-in-emacs","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=9097","title":{"rendered":"Using Multiple Dictionaries for Spellchecking in Emacs"},"content":{"rendered":"<p>Alain M. Lafon has an <a href=\"https:\/\/200ok.ch\/posts\/2020-08-22_setting_up_spell_checking_with_multiple_dictionaries.html\">interesting post on spellchecking in Emacs<\/a>. Lafon is Swiss and therefore has to deal with four official languages as well as German and English in his day-to-day life. The Swiss with their usual efficiency handle that just fine but their polyglot ways means that a single document may contain text in two or more languages. The question is: what\u2019s a good way of handling spellchecking in Emacs?<\/p>\n<p>Well, it <i>is<\/i> Emacs so of course you can do that but it\u2019s a bit trickier than you might expect. Lafon\u2019s post gives step-by-step instructions for setting up spelling checking using multiple dictionaries.<\/p>\n<p>The only potential wrinkle is that you have to use <a href=\"https:\/\/hunspell.github.io\/\">Hunspell<\/a> if you want to have dictionaries for more than one language. If you\u2019re on macOS (or Linux), you can install hunspell with <a href=\"https:\/\/brew.sh\/\">Homebrew<\/a> so it\u2019s not much of a problem. Lafon gives the magic spell for <code>apt<\/code> users. If you use Homebrew, you\u2019ll have to download the dictionaries separately but they\u2019re available from the <a href=\"https:\/\/extensions.openoffice.org\/en\/search?f%5B0%5D=field_project_tags%3A157\">OpenOffice Extensions page<\/a>.<\/p>\n<p>Most of you\u2014at least if we\u2019re not Swiss\u2014probably won\u2019t have to worry spellchecking in multiple languages in the same buffer, but if you do, Lafon\u2019s post tells you how to handle it.<\/p>\n<p><b>UPDATE<\/b> <span class=\"timestamp-wrapper\"><span class=\"timestamp\">[2020-08-24 Mon 17:10]<\/span><\/span>: Added link to Lafon\u2019s post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alain M. Lafon has an interesting post on spellchecking in Emacs. Lafon is Swiss and therefore has to deal with four official languages as well as German and English in his day-to-day life. The Swiss with their usual efficiency handle &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=9097\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-9097","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9097"}],"version-history":[{"count":2,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9097\/revisions"}],"predecessor-version":[{"id":9099,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9097\/revisions\/9099"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}