Xref: utzoo comp.windows.news:1982 comp.lang.postscript:4411 comp.fonts:1078 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!oliveb!orc!decwrl!amdcad!cdr From: cdr@amdcad.AMD.COM (Carl Rigney) Newsgroups: comp.windows.news,comp.lang.postscript,comp.fonts Subject: What order is the NeWS Kanji font in? Keywords: kanji, ordinals Message-ID: <29422@amdcad.AMD.COM> Date: 8 Mar 90 06:16:36 GMT Organization: Advanced Micro Devices, Inc., Sunnyvale, Ca. Lines: 41 I'm playing with the kanji browser written by Stan Switzer (sjs@ctt.bellcore.com) and I'm wondering what order the Kanji symbols in the NeWS font are in. In his 88/10/04 posting to NeWS-makers he notes that % It seems that Kanji is encoded by pairs of hyper-printable-ASCII % characters. If we were to give each Kanji char a number "n" % beginning at 0, then "n", in terms of the pair (a,b) is given by % n = 96*(a-160) + (b-160) % The -160 term comes from subtracting 128 for hyperASCII and 32 % for printable ASCII. There are many ways to get the same character % (when, for instance, b is not in the "normal" range of 160-255). % This analysis is based on trial and error and error and .... My question is: Is there any mapping from say, Nelson Index # to Ordinal value in the font? For example, Ko (self) is 1462 in Nelson, and 370 in Hadamitzky & Spahn. You can display it with /Kanji findfont 24 scalefont setfont 72 72 moveto (\270\312) show 96*(188-160) + (202-160) is 2730. What I'm wondering is, is there any mapping, or are the Kanji in the font in random order (that would be horrible!). Also, does anyone out there have any tools, programs, or code examples for working with Kanji under OpenWindows? I know about Kterm for X and am planning to work on that, but I know almost nothing about X and would much prefer a solution that uses NeWS. What would be ideal is a Kanji hyper-dictionary to help learn it (I'm just a beginner), but almost anything would be appreciated. Thank you in advance for any hints, leads or help you can provide. And if anyone's interested, I'll post a summary of what I find out to comp.windows.news. -- Carl Rigney cdr@amdcad.AMD.COM {ames att decwrl pyramid sun uunet}!amdcad!cdr 408-749-2453