From: Khaled Hosny <khaledhosny@eglug.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Yury G. Kudryashov" <urkud@ya.ru>
Subject: Re: unicode subscripts
Date: Sun, 30 May 2010 18:01:47 +0300 [thread overview]
Message-ID: <20100530150147.GA4080@khaled-laptop> (raw)
In-Reply-To: <4C026990.7080203@wxs.nl>
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2010-05-30 15:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-29 16:58 Yury G. Kudryashov
2010-05-30 13:35 ` Hans Hagen
2010-05-30 14:52 ` Yury G. Kudryashov
2010-05-30 15:22 ` Hans Hagen
2010-05-30 15:01 ` Khaled Hosny [this message]
2010-05-30 15:19 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100530150147.GA4080@khaled-laptop \
--to=khaledhosny@eglug.org \
--cc=ntg-context@ntg.nl \
--cc=urkud@ya.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).