From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83242 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: [fontloader] cached fonts have invalid tounicode values Date: Thu, 27 Jun 2013 11:09:41 +0200 Message-ID: <20130627090941.GA23357@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2025135858==" X-Trace: ger.gmane.org 1372324216 30703 80.91.229.3 (27 Jun 2013 09:10:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 09:10:16 +0000 (UTC) To: ConTeXt ML Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 27 11:10:18 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Us8DU-00083b-7C for gctc-ntg-context-518@m.gmane.org; Thu, 27 Jun 2013 11:10:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4816F101EA; Thu, 27 Jun 2013 11:10:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id owkWC1+87dk0; Thu, 27 Jun 2013 11:10:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6AC94101E5; Thu, 27 Jun 2013 11:10:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4713B101E5 for ; Thu, 27 Jun 2013 11:10:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4zt6VRmp+gIx for ; Thu, 27 Jun 2013 11:10:02 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 33094101E4 for ; Thu, 27 Jun 2013 11:09:52 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5R99pha018717 for ; Thu, 27 Jun 2013 11:09:51 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id r5R99opI016172 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Jun 2013 11:09:50 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id r5R99nVW009992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Jun 2013 11:09:49 +0200 Original-Received: from localhost (p4FFFD3EE.dip0.t-ipconnect.de [79.255.211.238]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id r5R99mwq006730 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 27 Jun 2013 11:09:48 +0200 Mail-Followup-To: ConTeXt ML X-Operating-System: Linux phlegethon 3.9.5-1-ARCH User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.100.212; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JRl9PHj - 5df0ddbe417f - 20130627 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83242 Archived-At: --===============2025135858== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hans, this has been reported by Dohyun Kim [1]: the generic fontloader (not Context) serializes some tounicode values as Lua numbers, not strings. When re-reading the cache file the values lose all leading zeros, so they are no longer well-formed UTF-16BE. ... ["tounicode"]=3D{ [2329]=3D"E001", ... [2384]=3D"0063006B", -- <-- correct [2385]=3D00630068, -- <-- invalid [2386]=3D00740074, [2387]=3D00630074, [2388]=3D"017F0069", ... Best regards, Philipp [1] https://github.com/lualatex/luaotfload/issues/102 (Kim=E2=80=99s example works with luatex-plain if you comment out the ``\input luaotfload.sty`` line.) --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBCgAGBQJRzAFUAAoJEI7yfcKNwM1+dyQH/jU52/XJ32BOuE2ZMsp1c1up QwhdAHdmPLmxkFaTzHi1zbZ9RVTfMJKxdWerSwWVTN7p2x15FlcUw7Aaff42cCiE pjr5Qan5Y2+V9vApL2Zje4xHPqGbY671knK+/JWzLlHI96uPh8StZmEg5w/m0dwx toOIEXAYycwka3c6sdpbuF+dDQIEkqvkWcjrKa0Pw5M9X1UtExCFIl3HdRi+W/v1 Tj/usC5+zn3OAmAUS99/hsBqBaaQ7Y8woJa8P+HwifLWN44rcNP9ynaCh58cb2fN l3lYs0uf1caUMxWA2FugHoOjXYxuoVY73X3NTXvnEw69lDuOr2iitQ6P63zvCY0= =i7SO -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+-- --===============2025135858== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2025135858==--