Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caps: support characters with diacritics (e.g. ÄÖÜ) in caps words #59

Open
antonmosich opened this issue Feb 23, 2022 · 0 comments
Open

Comments

@antonmosich
Copy link

Currently the caps filter is only able to recognize caps words written only using A-Z, which works fine for English texts, but makes problems once you change to German or French for example. During looking this up, I noticed it is quite complicated to do that using regular expressions/re. The regex package might help, where you can use \p{Lu} to match all uppercase unicode characters, but that would add another dependency.
Another possibility might be to somehow use pythons .isupper() method for string objects which does work with characters with diacritics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant