Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

from Row-Cell Notation to EUC or ISO-2022 Encoding



>>>>> "Ulrike" == Ulrike Schmidt <ulrike@example.com> writes:

    Ulrike> Is it possible to calculate the EUC or JIS code from these
    Ulrike> codes?

The JIS code (in decimal) is ROW + 32, CELL + 32, with row first.
The EUC code is ROW + 160, CELL + 160.

Then convert to hexadecimal.  Alternatively, convert ROW and CELL to
hexadecimal, and

JIS high = xROW + \x20, JIS low = xCELL + \x20
EUC high = JIS high | \x80, EUC low = JIS low | \x80.

There was a whole chapter on this in CJKV's predecessor UJIP; I would
imagine it's there somewhere.  But it's very simple.

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
_________________  _________________  _________________  _________________
What are those straight lines for?  "XEmacs rules."


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links