From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114062 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Youssef Cherem via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Fallback fails for Linux Libertine O to Junicode over private area, debugging? Date: Fri, 7 Jan 2022 13:52:05 -0300 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7423204206283520843==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2840"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Youssef Cherem To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 07 17:53:12 2022 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 1n5sUJ-0000IL-0x for gctc-ntg-context-518@m.gmane-mx.org; Fri, 07 Jan 2022 17:53:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 805D82868D0; Fri, 7 Jan 2022 17:52: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 Iv-inS1Xvjut; Fri, 7 Jan 2022 17:52:22 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7D0A8280F87; Fri, 7 Jan 2022 17:52:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AE4C6280F87 for ; Fri, 7 Jan 2022 17:52:21 +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 SdQx3ebq5PA5 for ; Fri, 7 Jan 2022 17:52:20 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.173; helo=mail-yb1-f173.google.com; envelope-from=ycherem@gmail.com; receiver= Original-Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (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 3F637280282 for ; Fri, 7 Jan 2022 17:52:20 +0100 (CET) Original-Received: by mail-yb1-f173.google.com with SMTP id v186so9045523ybg.1 for ; Fri, 07 Jan 2022 08:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AJdzY2Q20CX1pEk6hXyGKZruCkccTFvysqbyBzjDgxw=; b=BV0U55iaSAm042fhD0+2XbEhOiemI5rOYRR/OkWMbjdfwnN+uub/fFi7EuzZnLWgNH M1SJkTy3SAyFwOk5XvYMLHGJT5Ap5u3knFqNMcca6oUjkJ/VI106784BXLsFz/pFOrJH Wwf+mOIrpx8P1cbYJDb9PX3H1uRBnOUj0NxcbItzkErtLN24D2esJ56RA1iGUZ5Dk/lL ydkz36k9LJU7bOCenGZbJ5VZB/BP2EOg3Yd3l4D0xch2sMhXvAzZ+wZuPJpEP+rnqFHE BpH1yfYZJj7UNHG3qTFDB95jx2Aw34oLSit4ZGjDSzWTw8duMW6CN0u6VHUw6TbL1HA8 jbow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AJdzY2Q20CX1pEk6hXyGKZruCkccTFvysqbyBzjDgxw=; b=dd77pJdReq82d8U1XR4bdJ63PvkK3vEJpIqPx4UwZB7GtTXbr/2H1mY53TCUt9/Nv/ EZlHJg1qBQK6dfPOevVhDilDEQNBgJEa+4tGHvYeS4Bn3mRzo5cRqBRTqMzaqehszLVY bbTpf06hcH1hEeiHQ3Gc3AfHX91yMW/F6QxcPVkT/sYAHGH5Ivuqc9GbqtxlRmpcOXPb 2fqbruTmVEnGCv++0MRJA+DRHJUN2xQmkiMbeU1r84qtLryDArtnbyydfJBPCVuyq8CO 6dQibjSgJoMNGUIx8zE+1GIRy1pIwuOdArBYm0Yfym9fK82dVR6m+TuO0Ajht59NqaXI DNRQ== X-Gm-Message-State: AOAM531oD+YLJUe4P0LqS14L4qs/DZ+rYMAU8GUzvD/EyS24GDM7yHbq WqySBqyehswqBOx380MK+ABfK/dXJqUeKjmKCqF4HKZS/e4= X-Google-Smtp-Source: ABdhPJziEGJuUjY9uLrO05z51z0MvicBqTumNx2M/LrQfp+1jm8sE8531XL+gymZQXUyxlu6QdPEQ1QeRO+VZ3z8cHA= X-Received: by 2002:a25:ad8a:: with SMTP id z10mr71707111ybi.414.1641574336660; Fri, 07 Jan 2022 08:52:16 -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:114062 Archived-At: --===============7423204206283520843== Content-Type: multipart/alternative; boundary="000000000000358aa105d500cfd0" --000000000000358aa105d500cfd0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Is it just your example, or do you really just want those ligatures? fre. 7. jan. 2022 kl. 12:33 skrev J.=E2=80=AFP. Ascher via ntg-context < ntg-context@ntg.nl>: > Hi, all, > > I'm a long time lurker (on gmane), first time poster. First, thank you > all, very much, for your excellent work and superb community. > ConTeXt has become a critical part of my academic writing and integral > to my research. I'm not exaggerating when I say it changed how > I thought about texts and became a major source for my dissertation > work. Thank you! > > I'm trying to get a typescript for setting a text in Libertine with > Junicode fallbacks for characters in MUFI, in the private use area. > For some reason Libertine roman will not fallback no matter what > I do. However Libertine italic will. I can also work around it by using > Junicode as a base and forcing fallback to Libertine. > > My question is: why? What's wrong with Libertine roman? Or my approach? > > My hypothesis is that there's something about `LinLibertine_R.otf` > that's not quite right. I looked in FontForge, but couldn't > spot anything. > > Does anyone have a suggestion as to another place to look? Or something > I'm overlooking? > > Minimal example (attached too, if it comes through): > > ``` > \definefontfeature[default][default][script=3Dlatn] > > > % Libertine with a Junicode fallback, lib-fb-jun > > > \definefontfallback[junicodefallback][name:Junicode][privateusearea][chec= k=3Dyes,force=3Dno] > > \starttypescript [serif] [lib-fb-jun] > \definefontsynonym [Libertine-Roman] [file:linlibertiner] > \definefontsynonym [Libertine-Slanted] [file:linlibertineri] % works > fine > \stoptypescript > > \starttypescript [serif] [lib-fb-jun] [name] > \definefontsynonym [Serif] [Libertine-Roman] > [features=3Ddefault,fallbacks=3Djunicodefallback] > \definefontsynonym [SerifSlanted] [Libertine-Slanted] > [features=3Ddefault,fallbacks=3Djunicodefallback] > \stoptypescript > > \starttypescript [lib-fb-jun] > \definetypeface [lib-fb-jun] [rm] [serif] [lib-fb-jun] [default] > \stoptypescript > > > % Junicode with Libertine as a fallback, preferring Libertine, jun-pr-lib > % this hack does what I want the above to do > > > \definefontfallback[preferlibertine][name:linlibertineo][0-FFFFF][check= =3Dyes,force=3Dyes] > > \starttypescript[serif] [jun-pr-lib] > \definefontsynonym [JunicodeRoman] [name:Junicode] > \stoptypescript > > \starttypescript[serif] [jun-pr-lib] [name] > \definefontsynonym [Serif] [JunicodeRoman] [fallbacks=3Dpreferlibertin= e] > \stoptypescript > > \starttypescript [jun-pr-lib] > \definetypeface [jun-pr-lib] [rm] [serif] [jun-pr-lib] [default] > \stoptypescript > > > % some tracking stuff > > \enabletrackers[fonts.missing=3Dreplace] > \enabledirectives[logs.errors] > > > % text, we use lib-fb-jun first, then jun-pr-lib > > \starttext > \setupbodyfont[lib-fb-jun] > > {\em emph. lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three > glyphs)} > > lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs) % <- > fallback fails here > > \switchtobodyfont[jun-pr-lib] > > jun-pr-lib: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs) % <- > works > > \stoptext > ``` > > Any ideas? > > Most warmly, > -jp > > -- > J.=E2=80=AFP. Ascher > Preceding: https://doi.org/10.18130/jqpe-zc65 > Current: http://www.bibsoc.org.uk/content/2020-2021-0 > > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --000000000000358aa105d500cfd0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is it just your example, or do you really just want tho= se ligatures?=C2=A0

