text-icu-translit-0.1.0.7: ICU transliteration

Maintainerme@lelf.lu
Safe HaskellNone

Data.Text.ICU.Translit

Description

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.

Synopsis

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