From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: ispell/flyspell and german umlauts Date: Fri, 01 Aug 2003 13:31:49 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1059835101 26465 80.91.224.249 (2 Aug 2003 14:38:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2003 14:38:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 02 16:38:17 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ixVN-0006og-00 for ; Sat, 02 Aug 2003 16:37:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ibwr-0006wj-MI for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2003 11:36:05 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!dialin-145-254-192-068.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: dialin-145-254-192-068.arcor-ip.net (145.254.192.68) Original-X-Trace: news.uni-berlin.de 1059738196 24790656 145.254.192.68 (16 [87814]) X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6; Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:TTHugndiUBjw+DU+pF4XD1SfwrM= Original-Xref: shelby.stanford.edu gnu.emacs.help:115608 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11553 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11553 Karl Voit writes: > Hi! > > I am using emacs 21.3.2 and flyspell. I managed to configure it to > german as standard dictionary. But when I am using emacs to write > usegroup postings, I prefer tying 'ae' instead of umlaut-'a' and so > on. [Huh? In the year 2003? In stark contrast to this I don't use even ISO 8859 anymore ... Well, YMMV.] > Unfortunately, my postings are messed up with flyspell-formatting > for unknown words because of the ispell-dictionary that only got > words with 'real' umlauts. > > Is there a way to overcome this problem? [...] To get exactly what you describe, you'd had to make sure that the communication with the ispell process, so that Words in the Duden-“encoding” are decoded to ISO 8859-1. While this should be possible, it is also error prone: zuerst -> zuerst, aerodynamisch --> aerodynamisch etc. And there is no sensible way to deal with ss and ss. And you'd have to create a new coding system. [In fact I tried exactly this, because I am fascinated by the CCL language use for writing coding systems. My coding system works flawlessly with `encode-coding-region', but when I try to use it for communicating with ispell, Emacs hangs. Does anybody have an idea for possible reasons?] I'd say it's a lot easier, however, to write your messages as usual with umlauts and encode this to duden upon sending it. Try to add this to your .gnus: (add-hook 'message-send-hook 'kv-message-good-old-times) (defun kv-message-good-old-times () (iso-iso2duden (save-excursion (message-goto-body) (point)) (point-max))) I'll test this with this message by yanking in a paragraph from the German Emacs tutorial: Zunaechst muessen Sie wissen, wie man sich innerhalb eines Dokuments bewegen kann. Wie man eine Bildschirmseite vorwaerts blaettert, wissen Sie schon (C-v). Mit M-v blaettern Sie eine Bildschirmseite zurueck (halten Sie die META-Taste gedrueckt und geben Sie v ein, oder druecken Sie zuerst und anschliessend v). Oliver -- 14 Thermidor an 211 de la Révolution Liberté, Egalité, Fraternité!