Raxol.Terminal.ANSI.CharacterTranslations (Raxol v0.2.0)

View Source

Provides character translation tables for different character sets. Maps characters between different character sets according to ANSI standards.

Summary

Functions

Translates a character from the source character set to the target character set. Returns the translated character or the original if no translation exists.

Translates a string from the source character set to the target character set.

Map of Unicode codepoints to their ANSI terminal equivalents.

Functions

translate_char(char, charset)

@spec translate_char(char(), :us_ascii | :uk | :french | :german | :latin1) :: char()

Translates a character from the source character set to the target character set. Returns the translated character or the original if no translation exists.

translate_string(string, charset)

@spec translate_string(
  String.t(),
  :us_ascii | :uk | :french | :german | :latin1
) :: String.t()

Translates a string from the source character set to the target character set.

unicode_to_ansi()

Map of Unicode codepoints to their ANSI terminal equivalents.