-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support vertical lines in arrays #127
Comments
MathJax produces this MathML, which works: <mtable columnalign="right right right right" rowspacing="4pt"
columnspacing="1em" columnlines="none none solid">
<mtr>
...
</mtr>
</mtable> |
Without the <math display="block" xmlns="http://www.w3.org/1998/Math/MathML">
<mtable>
<mtr>
<mtd columnalign="right">
<mn>1</mn>
</mtd>
<mtd columnalign="right">
<mn>0</mn>
</mtd>
<mtd columnalign="right">
<mn>0</mn>
</mtd>
<mtd columnalign="right">
<mi>x</mi>
</mtd>
</mtr>
<mtr>
<mtd columnalign="right">
<mn>0</mn>
</mtd>
<mtd columnalign="right">
<mn>1</mn>
</mtd>
<mtd columnalign="right">
<mn>0</mn>
</mtd>
<mtd columnalign="right">
<mi>b</mi>
</mtd>
</mtr>
<mtr>
<mtd columnalign="right">
<mn>0</mn>
</mtd>
<mtd columnalign="right">
<mn>0</mn>
</mtd>
<mtd columnalign="right">
<mn>1</mn>
</mtd>
<mtd columnalign="right">
<mi>c</mi>
</mtd>
</mtr>
</mtable>
</math> Obviously using the |
I don't see anything corresponding to |
We have no way to represent this in EArray, currently. Ignoring them seems better than failing altogether. See #127.
- Add [ColumnSeparator] to EArray. - Readers.MathML can generate any of {CSNone, CSDashed, CSSolid}, which should round-trip through Writers.MathML - {Readers,Writers}.TeX only support {CSNone, CSSolid} - Readers.OMML currently generates CSNone, and Writers.OMML doesn't emit ColumnSeparator information
I've written preliminary support for this at aweinstock314@15a2192 . This currently fails most of the tests because it adds additional information to |
|
I've updated the tests (and fixed a few bugs that looking at the ASTs revealed) in aweinstock314@c51c3fa . Some of the tests already contain dashed/solid lines (e.g.
Should |
Where is that documented? I couldn't find it on quick search. |
I manually opened It's not explicitly spelled out by https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#attr-columnlines (though the phrasing "Multiple values separated by space are allowed" seems a bit odd otherwise). |
Found the phrasing in the spec: "In this context, a single value specifies the value to be used for all rows (resp., columns or gaps)." |
Thanks. Yes, I think it would be best to collapse to the single value when they're all the same, if it's not too complicated to do it. |
It emits compressed attributes (including emitting no attribute if the entire list is a copy of the default), and emits both "columnlines" and "columnalign" on the Should I rebase this onto master and then submit it as a PR? |
Yes, please. |
- Add [ColumnSeparator] to EArray. - Readers.MathML can generate any of {CSNone, CSDashed, CSSolid}, which should round-trip through Writers.MathML - {Readers,Writers}.TeX only support {CSNone, CSSolid} - Readers.OMML currently generates CSNone, and Writers.OMML doesn't emit ColumnSeparator information
Currently we get
It would be nice if we could represent these vertical lines. (This would require changing the EArray type.) Second best, perhaps the
|
could just be skipped?The text was updated successfully, but these errors were encountered: