[NTG-context] rscale not working in latest beta from 2018.02.14 16:18
Dear list, I have the following sample: \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefontfamily [mainface] [ss] [TeX Gyre Heros] [rscale=3] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1ex] a\ss a \stopTEXpage \stoptext I have just realized that rscale doesn’t work at all. Previous beta (from 2018.02.12 08:53) has rscale working fine. Could anyone confirm this? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] italic correction after math
On 2/14/2018 5:30 PM, Alan Braslau wrote: On Wed, 14 Feb 2018 10:12:22 +0100 Ulrike Fischerwrote: ⟂ U+27C2 \perp, for example. This is a "show-stopper" for me. Works ok for me on latex + windows: \documentclass{article} \usepackage{unicode-math} \setmathfont{Cambria Math} \begin{document}\pagestyle{empty} $ 27c2 blblb $ \end{document} (the document only uses cambria.ttc, so the glyph must be from this font). The context code \setupbodyfont[cambria] \starttext $\perp $ abc \stoptext works fine for me too. As Hans points out, \perp is U+22A5 (UP TACK), not U+27C2 (PERPENDICULAR), and might differ (in weight) from U+2225 (PARALLEL) or \parallel, although this may depend on the particular font design. (UP/DOWN/RIGHT/LEFT TACK are a set) Is the definition used in char-ent.lua the right choice? char-ent.lua:["perp"] = "⊥", -- U+022A5 Perhaps the latex package unicode-math makes the substitution for you. (Note that dejavu has U+27C2.) MWE: \setupbodyfont [cambria,20pt] %\setupbodyfont [dejavu,20pt] \startTEXpage $⊥⟂∥$ \stopTEXpage its no big deal to have some backup btu i don't want to cycle through preferences every few years so deal with it once (best in combination with other such things) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] italic correction after math
On Wed, 14 Feb 2018 10:12:22 +0100 Ulrike Fischerwrote: > > ⟂ U+27C2 \perp, for example. This is a "show-stopper" for me. > > Works ok for me on latex + windows: > > \documentclass{article} > \usepackage{unicode-math} > \setmathfont{Cambria Math} > \begin{document}\pagestyle{empty} > $ 27c2 blblb $ > \end{document} > > (the document only uses cambria.ttc, so the glyph must be from this > font). > > The context code > > \setupbodyfont[cambria] > \starttext > $\perp $ > abc > \stoptext > > works fine for me too. As Hans points out, \perp is U+22A5 (UP TACK), not U+27C2 (PERPENDICULAR), and might differ (in weight) from U+2225 (PARALLEL) or \parallel, although this may depend on the particular font design. (UP/DOWN/RIGHT/LEFT TACK are a set) Is the definition used in char-ent.lua the right choice? char-ent.lua:["perp"] = "⊥", -- U+022A5 Perhaps the latex package unicode-math makes the substitution for you. (Note that dejavu has U+27C2.) MWE: \setupbodyfont [cambria,20pt] %\setupbodyfont [dejavu,20pt] \startTEXpage $⊥⟂∥$ \stopTEXpage Alan ___ 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 ___
Re: [NTG-context] italic correction after math
On 2/14/2018 2:21 PM, Ulrike Fischer wrote: Am Wed, 14 Feb 2018 10:34:49 +0100 schrieb Hans Hagen: Looks good. And for the record: \strut works the other way round and suppress the kern. Yes, because a zwj is a real character and can be used to fool the mechanism A bit to real ;-(. I get a sort of sign post (a rule with a x on top) with cambria: \setupbodyfont[cambria] \starttext $\cal{P}$x $\cal{P}\Uchar"200D$x \stoptext then try \Uchar"200B, a zero width space char - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] italic correction after math
Am Wed, 14 Feb 2018 10:34:49 +0100 schrieb Hans Hagen: >> Looks good. And for the record: \strut works the other way round and >> suppress the kern. > > Yes, because a zwj is a real character and can be used to fool the mechanism A bit to real ;-(. I get a sort of sign post (a rule with a x on top) with cambria: \setupbodyfont[cambria] \starttext $\cal{P}$x $\cal{P}\Uchar"200D$x \stoptext -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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 ___
Re: [NTG-context] italic correction after math
On 2/14/2018 10:22 AM, Ulrike Fischer wrote: Am Tue, 13 Feb 2018 19:21:21 +0100 schrieb Hans Hagen: But xits is in this case not lying about the italic. The cal-P has a large overhang and one would like to take this somehow into account. well, how should math (or whatever) know what comes after it ... I wasn't looking for a completly automatic solution. Only something that lets me retrieve the correct kern and insert it (or suppress it if needed) these things are always tricky and e.g. math-text boundaries can be obscured by for instance boxing and so ... sometimes lua offers a way out but even then there are limits only when it binds with a character .. maybe inserting a zerowidthjoiner character helps $ \Uchar"200D$ Looks good. And for the record: \strut works the other way round and suppress the kern. Yes, because a zwj is a real character and can be used to fool the mechanism Btw: I found in the luatex manuel the options \mathoption nocharitalic 1 but it seems to do nothing (the example in the manual show imho identical output). these flags are just for testing (the mathoption ones will go away eventually which is why we use \mathoption) .. there are other \math*mode etc parameters It would be good to mention this in the manual. It is rather confusing to see examples that claim to show the effect of some setting and then do nothing. actually there can be an effect but one that is effectively zero: it can be that a italic kern is injected and then removed as in traditional ... these effects really depend on the font and character properties (in a similar fashion an example exposing some property and demonstrating some trick can fail when a font gets updated) 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 - ___ 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 ___
Re: [NTG-context] italic correction after math
Am Tue, 13 Feb 2018 19:21:21 +0100 schrieb Hans Hagen: >> But xits is in this case not lying about the italic. The cal-P has a >> large overhang and one would like to take this somehow into account. > > well, how should math (or whatever) know what comes after it ... I wasn't looking for a completly automatic solution. Only something that lets me retrieve the correct kern and insert it (or suppress it if needed) > only when it binds with a character .. > maybe inserting a zerowidthjoiner character helps > > $ \Uchar"200D$ Looks good. And for the record: \strut works the other way round and suppress the kern. >> Btw: I found in the luatex manuel the options >> \mathoption nocharitalic 1 >> but it seems to do nothing (the example in the manual show imho >> identical output). > these flags are just for testing (the mathoption ones will go away > eventually which is why we use \mathoption) .. there are other > \math*mode etc parameters It would be good to mention this in the manual. It is rather confusing to see examples that claim to show the effect of some setting and then do nothing. -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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 ___
Re: [NTG-context] italic correction after math
Am Tue, 13 Feb 2018 20:58:52 -0700 schrieb Alan Braslau: >>> Cambria is missing math characters... >> really? which ones (that the others do have .. afaik gyre have some >> less than cambria) > > ⟂ U+27C2 \perp, for example. This is a "show-stopper" for me. Works ok for me on latex + windows: \documentclass{article} \usepackage{unicode-math} \setmathfont{Cambria Math} \begin{document}\pagestyle{empty} $ 27c2 blblb $ \end{document} (the document only uses cambria.ttc, so the glyph must be from this font). The context code \setupbodyfont[cambria] \starttext $\perp $ abc \stoptext works fine for me too. -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ 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 ___