From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Konstanski Newsgroups: gmane.emacs.help Subject: Re: How to translate LaTeX into UTF-8 in Elisp? Date: Thu, 08 Dec 2016 11:21:21 -0700 Message-ID: <874m2e1dum.fsf@pippiandcarlos.com> References: <87shpyfj2q.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1481221324 29185 195.159.176.226 (8 Dec 2016 18:22:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Dec 2016 18:22:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 08 19:21:59 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cF3KO-0006fg-Ss for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Dec 2016 19:21:57 +0100 Original-Received: from localhost ([::1]:48175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF3KS-0006F1-Pp for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Dec 2016 13:22:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cF3Jy-00067v-LE for help-gnu-emacs@gnu.org; Thu, 08 Dec 2016 13:21:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cF3Jt-0007lj-OC for help-gnu-emacs@gnu.org; Thu, 08 Dec 2016 13:21:30 -0500 Original-Received: from [63.228.66.31] (port=28606 helo=mail.pippiandcarlos.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cF3Jt-0007lE-HX for help-gnu-emacs@gnu.org; Thu, 08 Dec 2016 13:21:25 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 65EEB374F55; Thu, 8 Dec 2016 11:21:23 -0700 (MST) Original-Received: from mail.pippiandcarlos.com ([127.0.0.1]) by localhost (mail.pippiandcarlos.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BbM31VFliHC9; Thu, 8 Dec 2016 11:21:23 -0700 (MST) Original-Received: from sphinkpad (56nat.mystrotv.com [207.93.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.pippiandcarlos.com (Postfix) with ESMTPSA id B21E6374F40; Thu, 8 Dec 2016 11:21:22 -0700 (MST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.pippiandcarlos.com B21E6374F40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pippiandcarlos.com; s=pippiandcarlos.com.private; t=1481221282; bh=h28rQkjUuOIwqyi2Yuc+fbhNXrXryvlIg9h4LaoAnKQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=Xeug72IWwvT7ZMCngepfVbncVQG5G1ro4GV4RHMuzxBYnPx0NPg5ix1iqhUjWvh3N FomRirg1oi34H81xfnwNSrF+pX49Yl8cbV5iGbpOVAuR4v6TNMxbneIgl+YQcngvnx gK/SpiCCmQ577PHyahRjW3oiUOoWHjpbIgkQ9rSM= In-Reply-To: <87shpyfj2q.fsf@mbork.pl> (Marcin Borkowski's message of "Thu, 08 Dec 2016 18:04:45 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 63.228.66.31 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:111898 Archived-At: This is not an answer to your question, but rather an alternative way to use non-ASCII chars in a tex file: \usepackage[german]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} (Replace "german" with the language of your choice) Now you can simply type the actual character rather than using an escape sequence. Carlos Marcin Borkowski writes: > Hi all, > > I have a string with embedded sequences like "\'e" or "\H{o}". The > Emacs TeX input method knows how to convert them into "=C3=A9" or "=C5=91= " (when > typing, of course). Is there a way to use that to perform similar > conversions in a string? > > TIA,