Re: [NTG-context] alternate to font feature file for glyph substitution ?
Le 5 mai 2016 à 10:55, luigi scarso a écrit : > > > On Thu, Apr 28, 2016 at 4:08 PM, jfbu wrote: > Hi, > > how should I go at the Plain TeX level about implementing > the following glyph substitution which I formerly expressed > in a font feature file: > > Sorru for delay, we were busy due > the texlive deadline. > no problem, thanks. I have since gotten an answer to my question at https://github.com/lualatex/luaotfload/issues/347#issuecomment-215625928 regards Jean-François___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] alternate to font feature file for glyph substitution ?
Hi, how should I go at the Plain TeX level about implementing the following glyph substitution which I formerly expressed in a font feature file: languagesystem DFLT dflt; languagesystem latn dflt; feature oneb { sub one by one.ss01; } oneb; The font is Vollkorn, a Plain LuaTeX file which worked in TL2015 would be \input luaotfload.sty \font\x="Vollkorn:script=latn;language=DFLT;+tlig;featurefile=vollkornlua.fff;+oneb;" \x 123 \bye % Local Variables: % TeX-engine: luatex % End: The glyph for digit 1 is modified and picked in stylistic set 1. I don't want to globally switch to that stylistic set, I am only interested into digit 1. My use case is more with LuaLaTeX+fontspec, but if I am explained a Plain LuaTeX approach I can at least forward to Will Robertson who maintains fontspec and cross my fingers that it trickles down back to me at some point via update of fontspec, or luatex, or luaotfload, ... Please CC to me as although I asked for (temporary) list inscription I might not yet be registered. I am aware of https://mailman.ntg.nl/pipermail/ntg-context/2016/083952.html but can't work it out from there. Jean-François ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font features in math
Le 3 mai 2016 à 00:13, Ulrike Fischer a écrit : > That's easy if one can select the fonts explicitly, but the question > was triggered by the url package which internally switches to math. I have posted a (seemingly partial) patch to this problem of \url at http://tex.stackexchange.com/questions/264206/cant-get-oldstyle-figures-in-url-with-lualatex/307585#307585 ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font features in math
Le 2 mai 2016 à 20:15, jfbu a écrit : > > >> \font\fixmath=\fontname\textfont\foo mode=base; >> \textfont\foo=\fixmath > > I will use a better approach as this one does not work > when the thing ends as "at 7.0pt" for example, but in principle > I see I can do surgery on the \fontname and replace there > mode=node if it exists with mode=base. > > I only have to figure out the best time to do that > in a context (no pun intended) where people may change > "\mathversion" (latex thing). > \begingroup \catcode`N 12 \catcode`O 12 \catcode`D 12 \catcode`E 12 \lowercase{\gdef\FixMathFont@i #1=NODE;#2\relax #3}% {\font\fixmath=#1=base;#2\relax\global#3\symmtoperatorfont=\fixmath} \endgroup \def\FixMathFont {\setbox0\hbox{\MTeverymathoff$\relax$% \expandafter\FixMathFont@i\fontname\textfont\symmtoperatorfont\relax\textfont \expandafter\FixMathFont@i\fontname\scriptfont\symmtoperatorfont\relax\scriptfont \expandafter\FixMathFont@i\fontname\scriptscriptfont\symmtoperatorfont\relax\scriptscriptfont}% } I only need to add the layer to do nothing if "=node" is not found, and we are allset. Jean-François ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font features in math
> \font\fixmath=\fontname\textfont\foo mode=base; > \textfont\foo=\fixmath I will use a better approach as this one does not work when the thing ends as "at 7.0pt" for example, but in principle I see I can do surgery on the \fontname and replace there mode=node if it exists with mode=base. I only have to figure out the best time to do that in a context (no pun intended) where people may change "\mathversion" (latex thing). Jean-François ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font features in math
Le 2 mai 2016 à 18:47, Philipp Gesang a écrit : > · > >> Am Sun, 1 May 2016 11:45:02 +0200 schrieb Philipp Gesang: >> So somehow in math the +onum is lost in plain and latex but not in context. What is context doing differently to avoid this? >>> >>>mode=base >> >> If context attach mode=base to math, how does it it? > > A one would do in Luaotfload: specify base mode when defining the > font. It’s unrelated to math, just the default set of features > that Luaotfload has been applying to every definition for ages. > The reasoning -- by Khaled and others -- was, that the Opentype > standard mandates some defaults so Luaotfload should follow suit. > > The defaults can be overridden by setting the appropriate values > in luaotfload.conf(5). > >> How can you >> switch a feature like mode=node to mode=base for every font in math? > > Define two fonts: one for use in math mode, another for where you > really, really require node mode. > > Philipp Ulrike, thanks a lot for keeping asking questions on this and Philipp for answering. I have figured experimentally that I could use (at least in some cases, and after math fonts are initialized which in LaTeX seems to mean one needs to enter math mode at least once before) \font\fixmath=\fontname\textfont\foo mode=base; \textfont\foo=\fixmath for example creating this \fontname: [Vollkorn-Regular]:mode=node;script=latn;language=DFLT;+tlig;+lnum;mode=base; which is then experimentally observed to obey the second mode specifier and thus does display lining figures in math mode. Jean-François ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___