From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93144 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: [fontloader/old] mixed substitution / ligatures feature Date: Mon, 21 Dec 2015 06:40:03 +0100 Message-ID: <20151221054003.GA30245@phlegethon> References: <20151218063444.GB24250@phlegethon> <56744404.7010702@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1662010742864538552==" X-Trace: ger.gmane.org 1450676450 27334 80.91.229.3 (21 Dec 2015 05:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2015 05:40:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 21 06:40:37 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aAtD2-000504-Rc for gctc-ntg-context-518@m.gmane.org; Mon, 21 Dec 2015 06:40:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6877F56EC; Mon, 21 Dec 2015 06:40:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pG0oVxvuclzR; Mon, 21 Dec 2015 06:40:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id AFFD05721; Mon, 21 Dec 2015 06:40:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B4045680 for ; Mon, 21 Dec 2015 06:40:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BTTRVAuqFiuJ for ; Mon, 21 Dec 2015 06:40:23 +0100 (CET) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 5E550563F for ; Mon, 21 Dec 2015 06:40:13 +0100 (CET) Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal01.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id tBL5eBqh017234; Mon, 21 Dec 2015 06:40:11 +0100 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (Postfix) with ESMTPS id 0D8CB21D7DB2; Mon, 21 Dec 2015 06:40:11 +0100 (CET) Original-Received: from localhost (pD9ED5CD5.dip0.t-ipconnect.de [217.237.92.213]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id tBL5eAi6000706 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 21 Dec 2015 06:40:10 +0100 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: <56744404.7010702@wxs.nl> X-Statement: "Gentlemen don't read each other's mail." User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:93144 Archived-At: --===============1662010742864538552== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline --bg08WKrSYDhXBjb5 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 > On 12/18/2015 7:34 AM, Philipp Gesang wrote: > > in the old loader, defining a feature containing mixed ligature / > > substitution causes a crash. Here=E2=80=99s an example: > > > > \enabletrackers [otf.loading] > > \startluacode > > fonts.handlers.otf.addfeature ("dunno", { > > { > > type =3D "substitution", > > data =3D { [0x0022] =3D 0x201D }, > > prepend =3D true, > > }, > > { > > type =3D "ligature", > > data =3D { [0x2013] =3D {0x002D, 0x002D} }, > > prepend =3D true, > > }, > > }) > > fonts.handlers.otf.features.register { > > name =3D "dunno", > > description =3D "bug demo", > > } > > \stopluacode > > > > \definefontfeature [myfeat] [default] [dunno=3Dyes,liga=3Dyes,mode= =3Dnode] > > > > \definefont [somefont] [file:cmunrm.otf*myfeat] > > \starttext > > \somefont foo bar " baz > > \stoptext > > > > This crashes in font-otn on account of a number being indexed. > > This used to work -- anything that can be done about it? >=20 > i'll see if i can fix it but don't expect all upcoming features in the=20 > new loader to work in the old one Thanks for fixing the crash. However, the substitution doesn=E2=80=99t work as defined, even if there=E2=80=99s no ligature. It does work with the TL 2015 version. As it doesn=E2=80=99t seem work with the new loader either I guess this is related to the =E2=80=9Cem-dashes not working =E2=80= =A6=E2=80=9D issue :) Best, Philipp --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWd5CzAAoJELdcG6d+hz92sQ8QAIUJbnsuUjIJHcnT9yqaFrZI rYHta8CPb7+d6X6XFeWxO1i+24R5kpTLvswGtGCHwF43Y7DLnW+bxNs07rg9h8wA buQPmgGQZ5YwXy1vZJksuK2GVzWP1Po+nW3yM78/8CEzs27texVkHhf2I9sgfaz6 iYUYcAk9Ve4PfRY2pZGkHB35f6qQuSmcyBJ1yxc4kL1skFNt8o44f1dUUqvv4kC/ 8EWoDHjlrYggKXigX4vKKk9gVS72QKJe1rWq1dWezdB6KD/pMOw/C/g4B2cNJ92l OIGeskQsmSHt5/g905mbh+RDwH9Ol2j75QM1XCT4St0sH7gidH1DyUOXAJKadRpl 3jP015rSJduoH8PiwCqqju4OTfvrx2/v+vYbz+XyZVBQP2WmKc2wzMs3p3Q8lVGl Z9HP/Zk/NGmuRTXNWMUefljT2J93zqpPFznyyRd/NfwBaQdvrrlcBAE4U3VgNhFX ix4YKVgIlZtN1caeGv2IRxpZ/GZrBgVNCRvkzkLvyUsAR4z+pnDW6rPwzlVs8LUu 9tVi5PrI7YwRzm/sYXrpYRNHwz9r3+nl/H6k1fTjuEG3CqSJBZFFehVYoXymOfS+ HKuJfSMNxP5B61gNsxpNd4b4Q3ibTZjr5bJoogkI1HBVkOTvB1CnDP7oAwbZEMpA c5lkB5FEhj9HI3IUhxUq =/pg5 -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5-- --===============1662010742864538552== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1662010742864538552==--