man utf8trans (Commandes) - Transliterate UTF-8 characters according to a table
NAME
utf8trans - Transliterate UTF-8 characters according to a table
SYNOPSIS
utf8trans {charmap} [file]...
DESCRIPTION
utf8trans transliterates characters in the specified files (or standard input, if they are not specified) and writes the output to standard output. All input and output is in the UTF-8 encoding.
This program is usually used to render characters in Unicode text files as some markup escapes or ASCII transliterations.
USAGE
The translation is done according to the rules in the character map, named in the file charmap. It has the following format:
- 1.
- Each line represents a translation entry, except for blank lines and comment lines, which are ignored.
- 2.
- Any amount of whitespace (space or tab) may precede the start of an entry.
- 3.
- Comment lines begin with #. Everything on the same line is ignored.
- 4.
- Each entry consists of the Unicode codepoint of the character to translate, in hexadecimal, followed one space or tab, followed by the translation string, up to the end of the line.
- 5.
- The translation string is taken literally, including any leading and trailing spaces (except the delimeter between the codepoint and the translation string), and all types of characters. The newline at the end is not included.
The above format is intended to be restrictive, to keep utf8trans simple. It is not intended for general charset conversions.