diff options
Diffstat (limited to 'draft-schanzen-gns.xml')
-rw-r--r-- | draft-schanzen-gns.xml | 102 |
1 files changed, 58 insertions, 44 deletions
diff --git a/draft-schanzen-gns.xml b/draft-schanzen-gns.xml index 9813cb2..e9429d3 100644 --- a/draft-schanzen-gns.xml +++ b/draft-schanzen-gns.xml | |||
@@ -452,56 +452,16 @@ | |||
452 | namespace in the process of name resolution. | 452 | namespace in the process of name resolution. |
453 | To encode the zone key, a zone key label zkl is derived from a | 453 | To encode the zone key, a zone key label zkl is derived from a |
454 | concatenation of the zone type and zone key (see <xref target="figure_zid"/>). | 454 | concatenation of the zone type and zone key (see <xref target="figure_zid"/>). |
455 | The result is encoded using a variation of the Crockford Base32 encoding <xref target="CrockfordB32"/>. | 455 | The result is encoded using a variation of the Crockford Base32 encoding <xref target="CrockfordB32"/> |
456 | called Base32GNS. | ||
456 | In order to further increase tolerance for failures in character | 457 | In order to further increase tolerance for failures in character |
457 | recognition, the letter "U" MUST be decoded to the same Base32 value as the | 458 | recognition, the letter "U" MUST be decoded to the same Base32 value as the |
458 | letter "V". | 459 | letter "V" in Base32GNS. |
459 | The encoding and decoding symbols for Crockford Base32 including this modification are defined in | 460 | The encoding and decoding symbols for Base32GNS including this modification are defined in |
460 | <xref target="CrockfordB32Encode"/>. | 461 | <xref target="CrockfordB32Encode"/>. |
461 | The functions for encoding and decoding based on this table are called | 462 | The functions for encoding and decoding based on this table are called |
462 | Base32GNS-Encode and Base32GNS-Decode, respectively. | 463 | Base32GNS-Encode and Base32GNS-Decode, respectively. |
463 | </t> | 464 | </t> |
464 | <figure anchor="CrockfordB32Encode"> | ||
465 | <artwork name="" type="" align="left" alt=""><![CDATA[ | ||
466 | Symbol Decode Encode | ||
467 | Value Symbol Symbol | ||
468 | 0 0 O o 0 | ||
469 | 1 1 I i L l 1 | ||
470 | 2 2 2 | ||
471 | 3 3 3 | ||
472 | 4 4 4 | ||
473 | 5 5 5 | ||
474 | 6 6 6 | ||
475 | 7 7 7 | ||
476 | 8 8 8 | ||
477 | 9 9 9 | ||
478 | 10 A a A | ||
479 | 11 B b B | ||
480 | 12 C c C | ||
481 | 13 D d D | ||
482 | 14 E e E | ||
483 | 15 F f F | ||
484 | 16 G g G | ||
485 | 17 H h H | ||
486 | 18 J j J | ||
487 | 19 K k K | ||
488 | 20 M m M | ||
489 | 21 N n N | ||
490 | 22 P p P | ||
491 | 23 Q q Q | ||
492 | 24 R r R | ||
493 | 25 S s S | ||
494 | 26 T t T | ||
495 | 27 V v U u V | ||
496 | 28 W w W | ||
497 | 29 X x X | ||
498 | 30 Y y Y | ||
499 | 31 Z z Z | ||
500 | ]]></artwork> | ||
501 | </figure> | ||
502 | <t> | ||
503 | The Base32GNS Alphabet Including the Additional U Encode Symbol. | ||
504 | </t> | ||
505 | <t> | 465 | <t> |
506 | For the string representation of a zTLD we define: | 466 | For the string representation of a zTLD we define: |
507 | </t> | 467 | </t> |
@@ -2945,6 +2905,60 @@ Purpose | Name | References | Comment | |||
2945 | 2905 | ||
2946 | </references> | 2906 | </references> |
2947 | <section> | 2907 | <section> |
2908 | <name>Base32GNS</name> | ||
2909 | <t> | ||
2910 | This table defines the encode symbol and decode symbol for a given | ||
2911 | symbol value. | ||
2912 | It can be used to implement the encoding by reading it as: | ||
2913 | A character "A" or "a" it is decoded to the value 10 when decoding. | ||
2914 | A 5 bit block with a value of 18 is encoded to the character "J" when encoding. | ||
2915 | If the bit length of the byte string to encode is not a multiple of 5 | ||
2916 | it is padded to the next multiple with zeros. | ||
2917 | </t> | ||
2918 | <figure anchor="CrockfordB32Encode"> | ||
2919 | <artwork name="" type="" align="left" alt=""><![CDATA[ | ||
2920 | Symbol Decode Encode | ||
2921 | Value Symbol Symbol | ||
2922 | 0 0 O o 0 | ||
2923 | 1 1 I i L l 1 | ||
2924 | 2 2 2 | ||
2925 | 3 3 3 | ||
2926 | 4 4 4 | ||
2927 | 5 5 5 | ||
2928 | 6 6 6 | ||
2929 | 7 7 7 | ||
2930 | 8 8 8 | ||
2931 | 9 9 9 | ||
2932 | 10 A a A | ||
2933 | 11 B b B | ||
2934 | 12 C c C | ||
2935 | 13 D d D | ||
2936 | 14 E e E | ||
2937 | 15 F f F | ||
2938 | 16 G g G | ||
2939 | 17 H h H | ||
2940 | 18 J j J | ||
2941 | 19 K k K | ||
2942 | 20 M m M | ||
2943 | 21 N n N | ||
2944 | 22 P p P | ||
2945 | 23 Q q Q | ||
2946 | 24 R r R | ||
2947 | 25 S s S | ||
2948 | 26 T t T | ||
2949 | 27 V v U u V | ||
2950 | 28 W w W | ||
2951 | 29 X x X | ||
2952 | 30 Y y Y | ||
2953 | 31 Z z Z | ||
2954 | ]]></artwork> | ||
2955 | </figure> | ||
2956 | <t> | ||
2957 | The Base32GNS Alphabet Including the Additional U Encode Symbol. | ||
2958 | </t> | ||
2959 | |||
2960 | </section> | ||
2961 | <section> | ||
2948 | <name>Test Vectors</name> | 2962 | <name>Test Vectors</name> |
2949 | <t> | 2963 | <t> |
2950 | The following are test vectors for the Base32 variation of a | 2964 | The following are test vectors for the Base32 variation of a |