From 120d0259be2e9796757572ea5b7e43ef5715402e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Feb 2025 15:48:02 +0100 Subject: Add some encodings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- maps/SYNTAX | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 maps/SYNTAX (limited to 'maps/SYNTAX') diff --git a/maps/SYNTAX b/maps/SYNTAX new file mode 100644 index 0000000..a3ad110 --- /dev/null +++ b/maps/SYNTAX @@ -0,0 +1,52 @@ +"include" + Include the contents of . + +"unmap" + Remove mapping for byte sequence range. + +"remap" "to" "U+" ["using" ] + Like "map", except assume all sequence is already defined + and redefine them instead. + +["readonly"] "map" "to" "U+" ["using" ] + Map a byte sequence range to a code point range. + If a sequence is already defined, fail. + (hexadecimal) shall be the code point for the + lowest valued sequence in + If multiple byte sequences, may be "big-endian" or "little-endian" + to specify the significance of the bytes in the sequence, alternative + value calculations can be specified in + If "readonly" is present, the mapping should only be used when decoding, + not when encoding. For each mapped code point, there must exist exactly + on mapping that is not "readonly". + + + + Single byte range. + [] (", " []) ... + A sequence of bytes, in storage order. + shall appear on all or no , and + shall appear if and only if was not used but at + least two s are valued (have multiple legal values). + + + + Single byte, not valued. + (["-"|"+"])... + The s should be ordered by mapping value. + The first is the lowest values byte in domain (valued 0). + "-" creates a range from the previous upto and include + the behind it + "+" creates a domain disjunction, skipping over the values + between, but excluding, the values between the s + on either side of it + + + "<<<" + set the relative significance of the byte, 0 is least significant. + + + + 0x + +\ may be used on the end of a line to replace the with a space. -- cgit v1.2.3-70-g09d2