Amaya bugs in rendering MathML

Hello!

This letter addresed to Math Working Group and Amaya Working Group.
It contains three examples of strange rendering MathML in Amaya 9.1.4
for windows. In general, this information can be useful for Amaya
developing group. I want to get some comments from you on situations
 explained above.

[...]

I found some Amaya bugs, testing webpages in Amaya. This strange
thigns happens only with Amaya, not with some other brousers which I
tested.

1. Wraps.

This is the CSS code:

=======================================================
..mark { float: right; letter-spacing: 3px; color: #666;
font-family: FreeSerif, Times, serif }
..mark:before { content: "(" }
..mark:after { content: ")" }
=======================================================

And Amaya renders this code:
=======================================================
<span class="mark">1</span>
<p style="text-align: center"><math
 xmlns="http://www.w3.org/1998/Math/MathML">
 <mi>х</mi><mo>&amp;</mo><mi>y</mi>
<mo>=</mo>
<mi>y</mi><mo>&amp;</mo><mi>х</mi>
</math>;</p>
=======================================================

Like this:
=======================================================
                                                     (1
      [mathml here]                                   )
=======================================================

Why do Amaya inserts word-wrap after the text in element of class
"mark" ?.. I use amaya 9.1.4 for windows. Some tricks like
"white-space: nowrap" can't help in this situation.

And it is works without wraps, if there are no <math> elements after
the paragrahph. If there are MathML, closing bracket drops on second
line.

[...]

2. Tables.

Also, Amaya renders tables incorrectly.

See this code (sorry for big citation... you can fing this attached
into this message):

=======================================================
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl"
 href="http://www.w3.org/Math/XSL/mathml.xsl"?> <!DOCTYPE html PUBLIC
 "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<style type="text/css" media="all">
..data_table { border-collapse: collapse; border: solid #000088 2px }
..data_table th, .data_table td { padding: 5px }
..data_table th { font-weight: bold; text-align: center; font-family:
 FreeSans, sans-serif } ..data_table th, .data_table_active th { background:
 #eee; border: solid #007777 1px } ..data_table td, data_table_active td {
 background: #f9f9f9; border: solid #bbb 1px } ..marked_element { padding:
 10px; text-align: center }
..marked_element img { display: inline }
..marked_element p { display: block; padding: 0; margin: 5px 0 5px 0;
 text-indent: 0; color: #555; text-align: left; font-size: 80% }
</style>
<title>Amaya bugs.</title>
</head>
<body>
<h1>Table</h1>
<h2>Width 25%, float: right:</h2>
<div class="marked_element" style="float: right; width: 25%">
<p>Table&nbsp;2.</p>
<table style="text-align: center; width: 100%" class="data_table"
 summary="истинностная таблица для h(x, y, z)" id="Table3">
<colgroup>
<col />
<col />
<col />
<col />
</colgroup>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>z</mi></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>h</mi>
<mrow><mo>(</mo>
<mi>x</mi><mtext>,&nbsp;</mtext><mi>y</mi><mtext>,&nbsp;</mtext><mi>z</mi>
<mo>)</mo></mrow>
</math></th>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></td>
</tr>
</table>
</div>
<h2 style="clear: both">Width 98%, no float, clear: both.</h2>
<div class="marked_element" style="clear: both; width: 98%">
<p>Table&nbsp;2.</p>
<table style="text-align: center; width: 100%" class="data_table"
summary="истинностная таблица для h(x, y, z)" id="Table1">
<colgroup>
<col />
<col />
<col />
<col />
</colgroup>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>x</mi></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>y</mi></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>z</mi></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML">
<mi>h</mi>
<mrow><mo>(</mo>
<mi>x</mi><mtext>,&nbsp;</mtext><mi>y</mi><mtext>,&nbsp;</mtext><mi>z</mi>
<mo>)</mo></mrow>
</math></th>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></td>
</tr>
<tr>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<th><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>1</mo></math></th>
<td><math xmlns="http://www.w3.org/1998/Math/MathML"><mo>0</mo></math></td>
</tr>
</table>
</div>
</body>
</html>
=======================================================

And Amaya renders this as shown at attached screenshot:

=======================================================

                            -----------------------

                            | ? |                 |

        strange space       | ? | columns         |
        before the first--> | ? | here            |
        column              | ? |                 |
                            -----------------------

=======================================================

3. Fonts.

Also, I have many problems with rendering mathml formulas. Amaya can
process correctly all non-special characters, but if there are some
constructions like this:

=======================================================
<mo>&or;</mo>
=======================================================

Or like this:

=======================================================
<mo>&#8477;</mo>
=======================================================

Amaya can't show symbols. There are special item in stylesheet:

=======================================================
math { font-family: FreeSerif, Times, serif }
=======================================================

But there are soon no characters, when I removing it.

How do Amaya works with fonts?.. This happens under the Windows XP,
SP 2. Please, look into the "6.jpg" screenshot of 'insert symbol' combobox at
"Tools" panel... "5.jpg" is lost "&or;" symbols.

Аnd "6.jpg" is lost "{" symbol before thе "<mtable>". Amaya rendered

this to big bracket:
                      | Combined three symbols:
                      |------------------------

                  /   | <-- patt 1

{        --->   <     | <-- part 2

                  \   | <-- part 3
-----------------------------------------------
small         big
bracket  --->
("{")         bracket
-----------------------------------------------

But symbols not shown correctly!.. The folder "\AmayaWX\fonts" is
exists.

[...]

Please, explain me, how can I improve pages to make them accessible
in Amaya.

P.S. All codes are well-formed XHTML.

Received on Wednesday, 17 August 2005 07:16:47 UTC