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] \showhyphens
Hi Pablo, thank you, that's it... I will add it to the wiki, it is not mentioned there... Best, Tomáš Tue, Dec 18, 2018 ve 05:21:44PM +0100 Pablo Rodriguez napsal(a): # On 12/18/18 12:01 PM, Tomas Hala wrote: # > Hi all, # > # > I would like to detect hyphen points in a paragraph. # > I hoped that the plain \showhyphens{text} can do it # > but it displays nothing. Is this plain macro available yet, # > or is it covered by other command? # # Hi Tomáš, # # \hyphenatedword is the command that you need. # # I hope 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 # ___ Tomáš Hála Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 http://akela.mendelu.cz/~thala ___ 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] Itemize lists run into floats - how to add additional spacing
On Wed, 19 Dec 2018 18:29:33 +0100 Hans Hagen wrote: > \setupfloat >[figure] >[default=left,margin=1cm] Thanks for the eye-opener. I realised I applied the margin on the item group instead of the float. Sometimes it's the simple things… Marco ___ 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] Itemize lists run into floats - how to add additional spacing
On 12/19/2018 1:15 PM, Marco Patzer wrote: Hi! The bullet of itemize lists runs into the boxes and caption of floats. How to add spacing so the bullet doesn't touch the float? Example: \setupexternalfigures [location=default] \setupfloat [figure] [default=left] \setupitemize [packed, autointro] \starttext \startitemize \startitem Foo \startplacefigure [title=Lorem ipsum dolor sit amet consectetur] \externalfigure [hacker] \stopplacefigure Bar \stopitem \dorecurse{15}{%% \startitem Foobar \stopitem } \stopitemize \stoptext \setupfloat [figure] [default=left,margin=1cm] - 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 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 ___
[NTG-context] fallback family not working for \setinitial
Dear list, I have the following sample: \mainlanguage[agr] \setuppapersize[A5] \definefallbackfamily [mainface] [rm] [GFS Didot] [preset=range:greek, force=yes] \definefontfamily [mainface] [rm] [TeX Gyre Pagella] \setupbodyfont[mainface] \starttext \setinitial Πρῶτον δεῖ θέσθαι τί ὄνομα καὶ τί ῥῆμα, ἔπειτα τί ἐστιν ἀπόφασις καὶ κατάφασις καὶ ἀπόφανσις καὶ λόγος. \blank\setinitial Ὄνομα μὲν οὖν ἐστὶ φωνὴ σημαντικὴ κατὰ συνθήκην ἄνευ χρόνου, ἧς μηδὲν μέρος ἐστὶ σημαντικὸν κεχωρισμένον· \stoptext When the initial is a character from the extended Greek Unicode block, the fallback family doesn’t work for that initial. Could anyone confirm that this is a bug? 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] 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 ___
[NTG-context] Itemize lists run into floats - how to add additional spacing
Hi! The bullet of itemize lists runs into the boxes and caption of floats. How to add spacing so the bullet doesn't touch the float? Example: \setupexternalfigures [location=default] \setupfloat [figure] [default=left] \setupitemize [packed, autointro] \starttext \startitemize \startitem Foo \startplacefigure [title=Lorem ipsum dolor sit amet consectetur] \externalfigure [hacker] \stopplacefigure Bar \stopitem \dorecurse{15}{%% \startitem Foobar \stopitem } \stopitemize \stoptext Marco ___ 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 ___