From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: How to translate LaTeX into UTF-8 in Elisp? Date: Mon, 3 Jul 2017 11:31:38 +0200 Message-ID: <20170703093138.GA20828@tuxteam.de> References: <87shpyfj2q.fsf@mbork.pl> <87bmp2rud7.fsf@jane> <87y3s6vzwg.fsf@debian.uxu> <87van9dgo3.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1499074414 25797 195.159.176.226 (3 Jul 2017 09:33:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Jul 2017 09:33:34 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) Cc: help-gnu-emacs@gnu.org, Emanuel Berg To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 03 11:33:28 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 1dRxjP-0005zz-8q for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jul 2017 11:33:23 +0200 Original-Received: from localhost ([::1]:33599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRxjR-0004yj-Dt for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Jul 2017 05:33:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRxiy-0004yP-Gy for help-gnu-emacs@gnu.org; Mon, 03 Jul 2017 05:32:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRxiv-0001Zc-Bn for help-gnu-emacs@gnu.org; Mon, 03 Jul 2017 05:32:56 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:38559 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRxiv-0001U6-4I for help-gnu-emacs@gnu.org; Mon, 03 Jul 2017 05:32:53 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1dRxhi-0005Vj-8l; Mon, 03 Jul 2017 11:31:38 +0200 In-Reply-To: <87van9dgo3.fsf@jane> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 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:113668 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jul 03, 2017 at 11:16:12AM +0200, Marcin Borkowski wrote: > > On 2017-07-03, at 07:43, Emanuel Berg wrote: > > > Marcin Borkowski writes: > > > >> I'm revisiting this old thread now. Since I got no > >> satisfying answers back then, here is my plan for > >> solution [...] > > If you setup the names consistently it is even > > a good-looking solution. [...] > I'm not sure whether I follow you here. Why should *I* setup the names? > They are in ucs-names (as I said), and they are official Unicode names. > > It is still a hack, since it relies on the Unicode names being correct. > Have you seen this? > > https://codepoints.net/U+FE18?lang=en > > Notice the typo in the name. It's in the standard (somehow it slipped > through;-)), so the typo is there forever (or rather, for as long as > Unicode is going to be around). Yes: they even listed a "correction". Unicode (and Emacs) seem to have a mechanism in place for a code point to have more than one name (I don't know whether there can be more than two, though). So perhaps the only thing to cope with is that the mapping name -> code point isn't injective (whatever that means for your approach)? Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAllaDvoACgkQBcgs9XrR2kaoqQCfZo3CqBbeWPHBFaszqFd2DsTC ixUAn1HG7Rzbc5KkzrfeUu+gYmEviJEs =CKUu -----END PGP SIGNATURE-----