summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/luatexja/doc/jfm-test.lua
blob: fdee46c356e12764a1aafa0b62c7f37e94b3fb52 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
luatexja.jfont.define_jfm {
   dir = 'yoko',
   zw = 1.0, zh = 1.0,
   kanjiskip = { 0.1, 0.04, 0.05 },
   xkanjiskip = { 0.31, 0.045, 0.057 },

   [0] = {
      chars = { '漢', 'ヒ*' }, 
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
   },
   [1] = {
      chars = { 'あ' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
      glue = { [3] = { 1.41, 0, 0}, [399] = {1.25, 0.43, 0.87} },
      kern = { [8] = -1.41 , [2] = 2.0, [99] = 1.21 }
   },
   [11] = {
      chars = { 'い' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
      glue = { [3] = { 1.41, 0, 0} },
      kern = { [2] = 2.0, }
   },
   [21] = {
      chars = { 'う' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
      glue = { [3] = { 1.41, 0, 0}, [99] ={ 1.73, 0, 0}  },
      kern = { [8] = -1.41 , [2] = 2.0, }
   },
   [31] = {
      chars = { 'え' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
      glue = { [3] = { 1.41, 0, 0} },
      kern = { [2] = 2.0, [99] = 1.73}
   },
   [41] = {
      chars = { 'お' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
      kern = { [8] = -1.41 , [2] = 2.0}
   },
   [51] = {
      chars = { 'か' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
      kern = { [199] = 0.85 },
   },

   [2] = {
      chars = { 'ア' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0
   },
   [3] = {
      chars = { 'ウ' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0
   },
   [4] = {
      chars = { 'エ' },
      align = 'left', left = 0.0, down = 0.0,
      width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
      glue = { [199] = { 0.78, 0, 0} },
   },
   [2000] = {
      chars = { '。', '、*', 'ヒ' },
      align = 'left', left = 0.0, down = 0.0,
      width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
   },
   [100] = {
      chars = { '「' },
      align = 'right', left = 0.0, down = 0.0,
      width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
   },
   [101] = {
      chars = { '【' },
      align = 'right', left = 0.0, down = 0.0,
      width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
   },
   [102] = {
      chars = { '〔' },
      align = 'right', left = 0.0, down = 0.0,
      width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
   },
   [99] = {
      chars = { 'jcharbdd' },
      glue = { [11] = { 1.41, 0, 0} },
      kern = { [21] = 2.0, }
   },
   [199] = {
      chars = { 'boxbdd' },
      glue = { [51] = { 1.03, 0, 0} , [1] = { 0.94, 0.23, 0.45 }},
   },
   [299] = {
      chars = { 'parbdd' },
      glue = { [51] = { 0.68, 0.02, 0.04} },
      kern = { [100] = -0.5, [102] = 0.5 }
   },
   [399] = {
      chars = { -1 }, -- math
      glue = { [0] = { 0.68, 0.02, 0.04} },
   },
   [8] = {
      chars = { 'lineend' },
   }
}