commit 62dd55d202094906b52d4de585c5fa9cb44b3da5 parent 0adb8f4d084225a5684707b63aa6560816bd69d9 Author: Martin Schanzenbach <schanzen@gnunet.org> Date: Fri, 20 May 2022 23:15:47 +0200 reorder Diffstat:
| M | draft-schanzen-gns.xml | | | 107 | ++++++++++++++++++++++++++++++++++++++++--------------------------------------- |
1 file changed, 54 insertions(+), 53 deletions(-)
diff --git a/draft-schanzen-gns.xml b/draft-schanzen-gns.xml @@ -3157,59 +3157,6 @@ Purpose | Name | References | Comment </references> <section> - <name>Base32GNS</name> - <t> - This table defines the encode symbol and decode symbol for a given - symbol value. - It can be used to implement the encoding by reading it as: - A character "A" or "a" is decoded to a 5 bit value 10 when decoding. - A 5 bit block with a value of 18 is encoded to the character "J" when encoding. - If the bit length of the byte string to encode is not a multiple of 5 - it is padded to the next multiple with zeroes. - In order to further increase tolerance for failures in character - recognition, the letter "U" <bcp14>MUST</bcp14> be decoded to the same value as the - letter "V" in Base32GNS. - </t> - <figure anchor="CrockfordB32Encode" title="The Base32GNS Alphabet Including the Additional U Encode Symbol."> - <artwork name="" type="" align="left" alt=""><![CDATA[ -Symbol Decode Encode -Value Symbol Symbol -0 0 O o 0 -1 1 I i L l 1 -2 2 2 -3 3 3 -4 4 4 -5 5 5 -6 6 6 -7 7 7 -8 8 8 -9 9 9 -10 A a A -11 B b B -12 C c C -13 D d D -14 E e E -15 F f F -16 G g G -17 H h H -18 J j J -19 K k K -20 M m M -21 N n N -22 P p P -23 Q q Q -24 R r R -25 S s S -26 T t T -27 V v U u V -28 W w W -29 X x X -30 Y y Y -31 Z z Z - ]]></artwork> - </figure> - </section> - <section> <name>Usage and Migration</name> <t> This section outlines a number of specific use cases which may @@ -3585,6 +3532,60 @@ Host: 000G0037FH3QTBCK15Y8BCCNRVWPV17ZC7TSGB1C9ZG2TPGHZVFV1GMG3W </section> <section> + <name>Base32GNS</name> + <t> + This table defines the encode symbol and decode symbol for a given + symbol value. + It can be used to implement the encoding by reading it as: + A character "A" or "a" is decoded to a 5 bit value 10 when decoding. + A 5 bit block with a value of 18 is encoded to the character "J" when encoding. + If the bit length of the byte string to encode is not a multiple of 5 + it is padded to the next multiple with zeroes. + In order to further increase tolerance for failures in character + recognition, the letter "U" <bcp14>MUST</bcp14> be decoded to the same value as the + letter "V" in Base32GNS. + </t> + <figure anchor="CrockfordB32Encode" title="The Base32GNS Alphabet Including the Additional U Encode Symbol."> + <artwork name="" type="" align="left" alt=""><![CDATA[ +Symbol Decode Encode +Value Symbol Symbol +0 0 O o 0 +1 1 I i L l 1 +2 2 2 +3 3 3 +4 4 4 +5 5 5 +6 6 6 +7 7 7 +8 8 8 +9 9 9 +10 A a A +11 B b B +12 C c C +13 D d D +14 E e E +15 F f F +16 G g G +17 H h H +18 J j J +19 K k K +20 M m M +21 N n N +22 P p P +23 Q q Q +24 R r R +25 S s S +26 T t T +27 V v U u V +28 W w W +29 X x X +30 Y y Y +31 Z z Z + ]]></artwork> + </figure> + </section> + + <section> <name>Test Vectors</name> <t> The following are test vectors for the Base32GNS encoding used for zTLDs.