Re: [NTG-context] Monospace fallback kerning
> On 19 Dec 2018, at 22:24, Hans Hagen wrote: > > On 12/19/2018 8:43 PM, Hans Γ berg wrote: >>> On 19 Dec 2018, at 19:25, Hans Hagen wrote: >>> > \startformula > \unstackscripts π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ > βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) > \stopformula That might be useful for those depending on it, and presumably there is a \stackscripts, too. Just comes to my mind: Though probably non-standard in typesetting, one might make a slight typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or superscripts that come later partially, but not fully, to the position of the one that comes before. For example, π₯βΒ² might mean the square of π₯β, and π₯Β²β the component 0 of π₯Β², not necessarily the same. Traditionally, such things are left for the reader to interpret. >>> >>> ok, we can apply selectively ... {\unstackscripts ... {\stackscripts ...} >>> ... } ... maybe we need short commands that take an argument, like >>> \unstack{} but that might clash ... just give it some thought >>> ... >> Your suggestion might be great for simplifying tensor component notation, as >> one then can omit separators like {} or |. But then what would happen, even >> perhaps not that common, if one would need to have it stacked somewhere else >> in the formula. So in my mind, this would be just top level \unstackscripts >> β¦ \stackscripts β¦ \unstackscripts. >> The other idea would be something like \partialstackscripts, but actual >> demand is unclear. :-) > well, playwith what we have now and we can always extend it Indeed. It came to my mind, because I started to think about a good ways to represent sub- and superscripts in a parser. ___ 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] Monospace fallback kerning
On 12/19/2018 8:43 PM, Hans Γ berg wrote: On 19 Dec 2018, at 19:25, Hans Hagen wrote: \startformula \unstackscripts π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stopformula That might be useful for those depending on it, and presumably there is a \stackscripts, too. Just comes to my mind: Though probably non-standard in typesetting, one might make a slight typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or superscripts that come later partially, but not fully, to the position of the one that comes before. For example, π₯βΒ² might mean the square of π₯β, and π₯Β²β the component 0 of π₯Β², not necessarily the same. Traditionally, such things are left for the reader to interpret. ok, we can apply selectively ... {\unstackscripts ... {\stackscripts ...} ... } ... maybe we need short commands that take an argument, like \unstack{} but that might clash ... just give it some thought ... Your suggestion might be great for simplifying tensor component notation, as one then can omit separators like {} or |. But then what would happen, even perhaps not that common, if one would need to have it stacked somewhere else in the formula. So in my mind, this would be just top level \unstackscripts β¦ \stackscripts β¦ \unstackscripts. The other idea would be something like \partialstackscripts, but actual demand is unclear. :-) well, playwith what we have now and we can always extend it - 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] Monospace fallback kerning
> On 19 Dec 2018, at 19:25, Hans Hagen wrote: > >>> \startformula >>> \unstackscripts π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ >>> π·ββ(π¦β°βΊΒΉββ) >>> \stopformula >> That might be useful for those depending on it, and presumably there is a >> \stackscripts, too. Just comes to my mind: >> Though probably non-standard in typesetting, one might make a slight >> typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or >> superscripts that come later partially, but not fully, to the position of >> the one that comes before. For example, π₯βΒ² might mean the square of π₯β, and >> π₯Β²β the component 0 of π₯Β², not necessarily the same. Traditionally, such >> things are left for the reader to interpret. > > ok, we can apply selectively ... {\unstackscripts ... {\stackscripts ...} ... > } ... maybe we need short commands that take an argument, like > \unstack{} but that might clash ... just give it some thought ... Your suggestion might be great for simplifying tensor component notation, as one then can omit separators like {} or |. But then what would happen, even perhaps not that common, if one would need to have it stacked somewhere else in the formula. So in my mind, this would be just top level \unstackscripts β¦ \stackscripts β¦ \unstackscripts. The other idea would be something like \partialstackscripts, but actual demand is unclear. :-) ___ 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] Monospace fallback kerning
> On 19 Dec 2018, at 19:28, Alan Braslau wrote: > > On Wed, 19 Dec 2018 19:16:23 +0100 > Hans Γ berg wrote: > >> >>> On 19 Dec 2018, at 19:01, Alan Braslau wrote: >>> >>> On Wed, 19 Dec 2018 18:46:30 +0100 >>> Hans Γ berg wrote: >>> Though probably non-standard in typesetting, one might make a slight typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or superscripts that come later partially, but not fully, to the position of the one that comes before. For example, π₯βΒ² might mean the square of π₯β, and π₯Β²β the component 0 of π₯Β², not necessarily the same. Traditionally, such things are left for the reader to interpret. >>> >>> Isn't that poor nomenclature, being ambiguous? >> >> Indeed, but also the norm due to practical limitations. >> >>> I would explicitly write (π₯β)Β² or (π₯Β²)β in such cases, and I have also seen >>> π₯Β²|β used for example, or other non-ambiguous shorthands. >> >> Perhaps it might become cumbersome to carry such notation along all through, >> reserving it for definitions. > > In physics, we love such constructions, such as the so-called Einstein > notation as one example. If you mean tensor component notation, that is different, as any component can be shifted. In pure math, one is more likely to see them stacked, also for tensors in differential geometry, as one typically indicates their type somehow. ___ 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] Monospace fallback kerning
On Wed, 19 Dec 2018 19:16:23 +0100 Hans Γ berg wrote: > > > On 19 Dec 2018, at 19:01, Alan Braslau wrote: > > > > On Wed, 19 Dec 2018 18:46:30 +0100 > > Hans Γ berg wrote: > > > >> Though probably non-standard in typesetting, one might make a slight > >> typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or > >> superscripts that come later partially, but not fully, to the position of > >> the one that comes before. For example, π₯βΒ² might mean the square of π₯β, > >> and π₯Β²β the component 0 of π₯Β², not necessarily the same. Traditionally, > >> such things are left for the reader to interpret. > > > > Isn't that poor nomenclature, being ambiguous? > > Indeed, but also the norm due to practical limitations. > > > I would explicitly write (π₯β)Β² or (π₯Β²)β in such cases, and I have also seen > > π₯Β²|β used for example, or other non-ambiguous shorthands. > > Perhaps it might become cumbersome to carry such notation along all through, > reserving it for definitions. In physics, we love such constructions, such as the so-called Einstein notation as one example. 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] Monospace fallback kerning
On 12/19/2018 6:46 PM, Hans Γ berg wrote: On 19 Dec 2018, at 18:25, Hans Hagen wrote: On 12/19/2018 3:48 PM, Hans Γ berg wrote: An incidental remark: TeX puts simultaneous sub- and superscripts above each other, and the Unicode sub- and superscripts are translated as such in the example below math mode. But actually, there may be a semantic difference between the order (though not in the case below), and that is used in tensor notation. In TeX, the original suggestion is to use {} in such a case. β \definefontfallback [Mono] [stixtwotext] [range={0100-10},factor=1] [force=yes] \setupbodyfont [dejavu,10pt] \showglyphs \starttyping π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stoptyping \startformula π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stopformula ah, so it's time for some new (undocumented) math magic .. the next beta will have this: \startformula π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stopformula \startformula \unstackscripts π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stopformula That might be useful for those depending on it, and presumably there is a \stackscripts, too. Just comes to my mind: Though probably non-standard in typesetting, one might make a slight typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or superscripts that come later partially, but not fully, to the position of the one that comes before. For example, π₯βΒ² might mean the square of π₯β, and π₯Β²β the component 0 of π₯Β², not necessarily the same. Traditionally, such things are left for the reader to interpret. ok, we can apply selectively ... {\unstackscripts ... {\stackscripts ...} ... } ... maybe we need short commands that take an argument, like \unstack{} but that might clash ... just give it some thought ... 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] Monospace fallback kerning
> On 19 Dec 2018, at 19:01, Alan Braslau wrote: > > On Wed, 19 Dec 2018 18:46:30 +0100 > Hans Γ berg wrote: > >> Though probably non-standard in typesetting, one might make a slight >> typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or >> superscripts that come later partially, but not fully, to the position of >> the one that comes before. For example, π₯βΒ² might mean the square of π₯β, and >> π₯Β²β the component 0 of π₯Β², not necessarily the same. Traditionally, such >> things are left for the reader to interpret. > > Isn't that poor nomenclature, being ambiguous? Indeed, but also the norm due to practical limitations. > I would explicitly write (π₯β)Β² or (π₯Β²)β in such cases, and I have also seen > π₯Β²|β used for example, or other non-ambiguous shorthands. Perhaps it might become cumbersome to carry such notation along all through, reserving it for definitions. ___ 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] Monospace fallback kerning
On Wed, 19 Dec 2018 18:46:30 +0100 Hans Γ berg wrote: > Though probably non-standard in typesetting, one might make a slight > typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or > superscripts that come later partially, but not fully, to the position of the > one that comes before. For example, π₯βΒ² might mean the square of π₯β, and π₯Β²β > the component 0 of π₯Β², not necessarily the same. Traditionally, such things > are left for the reader to interpret. Isn't that poor nomenclature, being ambiguous? I would explicitly write (π₯β)Β² or (π₯Β²)β in such cases, and I have also seen π₯Β²|β used for example, or other non-ambiguous shorthands. 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] Monospace fallback kerning
> On 19 Dec 2018, at 18:25, Hans Hagen wrote: > > On 12/19/2018 3:48 PM, Hans Γ berg wrote: > >> An incidental remark: TeX puts simultaneous sub- and superscripts above each >> other, and the Unicode sub- and superscripts are translated as such in the >> example below math mode. But actually, there may be a semantic difference >> between the order (though not in the case below), and that is used in tensor >> notation. In TeX, the original suggestion is to use {} in such a case. >> β >> \definefontfallback >> [Mono] [stixtwotext] >> [range={0100-10},factor=1] [force=yes] >> \setupbodyfont >> [dejavu,10pt] >> \showglyphs >> \starttyping >> π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) >> \stoptyping >> \startformula >> π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) >> \stopformula > ah, so it's time for some new (undocumented) math magic .. the next beta will > have this: > > \startformula > π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) > \stopformula > > \startformula > \unstackscripts π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ > π·ββ(π¦β°βΊΒΉββ) > \stopformula That might be useful for those depending on it, and presumably there is a \stackscripts, too. Just comes to my mind: Though probably non-standard in typesetting, one might make a slight typographic difference between π₯Β²β and π₯βΒ² by letting the sub- or superscripts that come later partially, but not fully, to the position of the one that comes before. For example, π₯βΒ² might mean the square of π₯β, and π₯Β²β the component 0 of π₯Β², not necessarily the same. Traditionally, such things are left for the reader to interpret. ___ 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] Monospace fallback kerning
On 12/19/2018 3:48 PM, Hans Γ berg wrote: An incidental remark: TeX puts simultaneous sub- and superscripts above each other, and the Unicode sub- and superscripts are translated as such in the example below math mode. But actually, there may be a semantic difference between the order (though not in the case below), and that is used in tensor notation. In TeX, the original suggestion is to use {} in such a case. β \definefontfallback [Mono] [stixtwotext] [range={0100-10},factor=1] [force=yes] \setupbodyfont [dejavu,10pt] \showglyphs \starttyping π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stoptyping \startformula π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stopformula ah, so it's time for some new (undocumented) math magic .. the next beta will have this: \startformula π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stopformula \startformula \unstackscripts π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stopformula - 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] Monospace fallback kerning
> On 19 Dec 2018, at 11:31, Hans Hagen wrote: > > On 12/19/2018 10:46 AM, Hans Γ berg wrote: >>> On 11 Dec 2018, at 15:05, Hans Γ berg wrote: >>> >>> In the example below, multiple spaces do not use the spacing of the >>> fallback font for multiple spaces, but instead of the main font it seems, >>> despite the ASCII U+0020 being in the forced override. So the question is >>> how to force ConTeXt to use the fallback font also for multiple spaces. >> A workaround is simply making the monospace font the main font: >> \definefallbackfamily [mainface][mono][stix][range={0100-10},force=yes] >> \definefontfamily [mainface][mono][courier] > You can force a monospaced by inheriting from a paremnt font, as in: > > \definefontfallback > [Mono] [almfixed*none] > [arabic] [force=yes] > > \definefontfallback > [Mono] [sileot*none] > [hebrew] [force=yes,factor=1] % factor forces a monospace > > \setupbodyfont > [dejavu,10pt] I thought such a feature would be suitable, but I am not sure now to get the math glyph override with the \definefontfallback command (see example below). With \definefallbackfamily there is an extra argument for the style: \definefallbackfamily [mainface][mono][stixtwotext][range={00B2-00B3,00B9,02070-0208F},force=yes] Otherwise, the use of monospace has several functions: Signaling it is computer code, allowing indentation, and allowing a tabular style. Maybe it should not all be put on the font (editing it by hand with markup may be tedious and error prone). An incidental remark: TeX puts simultaneous sub- and superscripts above each other, and the Unicode sub- and superscripts are translated as such in the example below math mode. But actually, there may be a semantic difference between the order (though not in the case below), and that is used in tensor notation. In TeX, the original suggestion is to use {} in such a case. β \definefontfallback [Mono] [stixtwotext] [range={0100-10},factor=1] [force=yes] \setupbodyfont [dejavu,10pt] \showglyphs \starttyping π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stoptyping \startformula π·ββ(0), βΒ²π₯β°βΊΒ²ββ: π·ββ(π₯β°βΊΒ²ββ) β π·ββ(s(π₯β°βΊΒ²ββ)) β’ βΒΉπ¦β°βΊΒΉββ π·ββ(π¦β°βΊΒΉββ) \stopformula \stoptext β ___ 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] Monospace fallback kerning
On 12/19/2018 10:46 AM, Hans Γ berg wrote: On 11 Dec 2018, at 15:05, Hans Γ berg wrote: In the example below, multiple spaces do not use the spacing of the fallback font for multiple spaces, but instead of the main font it seems, despite the ASCII U+0020 being in the forced override. So the question is how to force ConTeXt to use the fallback font also for multiple spaces. A workaround is simply making the monospace font the main font: \definefallbackfamily [mainface][mono][stix][range={0100-10},force=yes] \definefontfamily [mainface][mono][courier] You can force a monospaced by inheriting from a paremnt font, as in: \definefontfallback [Mono] [almfixed*none] [arabic] [force=yes] \definefontfallback [Mono] [sileot*none] [hebrew] [force=yes,factor=1] % factor forces a monospace \setupbodyfont [dejavu,10pt] \showglyphs \starttext \starttyping {ΩΩΩΩΨ³Ω ΩΩΨ―ΩΩΩΩ Ψ£ΩΩΩΩ ΩΩΩΩΨ±ΩΨ©Ω ΨΉΩΩ ΩΩΨ§ ΩΩΨΉΩΩΩΩΩΩ ΩΩ°Ψ°ΩΨ§.} {ΧΧΧ ΧΧ ΧΧΧ©Χ ΧΧ ΧΧ ΧΧΧΧ¨.} \stoptyping \stoptext - 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] Monospace fallback kerning
> On 11 Dec 2018, at 15:05, Hans Γ berg wrote: > > In the example below, multiple spaces do not use the spacing of the fallback > font for multiple spaces, but instead of the main font it seems, despite the > ASCII U+0020 being in the forced override. So the question is how to force > ConTeXt to use the fallback font also for multiple spaces. A workaround is simply making the monospace font the main font: \definefallbackfamily [mainface][mono][stix][range={0100-10},force=yes] \definefontfamily [mainface][mono][courier] ___ 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] Monospace fallback kerning
> On 11 Dec 2018, at 21:18, Pablo Rodriguez wrote: > > On 12/11/18 3:05 PM, Hans Γ berg wrote: >> In the example below, multiple spaces do not use the spacing of the >> fallback font for multiple spaces, but instead of the main font it >> seems, despite the ASCII U+0020 being in the forced override. So the >> question is how to force ConTeXt to use the fallback font also for >> multiple spaces. > Hi Hans, Hello, > what are you trying to do? Using monospace to make some computer code stand out as such. It would suffice with select portions, though, like some keywords. > Sorry, but Iβm afraid that ConTeXt doesnβt spaces as glyphs. Right, but for a monospace font in verbatim mode, one might expect it. Maybe there should be a monospace option for the fallback. > Would it be easier that you use a proper mono font for typing? Do you have any suggestions? βThere is no such font covering the several thousands of glyphs used in math, and I am not sure it would help readability. Monospace somehow got popular for code in the ASCII range. ___ 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] Monospace fallback kerning
On 12/11/18 3:05 PM, Hans Γ berg wrote: > In the example below, multiple spaces do not use the spacing of the > fallback font for multiple spaces, but instead of the main font it > seems, despite the ASCII U+0020 being in the forced override. So the > question is how to force ConTeXt to use the fallback font also for > multiple spaces. Hi Hans, what are you trying to do? Sorry, but Iβm afraid that ConTeXt doesnβt spaces as glyphs. Would it be easier that you use a proper mono font for typing? Pablo > β > \definefallbackfamily [mainface] [mono] [courier] > [range={-00FF},force=yes] > > \definefontfamily [mainface][serif][stix] > \definefontfamily [mainface][mono][stix] > \definefontfamily [mainface][math][stix] > > \setupbodyfont[mainface,10pt] > > \starttext > > \starttyping > code code > . code . code > . code code > code > . . code > code > . . . code > code > . . . . code > code > . code > \stoptyping > > \stoptext > β > ___ > 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 > ___ > -- 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 ___
[NTG-context] Monospace fallback kerning
In the example below, multiple spaces do not use the spacing of the fallback font for multiple spaces, but instead of the main font it seems, despite the ASCII U+0020 being in the forced override. So the question is how to force ConTeXt to use the fallback font also for multiple spaces. β \definefallbackfamily [mainface] [mono] [courier] [range={-00FF},force=yes] \definefontfamily [mainface][serif][stix] \definefontfamily [mainface][mono][stix] \definefontfamily [mainface][math][stix] \setupbodyfont[mainface,10pt] \starttext \starttyping code code . code . code . code code code . . code code . . . code code . . . . code code . code \stoptyping \stoptext β ___ 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 ___