frmatthew / exsurge

A JavaScript library for rendering Gregorian Chant in square note notation
MIT License
54 stars 13 forks source link

Problems parsing text containing spaces #73

Closed bbloomf closed 8 years ago

bbloomf commented 8 years ago

To indicate a flex, it is desirable to have puncta above a syllable that contains a space and then the flex symbol, e.g., pec(j)cá(j)re: †(h. j j j ::) However, this doesn't work in exsurge currently, because of the way Gabc.splitWords() works. Perhaps it could work by finding anything up to a "(" and then to the first ")" or to the end of the string?