Maintainer | me@lelf.lu |
---|---|
Safe Haskell | None |
This module provides the bindings to the transliteration features by the ICU (International Components for Unicode) library.
>>>
IO.putStrLn $ transliterate (trans "name-any; ru") "\\N{RABBIT FACE} Nu pogodi!"
🐰 Ну погоди!
>>>
IO.putStrLn $ transliterate (trans "nl-title") "gelderse ijssel"
Gelderse IJssel
>>>
IO.putStrLn $ transliterate (trans "ja") "Amsterdam"
アムステルダ
More information about the rules is here.
- data Transliterator
- trans :: Text -> Transliterator
- transliterate :: Transliterator -> Text -> Text
Documentation
trans :: Text -> TransliteratorSource
Construct new transliterator by name. Will throw an error if there is no such transliterator
transliterate :: Transliterator -> Text -> TextSource
Transliterate the text using the transliterator