daisy / math-a11y

5 stars 2 forks source link

Changes in Math AutoCorrect Settings Cause Inconsistent UnicodeMath to Professional Format Conversion Between Display and Inline Math #37

Open brichwin opened 4 weeks ago

brichwin commented 4 weeks ago

Description

When using UnicodeMath (linear mode) in Word 365's Equation Editor, there are unexpected consequences of altering the Math AutoCorrect settings. The consequences manifest as inappropriate inconsistencies in how expressions are converted to professional format between Display Math and Inline Math.

Depending on the settings (detailed below) the conversion process of Inline Math expressions may inappropriately retain the spaces used to terminate Math AutoCorrect keywords or even fail to convert into professional form at all. If the same expressions are entered as Display Math equations then the spacing is as expected and conversions are successful.

It might be helpful to watch the demo Video: Changes in Math AutoCorrect Settings Cause Inconsistent UnicodeMath to Professional Format Conversion Between Display and Inline Math

These issues are particularly problematic for screen reader users who need specific AutoCorrect settings for accessibility and may not notice that expressions fail to convert to professional form when explicitly requested.

Tested Version Information

OS Version: -- OS Name: Microsoft Windows 11 Enterprise -- Version: 10.0.22621 Build 22621 -- Locale: United States Microsoft Word Version: -- Microsoft 365 Apps for enterprise -- Version 2402 (Build 17328.20612 Click-to-Run) Semi-Annual Enterprise Channel

Environment

Issue 1: Unexpected Retention of Math AutoCorrect Terminator Space(s) in Inline Math Expressions

Expected Behavior

Configuration

These settings are disabled:

This setting is left enabled:

Actual Behavior

Impact

Issue 2: Failed Professional Format Conversion with "Use Math AutoCorrect rules outside of math regions" Disabled

Configuration

All following settings disabled:

Expected Behavior

Actual Behavior

Accessibility Impact

  1. Screen reader users often need to disable AutoCorrect settings to:
    • Avoid automatic conversion to built-up structures
    • Prevent confusion from unexpected placeholders
    • Maintain better control over expression input
  2. These inconsistencies create additional challenges:
    • Unpredictable behavior between Display and Inline Math
    • Inability to convert inline expressions when using certain Math AutoCorrect settings
    • Non-visual users may not notice an expression failed to convert
    • Increased cognitive load when writing mathematical content

Steps to Reproduce

Issue 1 (Space Retention):

  1. Ensure default AutoCorrect settings are configured as:
    • Disabled:
      • Equation Options dialog
        • "Automatically convert expressions to professional format" unchecked
      • Math AutoCorrect tab on AutoCorrect dialog
        • "Replace text as you type" unchecked
    • Enabled:
      • Math AutoCorrect tab on AutoCorrect dialog
        • "Use Math AutoCorrect rules outside of math regions" checked
  2. Create Display Math equation (Alt+=) on empty line
  3. Enter A\cup B
  4. Convert to professional
  5. Note correct spacing
  6. Create Inline Math equation at the end of some text (on the same line)
  7. Enter A\cup B
  8. Convert to professional
  9. Note incorrect space retention

Issue 2 (Failed Conversion):

  1. Disable all three AutoCorrect settings mentioned above All following settings disabled:
    • Equation Options dialog
      • "Automatically convert expressions to professional format" unchecked
    • Math AutoCorrect tab on AutoCorrect dialog
      • "Use Math AutoCorrect rules outside of math regions" unchecked
      • "Replace text as you type" unchecked
  2. Create Display Math equation (Alt+=) on empty line
  3. Enter A\cup B
  4. Convert to professional
  5. Note successful conversion
  6. Create Inline Math equation at the end of some text (on the same line)
  7. Enter A\cup B
  8. Attempt to convert to professional format using any available method
  9. Note that all attempts fail

Suggested Fix

  1. Standardize space handling between Display and Inline Math
  2. Ensure professional format conversion works independently of AutoCorrect settings
  3. Consider adding screen reader notifications for successful/unsuccessful conversions
MaryStores commented 3 weeks ago

This issue has been verified using: