w3c / mathml-core

MathML Core draft
https://w3c.github.io/mathml-core
38 stars 14 forks source link

mtr columnspan and rowspan #44

Open fred-wang opened 4 years ago

fred-wang commented 4 years ago

The current table description in MathML Core is very limited, basically just mtable/mtr/mtd similar to HTML with centered cells.

It also has columnspan / rowspan attributes on mtd, just saying that the "syntax and semantic". I'm proposing to drop this for version 1. I think there are several issues that should be discussed and addressed:

NSoiffer commented 4 years ago

Currently, none of the mtable/mtr/mtd attrs are mentioned in core (see w3c/mathml#114). We should spend some time to understand what can be supported in core and what needs to be changed. I agree with @fred-wang that this will take significant effort and so needs to be put off until the next version. That definitely limits the usefulness of mtable, but at least symbolic and integer matrices can be supported; not ones with decimal numbers though (#180, w3c/mathml#114) 👎

NSoiffer commented 3 years ago

Decimal alignment is particularly important for math. There is the issue of what is a decimal ("." or ","), so maybe align on a character?

stefnotch commented 2 years ago

Decimal alignment is particularly important for math. There is the issue of what is a decimal ("." or ","), so maybe align on a character?

One dirty workaround is by splitting numbers into two columns, one that is right-aligned and one that is left-aligned. Here is an ugly paint mockup image