paulrosen / abcjs

javascript for rendering abc music notation
Other
1.94k stars 285 forks source link

The the a a with numbered tunes #985

Closed seisiuneer closed 10 months ago

seisiuneer commented 10 months ago

The original reverser doesn't handle tune names with number prefixes properly.

It would take:

  1. Woman of the House, The

and return:

The 23. Woman of the House

This change returns:

  1. The Woman of the House

I also added testing for lower case ", the" and ", a" since several popular tunebooks I was working use them as tune name suffixes rather than the upper case versions.

I added this because my ABC Transcription Tools now have an option to number the tunes and the reverser really didn't work correctly with them:

https://youtu.be/HKCA7agXsqo