(no title)
zobweyt | 11 months ago
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
frizlab|11 months ago
It looks like your library does not support it, which is understandable, it is a huge problem to tackle, but I just wanted to be sure.
zobweyt|11 months ago
I guess handling these nuances falls under the broader categories of internationalization (i18n) and localization (l10n).
re|11 months ago
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)
zobweyt|11 months ago
zvr|11 months ago
zobweyt|11 months ago
I appreciate your suggestion regarding the name, but unfortunately this name was already taken, so "textcase" was chosen.
I also have ideas for adding dictionary key conversion and other features in the future that will handle more than just strings. In addition, you can use this library to convert cases of Iterable[str] using textcase.pattern