From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Is it possible to transform text before feeding it to ispell? Date: Tue, 08 Sep 2015 13:45:52 +0200 Message-ID: <87k2s13zin.fsf@gnu.org> References: <87oahdl3g3.fsf@mbork.pl> <87twr5nrhg.fsf@gmail.com> 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 1441712789 21721 80.91.229.3 (8 Sep 2015 11:46:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 11:46:29 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alexis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 08 13:46:21 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 1ZZHLv-0002FN-2D for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 13:46:19 +0200 Original-Received: from localhost ([::1]:33304 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZHLu-0008Vh-Hv for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Sep 2015 07:46:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZHLa-0008PF-ME for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 07:46:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZHLX-0004VX-Fe for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 07:45:58 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:43673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZHLX-0004VR-Cb for help-gnu-emacs@gnu.org; Tue, 08 Sep 2015 07:45:55 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 44CA2205A8 for ; Tue, 8 Sep 2015 07:45:55 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Tue, 08 Sep 2015 07:45:55 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=maL2XFmsY+ddmj6 oiUzW+15UOE8=; b=MiWfIlshh1TZSpqYB2r2LOF0l3Y9QsVjAGv9zfR0poFhJBv Za6OnU8eLxk4IxmMwYIDBXr6kJLV4SQAEBdoI+T7e6YNaZYPnkg0IkGMnOfuxUI7 wNCvUZjLScYrLA+gjb+O+wVb5MvdJp9XYOCMRQj5UMeXNDLvOCQLiDQNJ1E8= X-Sasl-enc: JRLTgK3GiNOmd0mcDtVoqeC8B/W5NDbsiBuYISmV8vOY 1441712754 Original-Received: from thinkpad-t440p (unknown [2.163.188.161]) by mail.messagingengine.com (Postfix) with ESMTPA id 90C2DC00020; Tue, 8 Sep 2015 07:45:54 -0400 (EDT) Mail-Followup-To: Alexis , help-gnu-emacs@gnu.org In-Reply-To: <87twr5nrhg.fsf@gmail.com> (Alexis's message of "Tue, 08 Sep 2015 20:19:07 +1000") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.28 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:107082 Archived-At: Alexis 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 >> translating the text before feeding it to ispell, and translating it >> back when presenting alternatives? > > i don't know about ready-made solutions for this, but perhaps > something could be built around the `google-translate` package that's > available from MELPA and Marmalade? I'm pretty sure Marcin means something else when he says translating, i.e., translating from one encoding to another encoding, not translating between languages. For example, one might have the German word "m{\"a}{\ss}igen" in a ASCII-encoded TeX buffer and what should actually be passed to ispell/hunspell is "m=C3=A4=C3=9Figen" in UTF-8 encoding where= the translation would be `iso-tex2iso' and `iso-iso2tex'. Bye, Tassilo