Re: MathML mfenced tag issue with using angle brackets in MathPlayer and MathJax

Many thanks to Davide (Dr. Cervone) for pointing out my mistake. It’s good to know that MathJax does not ignore the unclosed tags. MathPlayer did ignore the extra closing mrow tags at the end of the first three math islands (in my first set of examples) but it did not complain about the extra opening mrow tags at the beginning of the first three math islands in my second set of examples.
Best Regards,
Saf

--- On Sun, 4/22/12, Davide P. Cervone <dpvc@union.edu> wrote:


From: Davide P. Cervone <dpvc@union.edu>
Subject: Re: MathML mfenced tag issue with using angle brackets in MathPlayer and MathJax
To: "saf sied" <saf_itpro@yahoo.com>
Cc: www-math@w3.org
Date: Sunday, April 22, 2012, 8:13 AM




The problem is that you have incomplete <mrow> tags.  In the MathJax example, in your first set of the examples, the first three have an extra </mrow> right before the </math> that doesn't have a corresponding <mrow> (the fourth works because it doesn't have that extra </mrow>.  For the second set of examples, the first three have an extra <mrow> with no closing </mrow>, while the last two don't.  Looks like there are similar issues in the IE file as well.


If you correct the <mrows> all should work. 


Davide




On Apr 21, 2012, at 5:46 PM, saf sied wrote:






mfenced tag does not work when using angle bracket from the left and using any of the following brackets from the right: ], ) or }. However, it works if right side is a vertical bar.
 
But for MathPlayer, it works if right side is angle bracket and left side is any kind of bracket – <, [, (,  or a vertical bar. However, this case does not work for MathJax except when the left side is left angle bracket or the vertical bar.
 
To understand the issue please copy the following examples on your notepad and save them as IE.htm and MathJax.htm respectively:
 
Please help. Or, is there any workaround.
 
//////////Begin: Save as IE.htm///////////
 
<html xmlns:m="http://www.w3.org/1998/Math/MathML" >
 
<head><object id="mathplayer" classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"></object>
<?import namespace="m" implementation="#mathplayer"?>
</head>
<body>
<div>
 
<h4> MathPlayer test</h4>
<p>Right angle bracket with other types of left brackets or vertical bar on the left. All work:</p>
<p><m:math><m:mfenced open='[' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:mrow></m:math></p>
 
<p><m:math><m:mfenced open='(' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:mrow></m:math></p>
 
<p><m:math><m:mfenced open='{' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:mrow></m:math></p>
 
<p><m:math><m:mfenced open='|' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
<p>Left angle bracket with other types of right brackets or vertical bar on the right. Only right angle bracket and vertical bar on the right work:</p>
 
<p><m:math><m:mrow><m:mfenced open='&lt;' close=']'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
<p><m:math><m:mrow><m:mfenced open='&lt;' close=')'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
<p><m:math><m:mrow><m:mfenced open='&lt;' close='}'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
<p><m:math><m:mfenced open='&lt;' close='|'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
<p><m:math><m:mfenced open='&lt;' close='&gt;'><m:mrow><m:mtable><m:mtr><m:mtd><m:mi>a</m:mi></m:mtd><m:mtd><m:mi>b</m:mi></m:mtd></m:mtr><m:mtr><m:mtd><m:mi>c</m:mi></m:mtd><m:mtd><m:mi>d</m:mi></m:mtd></m:mtr></m:mtable></m:mrow></m:mfenced></m:math></p>
 
</div>
</body>
</html>
 
//////////End: Save as IE.htm///////////
 
//////////Begin: Save as MathJax.htm///////////
 
<html>  
<head>  
 <title>MathML using MathJax over CDN</title>
 <script type="text/javascript"
  src="https://d3eoax9i5htok0.cloudfront.net/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
 </script>
</head>  
<body>  
  
<h4>MathML in MathJax</h4>
<p>Right angle bracket with other types of left brackets or vertical bar on the left. Only vertical bar on the left works:</p>
<p><math><mfenced open='[' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></mrow></math></p>
<p><math><mfenced open='(' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></mrow></math></p>
<p><math><mfenced open='{' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></mrow></math></p>
<p><math><mfenced open='|' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p>Left angle bracket with other types of right brackets or vertical bar on the right. Only right angle bracket and vertical bar on the right work:</p>
<p><math><mrow><mfenced open='&lt;' close=']'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p><math><mrow><mfenced open='&lt;' close=')'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p><math><mrow><mfenced open='&lt;' close='}'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p><math><mfenced open='&lt;' close='|'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
<p><math><mfenced open='&lt;' close='&gt;'><mrow><mtable><mtr><mtd><mi>a</mi></mtd><mtd><mi>b</mi></mtd></mtr><mtr><mtd><mi>c</mi></mtd><mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></math></p>
 
</body>  
</html>
 
//////////End: Save as MathJax.htm///////////

Received on Sunday, 22 April 2012 21:23:54 UTC