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

Some case transformations delete special characters #45

Open
ferenczy opened this issue Nov 28, 2022 · 1 comment
Open

Some case transformations delete special characters #45

ferenczy opened this issue Nov 28, 2022 · 1 comment

Comments

@ferenczy
Copy link

Some case transformations (e.g. the Sentence, the Title and the No), where I would expect that the special characters (e.g. the punctuation) are preserved, are actually stripping them, so their usability is very limited. While for other transformations (e.g. the
camelCase, the Dot, etc.) it may be useful to strip them because those transformations are being used mainly for programming language identifiers, transformations that are usually used for natural languages should preserve all characters (like the Lower, the Upper and the Swap transformations are doing). Also, the Code's native Transform to Title Case transformation is keeping the special characters.

Actually, wouldn't it be better to keep all special characters for all transformations? I would expect that the case transformation operation changes the case of characters where it's possible to do that (the alphabet) and doesn't touch any other characters at all.

@rolivegab
Copy link

very much agreed, erasing special symbols is not good, neither expected

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

2 participants