From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83252 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: [fontloader] cached fonts have invalid tounicode values Date: Thu, 27 Jun 2013 22:08:51 +0200 Message-ID: <20130627200851.GA12791@phlegethon> References: <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="===============1570299040==" X-Trace: ger.gmane.org 1372363756 5724 80.91.229.3 (27 Jun 2013 20:09:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 20:09:16 +0000 (UTC) To: ConTeXt ML Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 27 22:09: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 1UsIVJ-0002p8-C1 for gctc-ntg-context-518@m.gmane.org; Thu, 27 Jun 2013 22:09:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 10E37101EA; Thu, 27 Jun 2013 22:09:13 +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 qhJH+YDX4e27; Thu, 27 Jun 2013 22:09:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4D5D4101E6; Thu, 27 Jun 2013 22:09:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B8A9101E6 for ; Thu, 27 Jun 2013 22:09:09 +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 Rxex72Jm9OEL for ; Thu, 27 Jun 2013 22:09:07 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 6D92F101E5 for ; Thu, 27 Jun 2013 22:08:57 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5RK8t7K017369 for ; Thu, 27 Jun 2013 22:08:56 +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 r5RK8tI5009483 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Jun 2013 22:08:55 +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 r5RK8sou016598 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 27 Jun 2013 22:08:54 +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 r5RK8r65025311 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 27 Jun 2013 22:08:54 +0200 Mail-Followup-To: ConTeXt ML In-Reply-To: <20130627090941.GA23357@phlegethon> X-Operating-System: Linux phlegethon 3.9.5-1-ARCH User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0064 (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: 0RJRw8Ttt - 03b01cfaeba1 - 20130627 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:83252 Archived-At: --===============1570299040== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7 > Hi Hans, >=20 > 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. >=20 > ... > ["tounicode"]=3D{ > [2329]=3D"E001", > ... > [2384]=3D"0063006B", -- <-- correct > [2385]=3D00630068, -- <-- invalid > [2386]=3D00740074, > [2387]=3D00630074, > [2388]=3D"017F0069", > ... >=20 > Best regards, > Philipp >=20 > [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.) I=E2=80=99ve traced it to luatex-basics-gen.lua. The cache is compiled with the spec =E2=80=9C{reduce =3D true}=E2=80=9D which causes values to be analyzed and =E2=80=9Ctonumber()=E2=80=9Ded. If I unset the reduce flag, the values turn out correct in the PDF. Best, Philipp --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBCgAGBQJRzJvTAAoJEI7yfcKNwM1+uLIH/2TcGIzqKmKBEvBnP4uvLLOf U5vMdnrRc1cxVJ/k1vsnJkUOzlPuf/sF1GLIbtUXk4i3DDI38P7iufF5y4qLvQS4 bDyHOpLh2ffz6VrAcXTOYoJRjLzqkF2QuewsZwdarBb6a4jj76dbNZk9uvmHPzGK CmG5s5aA1zBK9QL5GxWBlCMtjbWyWJPdEL063yi8FCZCEjN079qhrQXW0amcyXdE pK0CE9LSqAWWTdqvOnRRHSYiWx/VBgryHST8kexAzYAHeWmshOIk7nt8btrC/NhM KGD2B1dHGRbVrzWEoz3sGURpOWY7cpo4Ape4E4T4WIAFigan6sHmYGSt/EdWAKM= =vrO3 -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM-- --===============1570299040== 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 ___________________________________________________________________________________ --===============1570299040==--