- From: Davide P. Cervone <dpvc@union.edu>
- Date: Sun, 22 Apr 2012 08:13:27 -0400
- To: saf sied <saf_itpro@yahoo.com>
- Cc: <www-math@w3.org>
- Message-Id: <EF1F9D02-05C2-4886-9470-65B9AB55D69D@union.edu>
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='>'><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='>'><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='>'><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='>'><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='<'
> 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='<'
> 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='<'
> 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='<'
> 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='<'
> 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>
>
> </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='>'><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='>'><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='>'><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='>'><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='<'
> 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='<'
> 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='<'
> 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='<'
> 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='<'
> 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>
>
> </body>
> </html>
>
> //////////End: Save as MathJax.htm///////////
Received on Sunday, 22 April 2012 12:14:00 UTC