From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/110850 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: tlig feature sometimes does not work Date: Sat, 13 Mar 2021 22:18:20 -0500 Message-ID: References: <2c4a74c3-e06e-2714-3a37-696c492d0e5b@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5993512880213960346==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11660"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 14 04:19:13 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lLHHd-0002ws-FM for gctc-ntg-context-518@m.gmane-mx.org; Sun, 14 Mar 2021 04:19:13 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ECBC42817A8; Sun, 14 Mar 2021 04:18:36 +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 nc3Uxw3ykqLh; Sun, 14 Mar 2021 04:18:35 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 55A4B2817D2; Sun, 14 Mar 2021 04:18:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 435CA2817A9 for ; Sun, 14 Mar 2021 04:18:34 +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 Mo2rtc0xo9Lo for ; Sun, 14 Mar 2021 04:18:33 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.176; helo=mail-yb1-f176.google.com; envelope-from=bateni@gmail.com; receiver= Original-Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 46E6B2817A8 for ; Sun, 14 Mar 2021 04:18:33 +0100 (CET) Original-Received: by mail-yb1-f176.google.com with SMTP id p193so29680876yba.4 for ; Sat, 13 Mar 2021 19:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pMr16zHOFLAipmafOmIQwUeLT5Qf0F4kNJROUSH3d+o=; b=sEMJaum0t1B3S2dJ+WJ+WUiLxjxBtRiNJ0mQMIjD4XIESW0/4kXenCdPZHaU113RDp 2Z5KaX1f086CdQ+dxRLTEK3AbvAa8DOK/jvpWO3bhUfAsWPwYtNDJqSbpFhF1luljGzM vrgz4Fc45b2z4pTUJSZ0aZHF6uvwVKE90sG5VRk7sJkUpcya5Bz53YJEbpAYBhTaQKfF 0JytIWGr1UTdJJfO/eaJV+u3oENbMBWBRXIKPWVQy7OggANEzxhScHfkY1RuurhHUj8s DjK6SQsbH2uVSeIFcA7nLTdSBN23sorsc0v5Jne1cz/wizl/VjHBWROHQY2ODQe6tYrJ FjZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pMr16zHOFLAipmafOmIQwUeLT5Qf0F4kNJROUSH3d+o=; b=ZjwrbGWy3tWQ2vhhrGOpvLH5GX4jjLQS6eTSulWY3H01OSVabJSV5iJN9YL+T92716 +tr7jE0Bhkkl+DSUjfTpl1Q9+5IaPGHCUEcddedlC+Scp0pwR790Np2mnuwsBpjdZh01 QQnvQ4/Dec8IGXdvrVRMVUbYSDiBI71AeIEXwlXZ6PYeG8Gf3b4OLAPHxMPTGpOJbWcn X5NOB8hYIYEfXk0lApHmYy4cbM5MZ9kgmgF4fJigRs7mfGI4LGwhMmLEtZxzdAwbGXiu Kay7eM5yJTa7GaIDzuBmnMySbccl5kXV11GeEWXh79IrdqojAfEWV9PRI8L5YHRMM4YP vm1A== X-Gm-Message-State: AOAM532njTsBi2qfFa/F1f9xXC7RV38zRaVLb19+K8rxnIACyjHhjeUG LPYX7L9zNVe80YxRNAKRxzvnAoUVu3huefEk23I= X-Google-Smtp-Source: ABdhPJwA04VxBm6quvUyS+y8vqsRmEeE8furSB9xZ4mUbBYdRvFAIam7cSLI0Ioa3XXFm4fEUo9wc+zBcvqclI4NM0c= X-Received: by 2002:a25:5381:: with SMTP id h123mr25341548ybb.416.1615691911761; Sat, 13 Mar 2021 19:18:31 -0800 (PST) In-Reply-To: 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.io gmane.comp.tex.context:110850 Archived-At: --===============5993512880213960346== Content-Type: multipart/alternative; boundary="00000000000077953f05bd7696d7" --00000000000077953f05bd7696d7 Content-Type: text/plain; charset="UTF-8" Added some notes to the wiki: https://wiki.contextgarden.net/Featuresets#Open-type_features On Sat, Mar 13, 2021 at 3:12 AM Hans Hagen wrote: > On 3/13/2021 2:01 AM, Mohammad Hossein Bateni wrote: > > Umm... the fallbacks are correct. My conclusion is that tlig does not > > work when the character is not in the font itself. Is that the case? > > Is this a bug or a feature? > > > > \starttext > > > > > \definefontfallback[fall][dejavusansmono][0-0xfffff][check=yes,force=no] > > \definefontsynonym[Test][file:Mikhak-Medium.ttf][fallbacks=fall] > > \definefontfeature[tf][arabic][tlig=yes] > > \definedfont[Test*tf] > > foo--bar > > [\char"2013] > > [\char"2014] > > \stoptext > ... or a misunderdstanding: > > \starttext > > > \definefontfallback[myfallback][dejavuserif*default][0x02d,0x2013,0x2014][check=yes,force=yes] > > > \definefontsynonym[mytestfont][file:Mikhak-Medium.ttf][fallbacks=myfallback] > \definedfont[mytestfont*arabic] > foo--ofo---oof [\char"002D] [\char"2013] [\char"2014] > \stoptext > > for a ligature to be made all the glyphs involved have to come from the > same font > > I think you should wikify this (also because the font once complete is a > nice one to use in examples), > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --00000000000077953f05bd7696d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Mar 13, 2021 at 3:12 AM Ha= ns Hagen <j.hagen@xs4all.nl>= wrote:
On 3/13/= 2021 2:01 AM, Mohammad Hossein Bateni wrote:
> Umm... the fallbacks are correct.=C2=A0 My conclusion is that tlig doe= s not
> work when the character is not in the font itself.=C2=A0 Is that the c= ase?=C2=A0
> Is this a bug or a feature?
>
> \starttext
>=C2=A0 =C2=A0 =C2=A0
>=C2=A0 =C2=A0\definefontfallback[fall][dejavusansmono][0-0xfffff][check= =3Dyes,force=3Dno]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0\definefontsynonym[Test][file:Mikhak-Medium.= ttf][fallbacks=3Dfall]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0\definefontfeature[tf][arabic][tlig=3Dyes] >=C2=A0 =C2=A0 =C2=A0 =C2=A0\definedfont[Test*tf]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0foo--bar
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[\char"2013]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[\char"2014]
> \stoptext
... or a misunderdstanding:

\starttext

\definefontfallback[myfallback][dejavuserif*default][0x02d,0x2013,0x2014][c= heck=3Dyes,force=3Dyes]

\definefontsynonym[mytestfont][file:Mikhak-Medium.ttf][fallbacks=3Dmyfallba= ck]
=C2=A0 =C2=A0 =C2=A0 \definedfont[mytestfont*arabic]
=C2=A0 =C2=A0 =C2=A0 foo--ofo---oof [\char"002D] [\char"2013] [\c= har"2014]
\stoptext

for a ligature to be made all the glyphs involved have to come from the same font

I think you should wikify this (also because the font once complete is a nice one to use in examples),

Hans


-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--00000000000077953f05bd7696d7-- --===============5993512880213960346== 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== --===============5993512880213960346==--