←back to thread

71 points zobweyt | 1 comments | | HN request time: 0.203s | source
Show context
frizlab ◴[] No.43553870[source]
Great library!

Does it support non-English title casing?

For instance in French, title casing for “les maisons bleues” is “Les Maisons bleues” while for “des maisons bleues” it’s “Des maisons bleues”.

replies(1): >>43553910 #
zobweyt ◴[] No.43553910[source]
Thanks!

It does not support non-English title casing. From the documentation:

> It also works non-ascii characters. However, no inferences on the language itself is made. For instance, the digraph ij in Dutch will not be capitalized, because it is represented as two distinct Unicode characters. However, æ would be capitalized

replies(3): >>43554503 #>>43554857 #>>43555116 #
re ◴[] No.43555116[source]
> It does not support non-English title casing

Perhaps document that clearly—it's an important restriction that the library assumes English-language strings. ("no inferences on the language itself is made" isn't quite true since the language is inferred to be English, or to at least follow English-compatible rules for casing)

replies(1): >>43555144 #
1. zobweyt ◴[] No.43555144[source]
Thanks for your feedback! You're right; I should clarify that the library assumes English-language strings for casing. I'll update the documentation to make this limitation clear. I appreciate you pointing it out!