tunidecode.nim 304 B

1234567891011121314
  1. discard """
  2. cmd: "nim $target --hints:on -d:embedUnidecodeTable $options $file"
  3. """
  4. import unidecode
  5. import std/unidecode # #14112
  6. import std/assertions
  7. loadUnidecodeTable("lib/pure/unidecode/unidecode.dat")
  8. doAssert unidecode("北京") == "Bei Jing "
  9. doAssert unidecode("Äußerst") == "Ausserst"