From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103548 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Marcel_Kr=C3=BCger?= Newsgroups: gmane.comp.tex.context Subject: em-dash ligature is converted to en-dash in the generic fontloader Date: Thu, 28 Feb 2019 12:38:54 +0100 Message-ID: <16933e6728e.123a80716120657.793480406127173845@2krueger.de> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_391892_1658766017.1551353934478" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223328"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Zoho Mail To: "ntg-context" Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 01 09:11:38 2019 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 blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gzdGb-000w0x-88 for gctc-ntg-context-518@m.gmane.org; Fri, 01 Mar 2019 09:11:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D5C2BF6D58; Fri, 1 Mar 2019 09:10:26 +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 AgYu4XxVqd_A; Fri, 1 Mar 2019 09:10:26 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 43967F6D5A; Fri, 1 Mar 2019 09:10:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 16D0BF63A5 for ; Thu, 28 Feb 2019 12:39:07 +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 bn6feOrNHYaG for ; Thu, 28 Feb 2019 12:39:01 +0100 (CET) Original-Received: from sender-of-o52.zoho.com (sender-of-o52.zoho.com [135.84.80.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0F241F636E for ; Thu, 28 Feb 2019 12:39:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; t=1551353935; cv=none; d=zoho.com; s=zohoarc; b=ABhsx5j2haiQGl0+CqaiXfTBp/2wRMg/fF67FrcbMQnWF8ou2bc/Pk4gNe63mNuhC00PagiUWwOBoVdwkRjISkFyK8LL8yfEnEhQXlFe0dNjGOoFaJwhNrA+M2DMA4RUCnJcxqqsqdlw1qbCL9A6p++0bQMLLDRB0sL/UVuUvA8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1551353935; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=AThZ5i/Bi+ioXNHMrYtkJpXoeuQ1O7NsMnV+JZ2Ksps=; b=fU1owZxCk1RM+mSQSabEzmsfOpUWR6mWt74b42pvbSqlsTD60LduS/Ihwu6ybp5QxvWkDxJTqlu/w+xK4L3mljPo4ydbjJqXyKAYY/VbdGbfpdthfFJu0PP7jWhZrYdDSgLBZZ7D5IBXPl7FoJQI9v/KTiXKnJPH6FmF7185Ce0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=2krueger.de; spf=pass smtp.mailfrom=marcel@2krueger.de; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1551353935; s=zoho; d=2krueger.de; i=tex@2krueger.de; h=Date:From:To:Message-Id:In-Reply-To:Subject:MIME-Version:Content-Type; l=1813; bh=AThZ5i/Bi+ioXNHMrYtkJpXoeuQ1O7NsMnV+JZ2Ksps=; b=sCPxaZVkDTJFdL0yPuyzzLGkwx38CXp/iHtp17Oc3A/EcX6yYiIucjVpr/YYLQ+t mtBlXj3zI/qpq0vuWb/fJNcUSMzdttKI+J9k4+WAJVLb7OpFv0EZYi0lvzjx34h9M+s FFTVxmiIq0nsL2HzvFR59AopAhgPNJVtYzRcMqaU= Original-Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1551353934492396.7465910283686; Thu, 28 Feb 2019 03:38:54 -0800 (PST) X-Priority: Medium X-Mailer: Zoho Mail X-Zoho-Virus-Status: 1 X-Mailman-Approved-At: Fri, 01 Mar 2019 09:10:23 +0100 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:103548 Archived-At: ------=_Part_391892_1658766017.1551353934478 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 2/23/2019 1:50 PM, Ulrike Fischer wrote: > As reported on the dev-luatex list --- is converted to an en-dash > (instead of em-dash) if there are no spaces around the ---. >=20 > We could now reproduce the problem also with the generic fontloader: > it appears only with mode=3Dnode. I'm using the files from 2019-02-14, > but the problem appeared first in the files from 2018-11-18): >=20 > \font\test=3D{file:texgyreheros-regular.otf:+tlig;mode=3Dnode;}\test >=20 > dashes-these % gives dash >=20 > dashes--these % gives en-dash >=20 > dashes---these % gives en-dash WRONG >=20 > dashes --- these % gives em-dash >=20 > em-dashes---these % gives em-dash >=20 > \bye >=20 > context is not affected, there the code works fine. This issue can be fixed in the fontloader with the attached patch. Best regards, Marcel Kr=C3=BCger ------=_Part_391892_1658766017.1551353934478 Content-Type: application/octet-stream; name=0001-Fix-ligature-followed-by-disc.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-Fix-ligature-followed-by-disc.diff diff --git a/tex/context/base/mkiv/font-ots.lua b/tex/context/base/mkiv/font-ots-fixed.lua index 563094f..b1068f7 100644 --- a/tex/context/base/mkiv/font-ots.lua +++ b/tex/context/base/mkiv/font-ots-fixed.lua @@ -841,7 +841,7 @@ function handlers.gsub_ligature(head,start,dataset,sequence,ligature,rlmode,skip local prev = getprev(start) if stop then setnext(stop) - local tail = getprev(stop) + local tail = stop local copy = copy_node_list(start) local liat = find_node_tail(copy) if pre then ------=_Part_391892_1658766017.1551353934478 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== ------=_Part_391892_1658766017.1551353934478--