[NTG-context] unicode subscripts

Hans Hagen pragma at wxs.nl
Sun May 30 15:35:12 CEST 2010


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
-----------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: m-mathcrap.mkiv
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100530/7728c2db/attachment.ksh>


More information about the ntg-context mailing list