Tazinho / snakecase

🐍🐍🐍 A systematic approach to parse strings and automate the conversion to snake_case, UpperCamelCase or any other case.
https://tazinho.github.io/snakecase/
GNU General Public License v3.0
146 stars 9 forks source link

Support more country specific transliterations #107

Open Tazinho opened 6 years ago

Tazinho commented 6 years ago

For example german: Ä -> AE; Ö-> OE, Ü -> UE, ä -> ae, ö -> oe, ü -> ue, ß -> ss

Tazinho commented 6 years ago

Danish doesn't seem to work, see:

> to_any_case(c("Æ", "Ae"), transliterations = "Latin-ASCII")
[1] "ae" "ae"
> to_any_case(c("æ", "ae"), transliterations = "Latin-ASCII")
[1] "ae" "ae"
> to_any_case(c("Ø", "Oe"), transliterations = "Latin-ASCII")
[1] "o"  "oe"
> to_any_case(c("ø", "oe"), transliterations = "Latin-ASCII")
[1] "o"  "oe"
> to_any_case(c("Å", "Aa"), transliterations = "Latin-ASCII")
[1] "a"  "aa"
> to_any_case(c("å", "aa"), transliterations = "Latin-ASCII")
[1] "a"  "aa"

All together:

Also Need to update the following files

See discussions: