Raxol.Terminal.ANSI.CharacterSets.CharsetData (Raxol Terminal v2.6.0)

Copy Markdown View Source

Translation maps for all supported character sets.

Each map entry is {codepoint -> translated_codepoint}. Codepoints not present in the map pass through unchanged.

Summary

Functions

Translates a codepoint using the named charset map.

Functions

translate(codepoint, charset)

@spec translate(non_neg_integer(), atom()) :: non_neg_integer()

Translates a codepoint using the named charset map.

Returns the translated codepoint, or the original if no mapping exists. Charsets :us_ascii and :us are identity mappings (no translation).