From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Is it possible to transform text before feeding it to ispell? Date: Tue, 08 Sep 2015 17:24:50 +0200 Message-ID: <87d1xt3pdp.fsf@mbork.pl> References: <87oahdl3g3.fsf@mbork.pl> <87zj0x12ns.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1441725971 20350 80.91.229.3 (8 Sep 2015 15:26:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 15:26:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 08 17:26:04 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZKmK-00040Y-SZ for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 17:25:49 +0200 Original-Received: from localhost ([::1]:35155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZKmK-0001Y6-5N for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 11:25:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZKll-0001Wx-2j for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 11:25:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZKli-0006V8-EZ for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 11:25:13 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:52952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZKli-0006Ut-8G for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 11:25:10 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 76D638F2003 for ; Tue, 8 Sep 2015 17:25:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UdDNvoiB6c8e for ; Tue, 8 Sep 2015 17:24:59 +0200 (CEST) Original-Received: from localhost (103-115.echostar.pl [213.156.103.115]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 4D6586F2005 for ; Tue, 8 Sep 2015 17:24:58 +0200 (CEST) In-reply-to: <87zj0x12ns.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107086 Archived-At: On 2015-09-08, at 15:06, Michael Heerdegen wro= te: > Marcin Borkowski writes: > >> assume that I have an \(i\|hun\)spell dictionary in encoding X, and my >> document is in encoding Y. Does Emacs have any facility for translati= ng >> the text before feeding it to ispell, and translating it back when >> presenting alternatives? > > AFAIK ispell does that automatically (if it is not configured > incorrectly). In particular, the encoding of dictionaries is part of > their representation in Emacs - see `ispell-dictionary-base-alist'. I see. (I very seldom use a spill chucker, maybe I should start?) > What's your problem in concrete? People writing "=C4=85" (a letter existing in Polish, but outside ASCII) = as "/a" (i.e., slash and a, sometimes seen in old Polish-language TeX documents) or ""a" (i.e., quotation mark and a, which is used by LaTeX package "babel"). Not a typical "encoding", since it uses an "escape char", but sometimes used (unfortunately). > Michael. Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University