[NTG-context] unicode subscripts

Khaled Hosny khaledhosny at eglug.org
Sun May 30 17:01:47 CEST 2010


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


More information about the ntg-context mailing list