Re: RE: UTF to unicode conversion

From: Philippe VERDY (verdy_p@wanadoo.fr)
Date: Wed Jun 30 2004 - 09:00:38 CDT

  • Next message: Marco Cimarosti: "RE: UTF to unicode conversion"

    "Mike Ayers" wrote to "johncy inbaraj" , unicode@unicode.org
    > Here's my favorite, gleaned from the archives, courtesy of Marco Cimarosti. It doesn't have instructions for working backwards, but once you figure out how to work forwards, reversing the operation is pretty straightforward. Make sure to use a nonproportional font so everything lines up.
    > Who said that Unicode is high-tech?
    > Here is a device to generate UTF-8 that employs traditional tools such as ASCII art, paper, scissors, glue, brain.
    >
    > Side 1 (print and cut out):
    > +------------+-------+-----------------------+------+
    > | U+0000 | yy zz | Cima's UTF-8 Magic | Hex= |
    > | U+007F | ! ! | Pocket Encoder | B-4 |
    > | YZ | . . | | |
    > +------------+-------+-------+ Vers. 1.0 | 0=00 |
    > | U+0080 | 3x xy | 2y zz | 16 March 2000 | 1=01 |
    > | U+07FF | 3. .. | 2. ! | | 2=02 |
    > | XYZ | . . | . . | M.C. | 3=03 |
    > +------------+-------+-------+-------+ | 4=10 |
    > | U+0800 | 32 ww | 2x xy | 2y zz | | 5=11 |
    > | U+FFFF | ! ! | 2. .. | 2. ! | | 6=12 |
    > | WXYZ | E . | . . | . . | | 7=13 |
    > +------------+-------+-------+-------+-------+ 8=20 |
    > | U-00010000 | 33 0v | 2v ww | 2x xy | 2y zz | 9=21 |
    > | U-000FFFFF | ! 0. | 2. ! | 2. .. | 2. ! | A=22 |
    > | VWXYZ | F . | . . | . . | . . | B=23 |
    > +------------+-------+-------+-------+-------+ C=30 |
    > | U-00100000 | 33 1v | 2v ww | 2x xy | 2y zz | D=31 |
    > | U-0010FFFF | ! 1. | 2. ! | 2. .. | 2. ! | E=32 |
    > | VWXYZ | F . | . . | . . | . . | F=33 |
    > +------------+-------+-------+-------+-------+------+

    Change the last row like this:
    +------------+-------+-------+-------+-------+ C=30 |
    | U-00100000 | 33 10 | 20 ww | 2x xy | 2y zz | D=31 |
    | U-0010FFFF | ! ! | ! ! | 2. .. | 2. ! | E=32 |
    | WXYZ | F 4 | 8 . | . . | . . | F=33 |
    +------------+-------+-------+-------+-------+------+
    (because the value of V is fixed to zero)

    This idea through base 4 is nice... ;-)
    Thanks...



    This archive was generated by hypermail 2.1.5 : Wed Jun 30 2004 - 09:02:46 CDT