en Remove diacritics (Python) Z12392zh-hant 實作
Implemented "remove diacritics" |
Converting reference to programming language to use an ID |
||
(Dài-dŏng ô siŏh-ciáh ê̤ṳng-hô gì siŏh-huòi siŭ-gāi ké̤ṳk káung-kī kó̤) | |||
Tē 10 chōa: | Tē 10 chōa: | ||
"Z14K3": { |
"Z14K3": { |
||
"Z1K1": "Z16", |
"Z1K1": "Z16", |
||
"Z16K1": |
"Z16K1": "Z610", |
||
⚫ | |||
⚫ | |||
⚫ | |||
"Z16K2": "from unicodedata import normalize, combining\n\ndef Z12391(Z12391K1):\n decomposed = normalize(\"NFD\", Z12391K1)\n return \"\".join(char for char in decomposed if not combining(char))\n" |
"Z16K2": "from unicodedata import normalize, combining\n\ndef Z12391(Z12391K1):\n decomposed = normalize(\"NFD\", Z12391K1)\n return \"\".join(char for char in decomposed if not combining(char))\n" |
||
} |
} |
||
Tē 20 chōa: | Tē 17 chōa: | ||
"Z1K1": "Z12", |
"Z1K1": "Z12", |
||
"Z12K1": [ |
"Z12K1": [ |
||
"Z11" |
"Z11", |
||
{ |
|||
⚫ | |||
⚫ | |||
"Z11K2": "Remove diacritics (Python)" |
|||
⚫ | |||
] |
] |
||
}, |
}, |
2024-nî 5-goe̍h 22-ji̍t (pài-saⁿ) 16:15 muōi-muōi siŏh-huôi biĕng-cĭk
此頁面以沒有JavaScript的方式顯示