![](https://secure.gravatar.com/avatar/02eeb8d9123c5c620a36647230eea1d0.jpg?s=120&d=mm&r=g)
Hi! Unicode subscripts do not work (at least, in math): \starttext $a₀₁₂₃₄₅₆₇₈₉₋₌₊$ \stoptext prints only "a". The file char-def.lua contains block like this: [0x2080]={ category="no", description="SUBSCRIPT ZERO", direction="en", linebreak="al", specials={ "sub", 0x0030 }, unicodeslot=0x2080, }, Which file should handle this "specials={ "sub", 0x0030 }"? P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 29-5-2010 6:58, Yury G. Kudryashov wrote:
Hi!
Unicode subscripts do not work (at least, in math):
\starttext $a₀₁₂₃₄₅₆₇₈₉₋₌₊$ \stoptext
prints only "a". The file char-def.lua contains block like this: [0x2080]={ category="no", description="SUBSCRIPT ZERO", direction="en", linebreak="al", specials={ "sub", 0x0030 }, unicodeslot=0x2080, },
Which file should handle this "specials={ "sub", 0x0030 }"?
P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.
in which case ... do you expect that glyph? or maybe one special for math? and does its size match the other superscripts that are not in the font? these super/sub things are historic ballast and not that useful anyhow, attached a way to deal with it in your document, but you have to load it explicitly with \usemodule[mathcrap] as soon as math-stream interpretation (as for instance in msword) is introduced in mkiv i might consider some collapsing mechanism Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/02eeb8d9123c5c620a36647230eea1d0.jpg?s=120&d=mm&r=g)
Hans Hagen wrote:
On 29-5-2010 6:58, Yury G. Kudryashov wrote:
Hi!
Unicode subscripts do not work (at least, in math):
P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.
in which case ... do you expect that glyph? or maybe one special for math? and does its size match the other superscripts that are not in the font? these super/sub things are historic ballast and not that useful
anyhow, attached a way to deal with it in your document, but you have to load it explicitly with \usemodule[mathcrap] OK, I shall replace all unicode sub/sup scripts with _ and ^.
Is it possible to print some warnings/errors for such crappy characters? As a user, I don't know in advance which characters are crappy.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 30-5-2010 4:52, Yury G. Kudryashov wrote:
Hans Hagen wrote:
On 29-5-2010 6:58, Yury G. Kudryashov wrote:
Hi!
Unicode subscripts do not work (at least, in math):
P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.
in which case ... do you expect that glyph? or maybe one special for math? and does its size match the other superscripts that are not in the font? these super/sub things are historic ballast and not that useful
anyhow, attached a way to deal with it in your document, but you have to load it explicitly with \usemodule[mathcrap] OK, I shall replace all unicode sub/sup scripts with _ and ^.
Is it possible to print some warnings/errors for such crappy characters? As a user, I don't know in advance which characters are crappy.
there are \checkcharactersinfont \removemissingcharacters (long time not tested) for sure we can add some checking (for which i need to flag those code points in the char-def file) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/7325514c8a7b377b86d86ad29d35e8ef.jpg?s=120&d=mm&r=g)
On Sun, May 30, 2010 at 03:35:12PM +0200, Hans Hagen wrote:
On 29-5-2010 6:58, Yury G. Kudryashov wrote:
Hi!
Unicode subscripts do not work (at least, in math):
\starttext $a₀₁₂₃₄₅₆₇₈₉₋₌₊$ \stoptext
prints only "a". The file char-def.lua contains block like this: [0x2080]={ category="no", description="SUBSCRIPT ZERO", direction="en", linebreak="al", specials={ "sub", 0x0030 }, unicodeslot=0x2080, },
Which file should handle this "specials={ "sub", 0x0030 }"?
P.S.: Superscript digits work. Probably, the font contains ¹ but not ₁.
in which case ... do you expect that glyph? or maybe one special for math? and does its size match the other superscripts that are not in the font? these super/sub things are historic ballast and not that useful
anyhow, attached a way to deal with it in your document, but you have to load it explicitly with \usemodule[mathcrap]
as soon as math-stream interpretation (as for instance in msword) is introduced in mkiv i might consider some collapsing mechanism
Those characters are not intended for use as real sub/superscripts, they are their for "round trip compatibility" (AKA the source of all Unicode discrepancies). -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 30-5-2010 5:01, Khaled Hosny wrote:
Those characters are not intended for use as real sub/superscripts, they are their for "round trip compatibility" (AKA the source of all Unicode discrepancies).
indeed, which is why using them is on user's own risk Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Khaled Hosny
-
Yury G. Kudryashov