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

Handling ambiguous uppercase/lowercase dotted 'İ / i' and undotted 'I / ı' in Turkish language #35615

Open
alisafaya opened this issue Apr 27, 2020 · 2 comments
Labels
unicode Related to unicode characters and encodings

Comments

@alisafaya
Copy link

I noticed that Julia doesn't contain a functionality that can handle localized string manipulation. For example uppercase and lowercase functions cannot be used with locales like tr_TR.

julia> turkish_text = "istanbul";
julia> uppercase(turkish_text)
"ISTANBUL"

ISTANBUL is not the right uppercase of istanbul in Turkish, it has to be İSTANBUL

Same goes for lowercase function

julia> turkish_text = "ISPARTA";
julia> lowercase(turkish_text)
"isparta"

Again, isparta is not the right lowercase of ISPARTA in Turkish, it has to be ısparta.

I am sure there are some other examples from other languages. I hope you can add this to the next versions of Julia.

Thanks!

@kimikage
Copy link
Contributor

cf. #19516

@JeffBezanson
Copy link
Member

One thing to do here would be to bring back https://github.com/JuliaStrings/ICU.jl. The design of the C locale system is really not good, and we want to avoid changing the behavior of functions based on locale whenever possible. But it would be great to have this function available in a package.

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

No branches or pull requests

3 participants