From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17005 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: MathML element for accents? Date: Tue, 09 Nov 2004 14:59:57 +0100 Message-ID: <4190CD5D.2030506@wxs.nl> References: <41909449.6060502@capdm.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1100008825 7627 80.91.229.6 (9 Nov 2004 14:00:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Nov 2004 14:00:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 09 15:00:07 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CRWXX-000460-00 for ; Tue, 09 Nov 2004 15:00:07 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B628127B6; Tue, 9 Nov 2004 15:00:06 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23855-05; Tue, 9 Nov 2004 15:00:02 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DAE0A127B1; Tue, 9 Nov 2004 15:00:01 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 78299127B1 for ; Tue, 9 Nov 2004 15:00:00 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23849-05 for ; Tue, 9 Nov 2004 14:59:59 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 8F063127A1 for ; Tue, 9 Nov 2004 14:59:59 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iA9Dxu7G031462 for ; Tue, 9 Nov 2004 14:59:56 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id DC3212D23A; Tue, 9 Nov 2004 14:59:58 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 852A22C7AD for ; Tue, 9 Nov 2004 13:59:57 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <41909449.6060502@capdm.com> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by 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-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17005 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17005 Duncan Hothersall wrote: > Hello ConTeXters. >=20 > I am using the wonderful ability of ConTeXt to directly typeset MathML=20 > equations, and have come across a problem with trying to put a line=20 > above a character using the element. Here's what I try: >=20 > \setuppagenumbering[state=3Dstop] > \starttext > \startXMLdata > > > x > =C2=AF > > > \stopXMLdata > \stoptext >=20 > The output I get is as if the accent=3D"true" attribute wasn't set - i.= e.=20 > the line is a long way above the x, not like an accent. >=20 > Is there another way to place math accents in presentational MathML? >=20 > My versions: > TeXVersion 0.1 / Taco Hoekwater 2004 > texexec : TeXExec 4.4 - ConTeXt / PRAGMA ADE 1997-2004 > texutil : TeXUtil 8.2 - ConTeXt / PRAGMA ADE 1992-2004 > tex : pdfeTeXk, 3.141592-1.11a-2.1 (Web2C 7.5.2) > context : ver: 2004.8.15 > cont-en : ver: 2004.8.15 fmt: 2004.8.22 mes: english >=20 > (PS (Patrick) - I tried to get a minimal file working on=20 > live.contextgarden but couldn't get any maths formatting to come out.=20 > Perhaps MathML support is not enabled there?) \starttext \usemodule[mathml] \useXMLfilter[utf] \unprotect \remapXMLsequence [mover] [CPA] \MMLpOVER \remapXMLsequence [munder] [CPA] \MMLpUNDER \def\MMLpUNDER#1#2% {\getXMLarguments{munder}{accent=3D"false" #1}% \withnexttwoXMLRelements\doMMLpUNDER#2} \def\MMLpOVER#1#2% {\getXMLarguments{mover}{accent=3D"false" #1}% \withnexttwoXMLRelements\doMMLpOVER #2} \def\doMMLpUNDER {\doifelse{\XMLpar{munder}{accent}{}}{true} {\secondXMLRelement\firstXMLRelement} {\mathop{\vtop{\m@th\ialign{\hss##\hss\crcr \disabledelimiter\doMMLfiller\firstXMLRelement \crcr\noalign{\kern3\p@\nointerlineskip}% \disabledelimiter\doMMLfiller\secondXMLRelement \crcr\noalign{\kern3\p@}}}}\limits}} \def\doMMLpOVER {\doifelse{\XMLpar{mover}{accent}{}}{true} {\secondXMLRelement\firstXMLRelement} {\mathop{\vbox{\m@th\ialign{\hss##\hss\crcr\noalign{\kern3\p@}% \disabledelimiter\doMMLfiller\secondXMLRelement \crcr\noalign{\kern3\p@\nointerlineskip}% \disabledelimiter\doMMLfiller\firstXMLRelement \crcr}}}\limits}} \protect % \useXMLfilter[mea,meb,mec,meh,men,meo,mer] % \useXMLfilter[mxa,mxb,mxc,mxh,mxn,mxo,mxr] Normal: \startXMLdataa=C2=AF\stopXMLdata \par Accent: \startXMLdatax=C2=AF\stopXMLdata \par \stoptext now, the problem is that this funny char between has to become = a math=20 accent, so what is the code? (name) someplace we need to handle that kind= of things 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 -----------------------------------------------------------------