- From: N P <pzn04@yahoo.fr>
- Date: Wed, 31 Mar 2004 12:52:26 +0200 (CEST)
- To: Robert Miner <RobertM@dessci.com>, "Thomas G. Habing" <thabing@uiuc.edu>
- Cc: www-math@w3.org
- Message-ID: <20040331105226.91989.qmail@web25204.mail.ukl.yahoo.com>
Hello again, I tried with an xsl rule, it works for the "<" symbol. I replaced the code 0xE084 with the entity reference < as you suggested. Could you please tell me how I can get the code 0xE084 for <, and where I can find the real UTF-8 codes for other symbols that are generated in the Unicode Private Area, and that display an interrogation mark instead of the expected character? In the example below (please refer to the attached image), the square symbol is meant to be a "+" sign as subscript. In the annotation I get when I copy the mathml into a notepad file, I only see: { Sum rSub { size 8{i=j+1} } rSup { size 8{n} } {w rSub { size 8{i} } }. How can I get its code? <mrow> <msubsup> <mo>∑</mo> <mstyle> <mrow> <mrow> <mi>i</mi> <mo>=</mo> <mrow> <mi>j</mi> <mo>ðÄ</mo> (a small empty square) <mn>1</mn> </mrow> </mrow> Many thanks for your feedback, PN Robert Miner <RobertM@dessci.com> wrote: The confusion arose because I was writing from home last night and couldn't remember the syntax for the proper kind of XSL rule. However, reunited with my XSL book, I see it should be something like this: <xsl:template match="mml:mo[. = 'X']"> <mml:mo>Y</mml:mo> </xsl:template> This should replace an <mo> element whose CDATA is 'X' with one whose CDATA is 'Y'. So adding are rule like <xsl:template match="mml:mo[. = '\356\202\204']"> <mml:mo>&lt;</mml:mo> </xsl:template> to pmathml.xsl corrects the Open Office problem. Note that \356\202\204 should be the real UTF-8 character. I wrote it out in octal since I doubt it would come through properly in the posting. --Robert --------------------------------- Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
Received on Wednesday, 31 March 2004 05:53:03 UTC