fre. 7. jan. 2022 kl. 12:33 skrev J.=E2=80=AFP. As= cher via ntg-context <ntg-context@= ntg.nl>:
= Hi, all,

I'm a long time lurker (on gmane), first time poster. First, thank you<= br> all, very much, for your excellent work and superb community.
ConTeXt has become a critical part of my academic writing and integral
to my research.=C2=A0 I'm not exaggerating when I say it changed how I thought about texts and became a major source for my dissertation
work.=C2=A0 Thank you!

I'm trying to get a typescript for setting a text in Libertine with
Junicode fallbacks for characters in MUFI, in the private use area.
For some reason Libertine roman will not fallback no matter what
I do. However Libertine italic will.=C2=A0 I can also work around it by usi= ng
Junicode as a base and forcing fallback to Libertine.

My question is: why?=C2=A0 What's wrong with Libertine roman?=C2=A0 Or = my approach?

My hypothesis is that there's something about `LinLibertine_R.otf`
that's not quite right.=C2=A0 I looked in FontForge, but couldn't spot anything.

Does anyone have a suggestion as to another place to look?=C2=A0 Or somethi= ng
I'm overlooking?

Minimal example (attached too, if it comes through):

```
\definefontfeature[default][default][script=3Dlatn]


% Libertine with a Junicode fallback, lib-fb-jun

\definefontfallback[junicodefallback][name:Junicode][privateusearea][check= =3Dyes,force=3Dno]

\starttypescript [serif] [lib-fb-jun]
=C2=A0 \definefontsynonym [Libertine-Roman]=C2=A0 =C2=A0 =C2=A0[file:linlib= ertiner]
=C2=A0 \definefontsynonym [Libertine-Slanted]=C2=A0 [file:linlibertineri]= =C2=A0 % works fine
\stoptypescript

\starttypescript [serif] [lib-fb-jun] [name]
=C2=A0 \definefontsynonym [Serif]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [Libertine-Roman]=C2=A0 =C2=A0[features=3Ddefault,fallbacks=3Djunicodefallb= ack]
=C2=A0 \definefontsynonym [SerifSlanted]=C2=A0 =C2=A0 =C2=A0[Libertine-Slan= ted] [features=3Ddefault,fallbacks=3Djunicodefallback]
\stoptypescript

\starttypescript [lib-fb-jun]
=C2=A0 \definetypeface [lib-fb-jun] [rm] [serif] [lib-fb-jun] [default]
\stoptypescript


% Junicode with Libertine as a fallback, preferring Libertine, jun-pr-lib % this hack does what I want the above to do

\definefontfallback[preferlibertine][name:linlibertineo][0-FFFFF][check=3Dy= es,force=3Dyes]

\starttypescript[serif] [jun-pr-lib]
=C2=A0 =C2=A0\definefontsynonym [JunicodeRoman] [name:Junicode]
\stoptypescript

\starttypescript[serif] [jun-pr-lib] [name]
=C2=A0 =C2=A0\definefontsynonym [Serif] [JunicodeRoman] [fallbacks=3Dprefer= libertine]
\stoptypescript

\starttypescript [jun-pr-lib]
=C2=A0 \definetypeface [jun-pr-lib] [rm] [serif] [jun-pr-lib] [default]
\stoptypescript


% some tracking stuff

\enabletrackers[fonts.missing=3Dreplace]
\enabledirectives[logs.errors]


% text, we use lib-fb-jun first, then jun-pr-lib

\starttext
\setupbodyfont[lib-fb-jun]

{\em emph. lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three g= lyphs)}

lib-fb-jun: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs)=C2= =A0 % <- fallback fails here

\switchtobodyfont[jun-pr-lib]

jun-pr-lib: \Uchar61125 \char64259 \utfchar{"eec5} (three glyphs) % &l= t;- works

\stoptext
```

Any ideas?

Most warmly,
-jp

--
J.=E2=80=AFP. Ascher
Preceding: https://doi.org/10.18130/jqpe-zc65
Current: http://www.bibsoc.org.uk/content/2020-2021-0

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist :
ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000358aa105d500cfd0-- --===============7423204206283520843== 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== --===============7423204206283520843==--