I found folding on punctuation desirable for Piper TTS work.
Would uutils consider adding a -p --punctuation arg to fold with fallbacks like this isolated working example?
While the example is English centric, the existing -s --spaces arg is also not applicable to some non English (Chinese, Japanese, etc). If the is_alphanumeric catch all is not ideal for other languages specific punctuation could be added later; Spanish(¿¡), Chinese(。、), etc. (maybe based on locale or maybe as an always on check)
I found folding on punctuation desirable for Piper TTS work.
Would uutils consider adding a -p --punctuation arg to fold with fallbacks like this isolated working example?
While the example is English centric, the existing -s --spaces arg is also not applicable to some non English (Chinese, Japanese, etc). If the is_alphanumeric catch all is not ideal for other languages specific punctuation could be added later; Spanish(¿¡), Chinese(。、), etc. (maybe based on locale or maybe as an always on check)