Unidecode.Decoder (unidecode v1.0.0) View Source

This module takes care of transliterate a single grapheme. It's only documented so you can use a better strategy to transliterate larger texts.

Link to this section Summary

Functions

Returns the transliteration of a single grapheme.

Link to this section Functions

Specs

decode(String.t()) :: String.t()

Returns the transliteration of a single grapheme.

Examples

iex> Unidecode.Decoder.decode("⠋")
"f"
iex> Unidecode.Decoder.decode("ニ")
"ni"
iex> Unidecode.Decoder.decode("Р")
"R"
iex> Unidecode.Decoder.decode("ç")
"c"