Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mfenced gone bad with solo content and open="["

2 views
Skip to first unread message

William F Hammond

unread,
Aug 18, 2005, 1:54:29 PM8/18/05
to
Dear Friends,

I'm appending below an XHTML+MathML file. The third math display
seems not to be rendering correctly in linux Mozilla 1.7.8. I've been
noticing it since some stage in 1.7. It was once OK -- probably through
all of 1.5. (I was ignoring because I suspected local font issues were
my problem.)

FWIW I'm testing without the 4 special fonts since I cannot assume
that my readers have them.

Cheers.

-- Bill

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

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Univ at Albany: Math: W. F. Hammond: Courses: Testing</title>
</head>
<body>
<h1 class="display">MathML Test</h1>
<h4 class="display">August, 2005</h4>

<p>
This is from the W3C Test Suite at<br />
Presentation->GeneralLayout->mfenced->mfenced5:
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="display">
<mfenced open="[">
<mn> 0 </mn>
<mn> 1 </mn>
</mfenced>
</math>
</p>

<p>
A slight variation of that above:
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="display">
<mfenced open="[" close="]">
<mn> 0 </mn>
<mn> 1 </mn>
</mfenced>
</math>
</p>

<p>
This is what does not work for me:
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="display">
<mrow><mi>A</mi>
<mfenced open="[" close ="]">
<mi>t</mi>
</mfenced>
</mrow>
</math>
</p>

<p>
A slight variation of that:
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="display">
<mrow>
<mi>A</mi>
<mfenced open="[" close ="]">
<mi>x</mi>
<mi>y</mi>
</mfenced>
</mrow>
</math>
</p>

</body>
</html>

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

Roger B. Sidje

unread,
Aug 25, 2005, 11:16:50 PM8/25/05
to
I have filed bug 306004, with a pending patch to fix the issue:
https://bugzilla.mozilla.org/show_bug.cgi?id=306004

Some users might not see the bug as it is font-dependent.
Here is a screenshot of what I see on my box with your testcase:
https://bugzilla.mozilla.org/attachment.cgi?id=193886

The thing is, it is possible for the stretching code to reject a
character at normal size, and then stretch it, or *shrink* it your case,
to exactly cover the container.

This is okay in horizontal mode. Indeed, it is conceivable to shrink an
arrow accent (if possible) so that it neatly covers the base, instead of
using it at normal size as it might be too long and ugly.

However, in vertical mode, it will be best if a stretchy character is
never allowed to shrink. That's what the fix in the bug does now.
Hope that resolves your problem.
---
RBS

> _______________________________________________
> Mozilla-mathml mailing list
> Mozilla...@mozilla.org
> http://mail.mozilla.org/listinfo/mozilla-mathml
>

0 new messages