From: "J. P. Ascher via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: "J. P. Ascher" <jpa4q@virginia.edu>
Subject: Fallback fails for Linux Libertine O to Junicode over private area, debugging?
Date: Fri, 07 Jan 2022 10:18:24 -0500 [thread overview]
Message-ID: <m0y23ra7fo.fsf@virginia.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 3137 bytes --]
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=latn]
% Libertine with a Junicode fallback, lib-fb-jun
\definefontfallback[junicodefallback][name:Junicode][privateusearea][check=yes,force=no]
\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=default,fallbacks=junicodefallback]
\definefontsynonym [SerifSlanted] [Libertine-Slanted] [features=default,fallbacks=junicodefallback]
\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=yes,force=yes]
\starttypescript[serif] [jun-pr-lib]
\definefontsynonym [JunicodeRoman] [name:Junicode]
\stoptypescript
\starttypescript[serif] [jun-pr-lib] [name]
\definefontsynonym [Serif] [JunicodeRoman] [fallbacks=preferlibertine]
\stoptypescript
\starttypescript [jun-pr-lib]
\definetypeface [jun-pr-lib] [rm] [serif] [jun-pr-lib] [default]
\stoptypescript
% some tracking stuff
\enabletrackers[fonts.missing=replace]
\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. P. Ascher
Preceding: https://doi.org/10.18130/jqpe-zc65
Current: http://www.bibsoc.org.uk/content/2020-2021-0
[-- Attachment #2: min.log --]
[-- Type: application/octet-stream, Size: 9153 bytes --]
open source > level 1, order 1, name '/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
system >
system > ConTeXt ver: 2021.03.05 19:11 MKIV fmt: 2021.4.3 int: english/english
system >
system > 'cont-new.mkiv' loaded
open source > level 2, order 2, name '/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system > beware: some patches loaded from cont-new.mkiv
close source > level 2, order 2, name '/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system > files > jobname 'min', input './min', result 'min'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > level 2, order 3, name '/Users/james/Documents/Professional/2022 Spring/MLA TALK/query-to-listserv/min.tex'
fonts > preloading latin modern fonts (second stage)
fonts > defining > font 'lmroman12-regular', feature 'locl', script 'latn', no language 'dflt'
fonts > 'fallback modern-designsize rm 12pt' is loaded
fonts > defining > font 'linlibertiner', feature 'locl', script 'latn', no language 'dflt'
fonts > defining > font 'linlibertiner', feature 'locl', script 'cyrl', no language 'dflt'
fonts > defining > font 'linlibertineri', feature 'locl', script 'latn', no language 'dflt'
fonts > defining > font 'linlibertineri', feature 'locl', script 'cyrl', no language 'dflt'
fonts > checking > char (U+0EEC5) in font 'Linux Libertine O' with id 8: missing
backend > xmp > using file '/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1, subpage 1
close source > level 2, order 3, name '/Users/james/Documents/Professional/2022 Spring/MLA TALK/query-to-listserv/min.tex'
close source > level 1, order 3, name '/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
system > start used files
system > text: min
system > stop used files
system > start used files
system > 1: filename=char-prv.lua filetype=tex format=tex foundname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/char-prv.lua fullname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/char-prv.lua usedmethod=database
system > 2: filename=cont-yes.mkiv filetype=tex foundname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv fullname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
system > 3: filename=publ-imp-default.lua filetype=scripts foundname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/publ-imp-default.lua fullname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system > 4: filename=cont-new.mkiv filetype=tex foundname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/cont-new.mkiv fullname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
system > 5: filename=lang-exc.lua filetype=scripts foundname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/lang-exc.lua fullname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system > 6: filename=lang-us.lua filetype=scripts foundname=/usr/local/texlive/2021/texmf-dist/tex/context/patterns/mkiv/lang-us.lua fullname=/usr/local/texlive/2021/texmf-dist/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system > 7: filename=/Users/james/Documents/Professional/2022 Spring/MLA TALK/query-to-listserv/min.tex foundname=/Users/james/Documents/Professional/2022 Spring/MLA TALK/query-to-listserv/min.tex fullname=/Users/james/Documents/Professional/2022 Spring/MLA TALK/query-to-listserv/min.tex usedmethod=direct
system > 8: filename=lm.lfg filetype=tex foundname=/usr/local/texlive/2021/texmf-dist/tex/context/fonts/mkiv/lm.lfg fullname=/usr/local/texlive/2021/texmf-dist/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system > 9: filename=lmroman12-regular filetype=otf format=otf foundname=/usr/local/texlive/2021/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/usr/local/texlive/2021/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
system > 10: filename=latinmodern-math.otf filetype=opentypefonts foundname=/usr/local/texlive/2021/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=/usr/local/texlive/2021/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system > 11: filename=LinLibertine_R.otf filetype=otf format=otf foundname=/usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertine/LinLibertine_R.otf fullname=/usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertine/LinLibertine_R.otf usedmethod=database
system > 12: filename=Junicode.ttf filetype=ttf format=ttf foundname=/usr/local/texlive/2021/texmf-dist/fonts/truetype/public/junicode/Junicode.ttf fullname=/usr/local/texlive/2021/texmf-dist/fonts/truetype/public/junicode/Junicode.ttf usedmethod=database
system > 13: filename=LinLibertine_RI.otf filetype=otf format=otf foundname=/usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertine/LinLibertine_RI.otf fullname=/usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertine/LinLibertine_RI.otf usedmethod=database
system > 14: filename=pdftex.map filetype=map format=map foundname=/usr/local/texlive/2021/texmf-var/fonts/map/pdftex/updmap/pdftex.map fullname=/usr/local/texlive/2021/texmf-var/fonts/map/pdftex/updmap/pdftex.map usedmethod=database
system > 15: filename=lpdf-pdx.xml filetype=tex foundname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml fullname=/usr/local/texlive/2021/texmf-dist/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database
system > stop used files
system > start commandline options
system > currentrun="1"
system > fulljobname="./min.tex"
system > input="./min.tex"
system > kindofrun="1"
system > maxnofruns="9"
system > texmfbinpath="/usr/local/texlive/2021/bin/universal-darwin"
system > stop commandline options
system > start commandline files
system > 1: ./min.tex
system > stop commandline files
modules > start used modules
modules > stop used modules
fonts > start missing characters: /usr/local/texlive/2021/texmf-dist/fonts/opentype/public/libertine/LinLibertine_R.otf
fonts > 2 U+0EEC5 PRIVATE SLOT
fonts > stop missing characters
mkiv lua stats > used config file: selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats > used cache path: readable+writable: '/Users/james/Library/texlive/2021/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9'
mkiv lua stats > resource resolver: loadtime 0.054 seconds, 1 scans with scantime 0.000 seconds, 0 shared scans, 15 found files, scanned paths: /Users/james/Library/texmf
mkiv lua stats > stored bytecode data: 454 modules (0.143 sec), 96 tables (0.006 sec), 550 chunks (0.149 sec)
mkiv lua stats > traced context: maxstack: 1420, freed: 0, unreachable: 1420
mkiv lua stats > cleaned up reserved nodes: 57 nodes, 9 lists of 442
mkiv lua stats > node memory usage: 11 attribute, 4 attribute_list, 1 glue, 51 glue_spec, 3 kern, 2 penalty, 2 temp, 2 user_defined
mkiv lua stats > node list callback tasks: 8 unique task lists, 7 instances (re)created, 50 calls
mkiv lua stats > driver time: 0.045 seconds
mkiv lua stats > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats > callbacks: internal: 178, file: 121, direct: 2, late: 0, function 897, total: 1198 (1198 per page)
mkiv lua stats > randomizer: resumed with value 0.36474906746298
mkiv lua stats > result saved in file: min.pdf, compresslevel 3, objectcompresslevel 1
mkiv lua stats > loaded patterns: en::1, load time: 0.000
mkiv lua stats > loaded fonts: 5 files: linlibertine_r.otf, linlibertine_ri.otf, latinmodern-math.otf, lmroman12-regular.otf, junicode.ttf
mkiv lua stats > font engine: otf 3.113, afm 1.513, tfm 1.000, 15 instances, 8 shared in backend, 5 common vectors, 3 common hashes, load time 0.168 seconds
mkiv lua stats > used platform: osx-64, type: unix, binary subtree: bin
mkiv lua stats > used engine: luatex version: 1.13, functionality level: 7418, banner: this is luatex, version 1.13.0 (tex live 2021)
mkiv lua stats > used hash slots: 47499 of 65536 + 200000
mkiv lua stats > lua properties: engine: lua 5.3, used memory: 180 MB, ctx: 180 MB, max: unknown MB, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats > runtime: 0.416 seconds, 1 processed pages, 1 shipped pages, 2.404 pages/second
[-- Attachment #3: min.pdf --]
[-- Type: application/pdf, Size: 28696 bytes --]
[-- Attachment #4: min.tex --]
[-- Type: application/x-tex, Size: 1836 bytes --]
[-- Attachment #5: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2022-01-07 15:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-07 15:18 J. P. Ascher via ntg-context [this message]
2022-01-07 16:52 ` Youssef Cherem via ntg-context
2022-01-07 16:59 ` J. P. Ascher via ntg-context
2022-01-07 18:33 ` Hans Hagen via ntg-context
2022-01-07 17:10 ` Hans Hagen via ntg-context
2022-01-07 18:55 ` J. P. Ascher via ntg-context
2022-01-07 19:19 ` Hans Hagen via ntg-context
2022-01-07 21:39 ` J. P. Ascher via ntg-context
2022-01-07 22:01 ` Why mtxrun fails ? Jean-Pierre Delange via ntg-context
2022-01-07 22:40 ` Otared Kavian via ntg-context
2022-01-07 23:00 ` Youssef Cherem via ntg-context
2022-01-08 0:42 ` Jean-Pierre Delange via ntg-context
2022-01-08 0:48 ` Jean-Pierre Delange via ntg-context
2022-01-08 0:45 ` Jean-Pierre Delange via ntg-context
2022-01-08 8:05 ` juh via ntg-context
2022-01-08 10:42 ` Fallback fails for Linux Libertine O to Junicode over private area, debugging? Hans Hagen via ntg-context
2022-01-07 18:23 ` Hans Hagen via ntg-context
2022-01-07 19:11 ` J. P. Ascher via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0y23ra7fo.fsf@virginia.edu \
--to=ntg-context@ntg.nl \
--cc=jpa4q@virginia.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).