definefallbackfamily and uppercasedoublestruck not working?
Hi! I use the Neo Euler which has no doublestruck characters. Maybe I use old code, but I really think that the following has worked before: %%% \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math][range=uppercasedoublestruck] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $\blackboard C$ or $\mathbb C$ \switchtobodyfont[pagella] Test: $\blackboard C$ or $\mathbb C$ \stopTEXpage \stoptex %%% I would expect doublestruck letters in the output on the first line. The resulting file, compiled with a fresh Standalone, is attached. Best regards, Mikael
No solution, just another oddity... \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math] [range=uppercasedoublestruck] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ \switchtobodyfont[pagella] Test: $$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ \stopTEXpage \stoptext On Fri, 2017-11-24 at 13:07 +0100, Mikael P. Sundqvist wrote:
Hi!
I use the Neo Euler which has no doublestruck characters. Maybe I use old code, but I really think that the following has worked before:
%%% \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math][range=uppercasedoublestruck] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $\blackboard C$ or $\mathbb C$
\switchtobodyfont[pagella] Test: $\blackboard C$ or $\mathbb C$ \stopTEXpage \stoptex %%%
I would expect doublestruck letters in the output on the first line. The resulting file, compiled with a fresh Standalone, is attached.
Best regards, Mikael ___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 11/25/2017 5:11 AM, Henri wrote:
No solution, just another oddity...
\definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math] [range=uppercasedoublestruck] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$
\switchtobodyfont[pagella] Test: $$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ \stopTEXpage \stoptext welcome to unicode ... what you're looking for is
DOUBLE-STRUCK CAPITAL C "02102 it's real bad that these alphabets have holes due to a few already present symbols now, if you can argue that doublestruck C is not always used the same you might be able to push that slot (maybe we should start lobbying that ... after all now that emoji come in variants ...) 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 -----------------------------------------------------------------
On Sat, Nov 25, 2017 at 11:00 AM, Hans Hagen
On 11/25/2017 5:11 AM, Henri wrote:
No solution, just another oddity...
\definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math] [range=uppercasedoublestruck] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$
\switchtobodyfont[pagella] Test: $$ or $\utfchar{"1D53A}$ or $\blackboard C$ or $\mathbb C$ \stopTEXpage \stoptext
welcome to unicode ... what you're looking for is
DOUBLE-STRUCK CAPITAL C "02102
it's real bad that these alphabets have holes due to a few already present symbols
now, if you can argue that doublestruck C is not always used the same you might be able to push that slot (maybe we should start lobbying that ... after all now that emoji come in variants ...)
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/list info/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ____________________________________________________________ _______________________
I agree that it is strange to have those holes due to present symbols. Will the code I used work in an updated beta, or should we proceed in some other way? /MIkael
On 11/25/2017 03:10 PM, Mikael P. Sundqvist wrote:
[...] I agree that it is strange to have those holes due to present symbols. Will the code I used work in an updated beta, or should we proceed in some other way?
Hi Mikael, math is all Greek to me, but this seems to work (I guess, fallback should beextended to actual character: \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math] [range={uppercasedoublestruck, 0x02102-0x02124}] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $\blackboard C$ or $\mathbb P$ \switchtobodyfont[pagella] Test: $\blackboard C$ or $\mathbb P$ \stopTEXpage \stoptext Just in case it helps, Pablo -- http://www.ousia.tk
On Sat, Nov 25, 2017 at 3:30 PM, Pablo Rodriguez
On 11/25/2017 03:10 PM, Mikael P. Sundqvist wrote:
[...] I agree that it is strange to have those holes due to present symbols. Will the code I used work in an updated beta, or should we proceed in some other way?
Hi Mikael,
math is all Greek to me, but this seems to work (I guess, fallback should beextended to actual character:
\definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math] [range={uppercasedoublestruck, 0x02102-0x02124}] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $\blackboard C$ or $\mathbb P$
\switchtobodyfont[pagella] Test: $\blackboard C$ or $\mathbb P$ \stopTEXpage \stoptext
Just in case it helps,
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 ____________________________________________________________ _______________________
Paulo, thanks! I should have thought of that workaround myself! Thank you! /Mikael
On 11/25/2017 3:36 PM, Mikael P. Sundqvist wrote:
On Sat, Nov 25, 2017 at 3:30 PM, Pablo Rodriguez
mailto:oinos@gmx.es> wrote: On 11/25/2017 03:10 PM, Mikael P. Sundqvist wrote: > [...] > I agree that it is strange to have those holes due to present symbols. > Will the code I used work in an updated beta, or should we proceed in > some other way?
Hi Mikael,
math is all Greek to me, but this seems to work (I guess, fallback should beextended to actual character:
\definefontfamily [mainface] [rm] [TeX Gyre Pagella] \definefallbackfamily [mainface] [mm] [TeX Gyre Pagella Math] [range={uppercasedoublestruck, 0x02102-0x02124}] \definefontfamily [mainface] [mm] [Neo Euler] \setupbodyfont[mainface,12pt] \starttext \startTEXpage[offset=3pt] Test: $\blackboard C$ or $\mathbb P$
\switchtobodyfont[pagella] Test: $\blackboard C$ or $\mathbb P$ \stopTEXpage \stoptext
Just in case it helps,
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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context 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/ https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
Paulo, thanks! I should have thought of that workaround myself! Thank you! in math-act.lua you can add a line (790):
if gaps then for unic, unicode in next, gaps do remap(unic,unicode,true) remap(unicode,unicode,true) end end ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Henri
-
Mikael P. Sundqvist
-
Pablo Rodriguez