Skip to content

mapping of <mspace> #19

@NSoiffer

Description

@NSoiffer

Although normally mspace is meaningless, in some cases for Nemeth (and likely UEB) braille generation, it is needed to flow into the braille.

In the cases I've encountered so far in writing a MathML to Nemeth translator, it happens when numbers are listed with spaces in between [1] and also in long numbers that are separated by spaces [2].

The later case came up in examples from an online open source textbook (translated via MathJaX -- all translators that I tried do the same). Here's the example:

A long integer:

<math>
    <mi>c</mi>
    <mo>=</mo>
    <mn>4</mn><mspace width="thinmathspace"/><mn>598</mn><mspace width="thinmathspace"/><mn>037</mn><mspace width="thinmathspace"/><mn>234</mn>
</math>

Those thinspaces need to be there to turn into a space in the Nemeth code (as in the example in [2]).

[1] https://nemeth.aphtech.org/lesson1.1 (examples 5 and 6 -- lack of dots are spaces)
[2] brailleauthority.org/mathscience/nemeth1972.pdf (see page 16, example 11c(1))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions