summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/ptex-fontmaps/jis04cmap_exp/README
blob: e810ec4336934adb2cb6d4fa8a3d58d5a09717c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
========================================================================
An experiment for generating CMap-like "2004-{H,V}"
========================================================================
                                              2013.4.3 Hironori KITAGAWA



This is an experiment for generating CMap-like "2004-{H,V}",
which maps JIS X 0213:2004 8-bit code to Adobe-Japan1-6,
using the following information:
 * "Mapping table between JIS X 0213:2004 8-bit code and Unicode"
   http://x0213.org/codetable/jisx0213-2004-8bit-std.txt
 * UniJIS2004-UTF32-{H,V}: by Adobe
 * "fwid" feature table of Kozuka Mincho Pr6N R

Executing 
 $ texlua mk_jis_to_aj16_cid.lua
obtains two generated files, "2004-H" and "2004-V".

----------------
Notes

 * JIS X 0213:2004 has several characters which is not expressible 
   by one Unicode character. For them, we use another table (nonuni_cid).
 * Because we use JIS X 0213:2004 8-bit code, 
   plane 2 of JIS X 0213 is located on 0xA1A1--0xFEFE.
 * We prefer full-width variant glyphs, except for 0x2900--0x2B7E.

 * We didn't simply composite three tables which are described above,
   but did several fine adjustments by hand.
   See "replace(...)" lines in the script.

----------------
Files

 * mk_jis_to_aj16_cid.lua: main script
 * cmapdec.lua:            subroutine
 * jisx0213-2004-8bit-std.txt
          "Mapping table between JIS X 0213:2004 8-bit code and Unicode"

 * jis-h04-httk.{tex,pdf}: comparison between 2004-H and JISX0213-2004-H
 * jis-v04-vttk.{tex,pdf}: comparison between 2004-V and JISX0213-2004-V

 * 2004-{H,V}:             generated CMap-like files