[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Expected language "en" but got "sv"
From: |
Peter Dyballa |
Subject: |
Re: Expected language "en" but got "sv" |
Date: |
Sun, 10 Nov 2013 23:04:19 +0100 |
Am 10.11.2013 um 21:49 schrieb Andreas Tjärnberg:
> I am wondering how I am suppose to handle my personal dictionary if I
> have some swedish and some english words that I want to add to it or
> perhaps to different files and use them when appropriate.
I have:
-rw-rw-r-- 1 pete 1700 14. Dez 2012 .ispell_english
-rw-rw-r-- 1 pete 2216 5. Dez 2008 .ispell_german
and this can be configured via
(setq ispell-personal-dictionary "~/.ispell_german")
You just have to switch… The statement above is not active in my init file,
it's just left as a comment. What I do have is:
(setq ispell-program-name "ispell")
; (setq ispell-program-name "aspell")
(if (string= "aspell" ispell-program-name)
(progn
; (setq ispell-extra-args "--norm-form=comp --norm-required
--run-together")
; (setq ispell-dictionary "en_GB-ise-w_accents")
(setq ispell-dictionary "deutsch")
(set-default 'ispell-local-dictionary ispell-dictionary)
(add-hook 'LaTeX-mode-hook (function (lambda () (setq
ispell-extra-args '("--mode=tex")))))
; (setq-default ispell-extra-args '("--mode=tex"))
; (setq-default ispell-extra-args
'("--personal=custom_dict.rws"))
; (add-hook 'LaTeX-mode-hook 'flyspell-mode)
(message "Alles für «a»spell")
)
; (setq ispell-dictionary "german8")
(setq ispell-dictionary "deutsch8")
(add-hook 'LaTeX-mode-hook (function (lambda () (setq
ispell-extra-args '("-t")))))
(message "Alles für »i«spell")
(add-hook 'TeX-language-en-hook (function (lambda ()
(ispell-change-dictionary "british"))))
(add-hook 'TeX-language-de-hook (function (lambda ()
(ispell-change-dictionary ispell-dictionary))))
)
Maybe some lines can be deleted. It seems to work fine when I M-x
ispell-change-dictionary.
--
Greetings
Pete
People say that if you play Microsoft CD's backwards, you hear satanic things,
but that's nothing, because if you play them forwards, they install MS Windows.