ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LuaTeX and Unicode Math
@ 2007-10-02 23:16 Mojca Miklavec
  2007-10-03  0:26 ` Aditya Mahajan
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Mojca Miklavec @ 2007-10-02 23:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

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.)

Is there any cure to it?

% in LM, most characters are not present in otf fonts, so with LM this
wouldn't work at all. Iwona is slightly better in that respect.
\beginOLDTEX
\enableregime[utf-8]
\usetypescript[iwona][ec]
\endOLDTEX
\beginNEWTEX
\usetypescript[iwona]
\endNEWTEX
\setupbodyfont[iwona]

\def\testA{(φ)} % 03c6
\def\testB{(・)} % 00b7
\def\testC{(≤)} % 2264

\starttext
\testA\testB\testC\crlf
$\testA\testB\testC$
\stoptext

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.

Thanks,
    Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-10-20  7:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-02 23:16 LuaTeX and Unicode Math Mojca Miklavec
2007-10-03  0:26 ` Aditya Mahajan
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

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).