ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: <mtext> UTF further problems
Date: Wed, 22 Jun 2005 10:06:39 +0200	[thread overview]
Message-ID: <42B91C0F.1010808@wxs.nl> (raw)
In-Reply-To: <42B8CA87.3000109@gmail.com>

Mojca Miklavec wrote:

> \usemodule[mathml]
> \starttext\startXMLdata
> <formula><math><mtext>\"{a}\"{o}\"{u}\v{c}\v{s}\v{z}</mtext></math></formula> 
> \stopXMLdata\stoptext
> 
> fails as well.
> 
> An interesting observation: I tested on live.contextgarden.com, on the 
> latest ConTeXt in MikTeX distribution and in an old minimal ConTeXt 
> distribution for Windows (6.12.2004). The results from MikTeX and 
> live.contextgarden.net were equal. \v{c} resulted in something like
> "leftdoubleguillemont" overlapped with "c", \"{a}, \"{o} and \"{u} 
> resulted in a dash over the letter a/o/u. In the minimal ConTeXt 
> distribution the line
>     \"{a}\"{o}\"{u}\v{c}\v{s}\v{z}
> resulted in
>     "{a}"{o}"{u}v {c}v {s}v {z}
> (literally).

Let me tell you that it's even stranger:

\usemodule[mathml]

\starttext

\chardef\XMLtokensreduction\zerocount

\startXMLdata
<formula><math><mtext>\"{a}\"{o}\"{u}\v{c}\v{s}\v{z}</mtext></math></formula>
\stopXMLdata

\chardef\XMLtokensreduction\plustwo

\startXMLdata
<formula><math><mtext>\"{a}\"{o}\"{u}\v{c}\v{s}\v{z}</mtext></math></formula>
\stopXMLdata

\stoptext

since currently the mml code reenters the tokenizer, the text inside mtext is 
actually seen as tex code

the only way to get this fixed is to rewrite the mml parser (i've partially done 
that already using the normal xml handler instead of the messy mapper); it seems 
that i need to speed up that port.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2005-06-22  8:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050621100002.D406C127BF@ronja.ntg.nl>
2005-06-21 10:25 ` Duncan Hothersall
2005-06-21 12:55   ` James Cloos
2005-06-21 15:43 ` Duncan Hothersall
2005-06-21 23:48   ` Hans Hagen
2005-06-22  0:40   ` James Cloos
2005-06-22  2:18   ` Mojca Miklavec
2005-06-22  8:06     ` Hans Hagen [this message]
2005-06-22  8:35     ` Patrick Gundlach
     [not found] <20050621234837.018CB127C9@ronja.ntg.nl>
2005-06-22  7:49 ` Duncan Hothersall
2005-06-20 13:46 Duncan Hothersall
2005-06-20 20:32 ` James Cloos

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=42B91C0F.1010808@wxs.nl \
    --to=pragma@wxs.nl \
    --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).