Latinizer v0.2.0 Latinizer.CharacterMap View Source
A module storing character mappings.
Link to this section Summary
Functions
Returns all of the character mappings as a single map
Returns a submap of the original character map containing only the specified characters’ mapping to their latin equivalents
Link to this section Functions
Returns all of the character mappings as a single map.
Examples
iex> Latinizer.CharacterMap.get_map |> Enum.take(5) |> Map.new
%{"Á" => "A", "Ć" => "C", "č" => "c", "ĸ" => "k", "ш" => "sh"}
iex> Latinizer.CharacterMap.get_map |> Map.size
265
Returns a submap of the original character map containing only the specified characters’ mapping to their latin equivalents.
Examples
iex> Latinizer.CharacterMap.get_map ["ł", "ó", "Ą"]
%{"ł" => "l", "ó" => "o", "Ą" => "A"}
iex> Latinizer.CharacterMap.get_map ["ф", "Ш", "ö", "ij", "ŋ"]
%{"ö" => "oe", "ij" => "ij", "ŋ" => "n", "Ш" => "SH", "ф" => "f"}