From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20502 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Re: Accents in MathML Date: Thu, 26 May 2005 10:58:47 +0100 Message-ID: <42959DD7.5020309@capdm.com> References: <20050525200648.85433127E2@ronja.ntg.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1117101492 1210 80.91.229.2 (26 May 2005 09:58:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 May 2005 09:58:12 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu May 26 11:57:59 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DbF6u-0004WO-1h for gctc-ntg-context-518@m.gmane.org; Thu, 26 May 2005 11:57:04 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1DE47127D0; Thu, 26 May 2005 11:59:01 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14369-05; Thu, 26 May 2005 11:58:54 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17E041277F; Thu, 26 May 2005 11:58:54 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 156721277F for ; Thu, 26 May 2005 11:58:52 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14430-03-2 for ; Thu, 26 May 2005 11:58:51 +0200 (CEST) Original-Received: from liszt-05.ednet.co.uk (liszt-05.ednet.co.uk [212.20.226.26]) by ronja.ntg.nl (Postfix) with ESMTP id 19285126F8 for ; Thu, 26 May 2005 11:58:50 +0200 (CEST) Original-Received: from [192.168.254.41] (unknown [212.20.255.162]) by liszt-05.ednet.co.uk (Postfix) with ESMTP id 9122812ED23 for ; Thu, 26 May 2005 10:58:50 +0100 (BST) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <20050525200648.85433127E2@ronja.ntg.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20502 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20502 >>I'm processing some Spanish from Unicode and some of it is in MathML, >>for which I use ConTeXt's native processing. There seems to be a proble= m >>with accents. When I run this on Live: >> >>-- >>\mainlanguage[es]\enableregime[utf]\useencoding[uc] >>\useXMLfilter[utf]\usemodule[mathml] >>\starttext >>Maths with accents: >>\startXMLdata >>inter=E9s\stopXMLdata >>\stoptext >=20 >=20 > are you sure that your e with accent is codes in utf? >=20 > Hans Further testing locally (rather than via Live) produces different problems, so maybe the unicode is perverted by submitting the data via http to the Live server? In any event, testing only locally I can now produce the following result= s: As long as I have either '\enableregime[utf]' or '\useXMLfilter[utf]' then the =E9 produces an e with a guillemot superimposed on top (this is wrong - I wanted an e with an acute accent). If I don't have either of those commands in the preamble, then I get =C3l= , which looks like the literal unicode as two ASCII chars. Interestingly, if I forget about unicode and use é instead of =E9, then no matter what I put in the preamble I get the e with a guillemot superimposed. So whatever is mapping =E9 incorrectly seems also to be mapping é incorrectly. Unfortunately none of this is the behaviour I originally experienced in my large project file, which was stalling the process with the following error: ! Please use \mathaccent for accents in math mode. \char 19 \dobuildtextaccent ...{\let \char \normalaccent #1 \let \char \normalchar = #2} Inter\dobuildtextaccent {\char 19 }{e} s \secondoftwoarguments #1#2->#2 \MMLpmath ...tyle}{#1}\setMMLpmathstyle {mstyle}#2 \endgroup l.1 ...{}{Inter\dobuildtextaccent {\char 19 }{e}s} \xmlr {mi}{X}{}{cargo}\emp... ... l.15628 ...cargo\stopXMLdata So I think I have two quite different errors, but it would be really good to know what can make =E9 come out right in the minimal file, while = I try to construct another minimal file which will give me the actual error above! Many thanks. Duncan