mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-02 12:04:44 +00:00
tunidecode minor improvement (#16157)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
cmd: "nim $target --hints:on -d:embedUnidecodeTable $options $file"
|
||||
output: "Ausserst"
|
||||
"""
|
||||
|
||||
import unidecode
|
||||
@@ -9,5 +8,5 @@ import std/unidecode # #14112
|
||||
|
||||
loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
|
||||
|
||||
# assert unidecode("\x53\x17\x4E\xB0") == "Bei Jing"
|
||||
echo unidecode("Äußerst")
|
||||
doAssert unidecode("北京") == "Bei Jing "
|
||||
doAssert unidecode("Äußerst") == "Ausserst"
|
||||
|
||||
Reference in New Issue
Block a user