From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kendall Shaw Newsgroups: gmane.emacs.help Subject: Re: How to translate LaTeX into UTF-8 in Elisp? Date: Sat, 28 Jan 2017 00:15:47 -0800 Message-ID: <7124a5a7-96f4-de80-c329-d6219f1667f0@kendallshaw.com> References: <87shpyfj2q.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1485615691 28470 195.159.176.226 (28 Jan 2017 15:01:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2017 15:01:31 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 28 16:01:26 2017 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 1cXUV7-0005gj-1A for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Jan 2017 16:01:13 +0100 Original-Received: from localhost ([::1]:52151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXUVC-0003d3-Fj for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Jan 2017 10:01:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXOAu-0007gn-Qt for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 03:15:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXOAq-0006ob-Ne for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 03:15:56 -0500 Original-Received: from d.mail.sonic.net ([64.142.111.50]:46564) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cXOAq-0006nF-Dv for help-gnu-emacs@gnu.org; Sat, 28 Jan 2017 03:15:52 -0500 Original-Received: from [192.168.1.76] (108-64-77-57.lightspeed.sntcca.sbcglobal.net [108.64.77.57]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id v0S8FlH0024936 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 28 Jan 2017 00:15:47 -0800 In-Reply-To: <87shpyfj2q.fsf@mbork.pl> X-Sonic-CAuth: UmFuZG9tSVYs/Jj/0kdZmpR/6t0iAQtJkZzdTyVPItQZWc+gPI/6uJdyyE9dwbAixbrHjjTxFwaAo4x9MK/3uvl3gHFQKo89 X-Sonic-ID: C;Rnno+DHl5hGiM4s6xpAcWQ== M;UDAs+THl5hGiM4s6xpAcWQ== X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-MIME-Autoconverted: from 8bit to quoted-printable by d.mail.sonic.net id v0S8FlH0024936 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 64.142.111.50 X-Mailman-Approved-At: Sat, 28 Jan 2017 10:00:37 -0500 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:112182 Archived-At: There is a variable tex--prettify-symbols-alist that maps some tex=20 symbols to code points. I think you can use the function=20 set-buffer-file-coding-system to cause any file the buffer is saved to=20 to be in utf-8, then use characters from tex--prettify-symbols-alis. Kendall On 12/08/2016 09:04 AM, Marcin Borkowski wrote: > 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, >