daisy / math-a11y

5 stars 2 forks source link

Artefacts appear when converting professional to linear format #13

Open ways2read opened 3 months ago

ways2read commented 3 months ago

Steps to replicate in Word:

  1. Press Alt+= to start an expression
  2. On the Equation tab of the ribbon, in the Structures group select Fraction and then the “Stacked Fraction” (first fraction structure in the first row).
  3. Then navigate into the numerator of the stacked fraction
  4. On the Equation tab, in the Structures group select fraction and then the “Small Fraction” (last/fourth fraction structure in the first row).
  5. Populate the small fraction with a over b.
  6. Navigate to the denominator of the original stacked fraction.
  7. On the Equation tab, in the Structures group select fraction and then the “Small Fraction” (last/fourth fraction structure in the first row).
  8. Populate that small fraction with c over d.
  9. Press Control+Shift+= to toggle the expression into linear mode. You should now have “□(a/b)/ □(c/d)”. My only guess is that there was an attempt to handle mixed fractions, but that the interactions and underlying expression handling were never completed for it.
MurrayIII commented 3 months ago

Small fractions entered this way use a construct called a box. Hence the linear notation you see. □(a/b)/□(c/d). If you type Ctrl+=, you'll see it back in built up form. Ideally small fractions would be created with the small-fraction construct but that came too late to ship in Word 2007 and we never updated it.

jkhurdan commented 3 months ago

Version Information: OS Version: -- OS Name: Microsoft Windows 11 Home -- Version: 10.0.22631 Build 22631 -- Locale: United States Microsoft Word Version: -- Microsoft 365 Apps for enterprise -- Microsoft® Word for Microsoft 365 MSO (Version 2406 Build 16.0.17726.20078) 64-bit NVDA: -- Version 2024.2 (2024.2.0.32555)

Comments I appear to get different results depending on whether or not I insert a space into the equation.

Attempt 1: (with spaces)

You'll get: $\frac{a \frac{□}{□} b}{c \frac{□}{d}}$

Attempt 2: (no spaces)

You'll get: $\frac{\frac{a}{b}}{\frac{c}{d}}$

I'm going to verify this issue. I believe it has to do with how the equation editor manages spaces inserted in the equation.