Skip to content

[Feature] fold on punctuation #13316

Description

@Dmole

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions