all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: andreas.tjarnberg@fripost.org (Andreas Tjärnberg)
Cc: help-gnu-emacs@gnu.org
Subject: Re: Expected language "en" but got "sv"
Date: Sun, 10 Nov 2013 23:04:19 +0100	[thread overview]
Message-ID: <AF7F2DD0-99D5-4F95-890D-0303F57EEACC@Web.DE> (raw)
In-Reply-To: <871u2ox7nx.fsf@example.org>


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.




  reply	other threads:[~2013-11-10 22:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-10 20:49 Expected language "en" but got "sv" Andreas Tjärnberg
2013-11-10 22:04 ` Peter Dyballa [this message]
     [not found] <mailman.5753.1384120154.10748.help-gnu-emacs@gnu.org>
2013-11-11  3:21 ` Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2013-11-11 19:43 Andreas
     [not found] <mailman.5825.1384199033.10748.help-gnu-emacs@gnu.org>
2013-11-11 22:30 ` Emanuel Berg
2013-11-13 23:02 Andreas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AF7F2DD0-99D5-4F95-890D-0303F57EEACC@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=andreas.tjarnberg@fripost.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.