1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 07:07:46 +00:00

Added German diacritics (#284)

This commit is contained in:
Kamil 2022-08-27 13:06:02 +02:00 committed by GitHub
parent 2b82a497f9
commit 17b40ee798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ def remove-diacritics [
arg: string
] {
let diacritics_map = {
# Polish
"Ą": "A",
"ą": "a",
"Ć": "C",
@ -23,7 +24,15 @@ def remove-diacritics [
"Ż": "Z",
"ż": "z",
"Ź": "Z",
"ź": "z"
"ź": "z",
# German
"ä": "ae",
"Ä": "Ae",
"ö": "oe",
"Ö": "Oe",
"ü": "ue",
"Ü": "Ue",
"ß": "ss"
}
$arg
|split chars