ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: LuaTeX and Unicode Math
Date: Tue, 2 Oct 2007 20:26:33 -0400 (EDT)	[thread overview]
Message-ID: <alpine.WNT.0.9999.0710022016310.2188@nqvgln> (raw)
In-Reply-To: <6faad9f00710021616j3ddfd5d7taeb8bcbeb8eb22c1@mail.gmail.com>

Hi,

> While trying to convert some stuff from HTML to PDF (using LuaTeX) I
> have noticed some minor problems: unicode math characters work OK in
> text mode (under assumption that the font has them), but not in math
> mode. In pdfTeX they work OK in both cases. (That behaviour is
> expected, but not necessary desired.)

I know about this, and this is one of the main reason that I am still 
using pdftex for day to day work.  I have become used to typing most 
of my math in unicode, and now none of it works (with luatex). But I 
have been too busy to actually try to understand what is happening 
behind the scences.

> Is there any cure to it?

AFAIK, luatex has not toched on the math handling of tex yet. There 
are some old ideas on how TeX's math support can be improved, and with 
luatex that is a real possibility. I am sure that at some stage, once 
some aspects of the lua functionality are more stable, this will be 
looked into. It makes sense to finalize mkiv support only after that.

> I could/should solve the problem with better handling of xml entities
> or with fallbacks (if φ is not present in font, use \phi etc.), but I
> don't know how to do either of them.
>
> I would normally say something like
>   \chardef`φ=\active
>   \defφ{\phi}
> to solve the problem, but that doesn't work when doing XML conversion.

Actually, for a unicode aware engine it should be the other way around

\def\phi{φ}

That is, all definemathcommand be changed to something like

\definemathcharacter[φ][<font:location>]

and so on. But my guess is that this will need a overhaul of the math 
character encoding. Again, that is something which I do not understand 
at the moment.

Aditya
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2007-10-03  0:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-02 23:16 Mojca Miklavec
2007-10-03  0:26 ` Aditya Mahajan [this message]
2007-10-03  8:45   ` Hans Hagen
2007-10-03 13:19     ` Joel C. Salomon
2007-10-03  6:25 ` Taco Hoekwater
2007-10-03  8:11   ` Mojca Miklavec
2007-10-03  9:40     ` Taco Hoekwater
2007-10-03 10:11       ` Mojca Miklavec
2007-10-03 14:38     ` Arthur Reutenauer
2007-10-03 18:34     ` Joel C. Salomon
2007-10-19 23:48   ` Mojca Miklavec
2007-10-20  7:17     ` Taco Hoekwater
2007-10-03  8:25 ` 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=alpine.WNT.0.9999.0710022016310.2188@nqvgln \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /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).