MathCAT icon indicating copy to clipboard operation
MathCAT copied to clipboard

No separation in Nemeth braille output between content of neighboring lines in multiline aligned equations

Open brichwin opened this issue 3 years ago • 10 comments

The Nemeth braille rendered by MathCAT from the MathML for these two aligned equations: image results in braille that has no separation between the '5' at the end of the first line and the '3.1x' at the start of the second line:

⠼⠦⠨⠲⠲⠭⠬⠢⠢⠽⠀⠨⠅⠀⠼⠢⠒⠨⠂⠭⠤⠴⠨⠶⠀⠨⠅⠀⠤⠼⠂⠨⠂

The braille is roughly equivalent to "8.44 x plus 55 y equals 53.1 x minus 0.7 equals negative 1.1"

Note the 53.1 x in the braille output instead of a separation between the two equations.

Expected output

At a minimum, a space between the two equations is needed:

⠼⠦⠨⠲⠲⠭⠬⠢⠢⠽⠀⠨⠅⠀⠼⠢ ⠼⠒⠨⠂⠭⠤⠴⠨⠶⠀⠨⠅⠀⠤⠼⠂⠨⠂

Such multiline content is problematic. Unfortunately, it does not appear that Nemeth code has a mechanism for rendering a new line indicator. It would be worth researching if adding "Line 1: " ... "Line 2:", (or similar indication) would be appreciated.

To reproduce

The LaTeX was:

  \begin{aligned}
    8.44x + 55y &= 5\\
    3.1x - 0.7 &= -1.1
  \end{aligned}

brichwin avatar Jun 16 '22 23:06 brichwin

Can you ask someone who is proficient in Nemeth reading what they would like? The fix for #41 adds a space, but as you say, there is no indication that this is supposed to be two lines.

NSoiffer avatar Jun 17 '22 23:06 NSoiffer

I will poll some students. I wonder if it would be a good question for the Math Writing Solutions for VI meeting this Friday (6/22).

brichwin avatar Jun 23 '22 01:06 brichwin

There is an eight dot carriage return symbol, dots 13478. Here is a listing of eight dot ASCII symbols where this was found. http://daisy.github.io/pipeline/modules/braille/liblouis-utils/src/main/resources/default-tables/text_nabcc.dis/

We'll make up some examples using the symbol and see what people think.

brichwin avatar Sep 30 '22 19:09 brichwin

I'll add a preference setting for this that people can experiment with. I start with dots 13478.

I'll also fix the current bug that puts out ⠈⠠ and move the large parens, etc., to the outside.

NSoiffer avatar Oct 14 '22 19:10 NSoiffer

The output is now ⠼⠦⠨⠲⠲⠭⠬⠢⠢⠽⠀⠨⠅⠀⠼⠢⣍ ⠒⠨⠂⠭⠤⠴⠨⠶⠀⠨⠅⠀⠤⠼⠂⠨⠂.

There is no spacing around . @brichwin :Should there be spacing?

NSoiffer avatar Oct 19 '22 17:10 NSoiffer

Mary's first thoughts are that spacing after the "new line" character might imply that there is a space at the start of the new line. However, she thinks it might be more readable if there is a space before the character. Mary is checking with the people that recommended the new line character to see how they are used to finding it in the wilds.

brichwin avatar Oct 20 '22 15:10 brichwin

There is no spacing around . @brichwin :Should there be spacing?

Mary polled the individuals that suggested , the consensus was that a space before the character and no spaces after.

brichwin avatar Oct 31 '22 12:10 brichwin

Done.

NSoiffer avatar Oct 31 '22 18:10 NSoiffer

Nemeth has some rules (rule II.9, pages 9-13) about adding a numeric indicator in various situations in front of numbers. This includes after a left grouping symbol used in matrices and determinants.

@brichwin: should that rule apply after the new row indicator we came up with (⣍)?

NSoiffer avatar Apr 12 '23 17:04 NSoiffer

@brichwin (or Mary): any idea about the previous comment?

I want to fix if needed and close this.

NSoiffer avatar Oct 17 '23 00:10 NSoiffer