https://kotlinlang.org logo
#announcements
Title
# announcements
p

poohbar

05/24/2017, 12:22 PM
val nejkulaťoulinkatějšíKolečko = Circle(5f, 5f, 10f)
🇨🇿 4
🕶️ 2
k

kirillrakhman

05/24/2017, 12:23 PM
poohbar: czech language will always have a special place in my heart
p

poohbar

05/24/2017, 12:24 PM
Great! 🙂
k

kirillrakhman

05/24/2017, 12:24 PM
I had to write a sort function for my app once and a czech user informed me that in the czech alphabete, there is a letter consisting of two letters
how awesome is that? 😄
t

than_

05/24/2017, 12:24 PM
yep. 'ch' is hell 🙂
p

poohbar

05/24/2017, 12:24 PM
yeah
ch
.. but it's printed as two letters..
you are right that I would expected alphabetic sorting to go
e f g h ch i j
😄
c

Czar

05/24/2017, 12:26 PM
k

kirillrakhman

05/24/2017, 12:27 PM
you know those scroll bars that display the first letter of the category you're scrolling to?
Turns out one letter is not enough
tom scott would have field day with this 😄
m

mg6maciej

05/24/2017, 12:29 PM
cz
ch
rz
sz
dz
are also in Polish, but I would not expect e.g.
ch
close to
h
even tho they sound the same. 😕
p

poohbar

05/24/2017, 12:32 PM
Maciej, are the two-letter sounds you listed understood as a letter of their of their own? When you are reciting your alphabet?
m

mg6maciej

05/24/2017, 12:40 PM
Nope. These are just taught in primary school as mono-sound digraphs.
p

poohbar

05/24/2017, 12:41 PM
i see.. well
ch
in czech is an actual letter.. so thats why we would expect it to appear at its own spot in sorted string
m

mg6maciej

05/24/2017, 12:42 PM
Does Java string sorting handle it well for your
Locale
? 🙂
k

kirillrakhman

05/24/2017, 12:47 PM
m

mg6maciej

05/24/2017, 12:48 PM
I know. First thing you learn when you want to write app in Polish.
4 Views