Re: Improving MathML in FireFox
Karl Tomlinson <[email protected]> Wed, 19 Nov 2008 16:42:46 +1300
| Newsgroups | gmane.comp.mozilla.devel.mathml |
|---|---|
| Message-ID | <[email protected]> |
Patrick Ion writes:
> I don't know that properly encoded UTF-8 Plane-1 characters work
> right with Firefox 3, and that may be a JavaScript character
> handling issue:
Javascript is really UCS-2, but surrogates tend to do what you'd expect.
> e.g. on Mac OS 10.4.11 with STIX fonts the jtest.html file below
> displays 4 lines
> with a bad character box at the start of the third; with the last write
> uncommented I get only the line with a Fraktur A as a Numeric Character
> Entity in it. See Appended test page.
> ============ jstest.html ====================
>
> <html>
> <head>
> </head>
> <body>
> <script type="text/javascript">
> document.write(String.fromCharCode(72,69,76,76,79));
> document.write("<br />");
> document.write(String.fromCharCode(65,66,67));
> document.write("<br />");
> document.write(String.fromCharCode(2112,301));
I'm guessing you mean String.fromCharCode(0x2112,0x301).
> document.write("<br />");
> document.write(String.fromCharCode(D835)+String.fromCharCode(DD04));
Similarly, String.fromCharCode(0xD835)+String.fromCharCode(0xDD04)
> document.write("<br />");
> // 𝓘𝕴
> //document.write(String.fromCharCode(1D504));
0x1D504 would get truncated to a UCS-2 value 0xD504, unfortunately.
> </script>
> 𝔄
> </body>
> </html>
_______________________________________________
dev-tech-mathml mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-mathml