From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93099 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: [fontloader/old] mixed substitution / ligatures feature Date: Fri, 18 Dec 2015 07:34:44 +0100 Message-ID: <20151218063444.GB24250@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0392333444915870382==" X-Trace: ger.gmane.org 1450420555 25164 80.91.229.3 (18 Dec 2015 06:35:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2015 06:35:55 +0000 (UTC) To: ConTeXt ML Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 18 07:35:41 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 1a9odf-000231-Kj for gctc-ntg-context-518@m.gmane.org; Fri, 18 Dec 2015 07:35:39 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 38524585A; Fri, 18 Dec 2015 07:35:05 +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 OJUa4UMN1iXz; Fri, 18 Dec 2015 07:35:03 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id AB7BA585D; Fri, 18 Dec 2015 07:35:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C5711585A for ; Fri, 18 Dec 2015 07:35:01 +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 mGrirVwB3Hd5 for ; Fri, 18 Dec 2015 07:35:01 +0100 (CET) Original-Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.119.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 185455859 for ; Fri, 18 Dec 2015 07:34:50 +0100 (CET) Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal01.urz.uni-heidelberg.de [129.206.100.176]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id tBI6Yn8I015795; Fri, 18 Dec 2015 07:34:49 +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 7DFDF21D7300; Fri, 18 Dec 2015 07:34:49 +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 tBI6Ym93004768 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 18 Dec 2015 07:34:49 +0100 Mail-Followup-To: ConTeXt ML 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:93099 Archived-At: --===============0392333444915870382== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ADZbWkCsHQ7r3kzd" Content-Disposition: inline --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Hans, 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=3Dno= de] \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? Best, Philipp --ADZbWkCsHQ7r3kzd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWc6kEAAoJELdcG6d+hz926wgP/jKzCDDfJCNecrbhV+XXH9wO MIi7nVtA8ND+v9YlUbbFj5ZT3i9B7EnQZSYkldBUqzCdS3eLEiprZdchAPgPCJnZ 2hZqLLS52PI10ba2jRYxq9gotI9xW/ZoRWs7lYNO4LbqlAgaZKIDQX9eR/2SuQRd O6DojdmH4ja9kj1RzVbDXfaAdozlNA5va6nx+W/5Eq+4m/FsxLVhQOXyakL/qXhq jTQpmoIhyhQspvVcd1j71XIDgsEFs6TwlyxAuszRFiTfAKDzKD2SKhbVtvLhOZLE tYXrB3eD+Z7hi39FQFZarpAFYDjMn4z9emhgi7Rzj93Y4jlrcoMU9idlkGyaYHdY A24IMXjIjCAE1rMrKiYxdoR3PHQHq8ri0R1YJYxUaOqMfJP1BHgOeHysSEuKGaFZ dPgdbMRNKjHJ1nglEYEBeSDbv1JUULMeZ7GgZKVKx7SFxPOa4KdtmhCaiUs1pZ6D WEnzVVQ/b53XWBjRMt5+o6oj7JHs5o4rSgT3XRWsy+6SN+MYrcBmqb1/0z1COOJP /H8bLogdZgDMyynA56C0rO0BiNw+IYVQ6JInTr/hs7IwLZ7TFEflul6YS7nKuCPn RsQtNRLMt2gwcStPG+Q4Bh3U5Azn2o6YAYx40Axvng/ycmTLOzY1InaxDjKbMFuO Pq4hUJqSyRLZSm0YeeaF =4QZR -----END PGP SIGNATURE----- --ADZbWkCsHQ7r3kzd-- --===============0392333444915870382== 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= --===============0392333444915870382==--