NSoiffer / MathCAT

MathCAT: Math Capable Assistive Technology for generating speech, braille, and navigation.
MIT License
63 stars 35 forks source link

Add capital passage mode for UEB #229

Closed NSoiffer closed 11 months ago

NSoiffer commented 1 year ago

A couple of the chemistry examples in GTM section 16 make use of the capital passage mode.

They are all single letter compounds, so all caps, and lots of them -- it is definitely less space to use a passage indicator. A potential heuristic is:

  1. All cap letters (search for L not preceded by C and 𝐶 b)
  2. At least 3 4(?) of them
  3. At least one white space (none => use cap word mode instead)

Note: in cap word/passage mode, no contractions are allowed.

NSoiffer commented 11 months ago

Done when doing whitespace handling so that all tests would pass.