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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
|
-- -*- coding: utf-8 -*-
-- jfm-ujis.lua: LuaTeX-ja 標準 JFM
-- based on upnmlminr-h.tfm (a metric in UTF/OTF package used by upTeX).
-- JIS X 4051:2004 では,行末の句読点や中点はベタなのでそれに従う
-- kanjiskip: 0pt plus .25zw minus 0pt
-- xkanjiskip: .25zw plus .25zw (or .0833zw) minus .125zw
luatexja.jfont.define_jfm {
dir = 'yoko',
zw = 1.0, zh = 1.0,
kanjiskip = { 0.0, 0.25, 0 },
xkanjiskip = { 0.25, 0.25, .125 },
[0] = {
align = 'left', left = 0.0, down = 0.0,
width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
glue = {
[1] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
[2] = { 0, 0, 0, kanjiskip_shrink=1 },
[3] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[4] = { 0, 0, 0, kanjiskip_shrink=1 },
[6] = { 0, 0, 0, kanjiskip_shrink=1 },
[7] = { 0, 0, 0, kanjiskip_shrink=1 },
[8] = { 0, 0, 0, kanjiskip_shrink=1 },
}
},
[1] = { -- 開き括弧類
chars = {
'‘', '“', '〈', '《', '「', '『', '【', '〔', '〖',
'〘', '〝', '(', '[', '{', '⦅'
},
align = 'right', left = 0.0, down = 0.0,
width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
glue = {
-- 3 のみ四分,あとは0
[0] = { 0, 0, 0, kanjiskip_shrink=1 },
[1] = { 0, 0, 0, kanjiskip_shrink=1 },
[2] = { 0, 0, 0, kanjiskip_shrink=1, kanjiskip_stretch=1 },
[3] = { 0.25, 0.0, 0.25, priority=1 },
[4] = { 0, 0, 0, kanjiskip_shrink=1 },
[5] = { 0, 0, 0, kanjiskip_shrink=1 },
[6] = { 0, 0, 0, kanjiskip_shrink=1 },
[7] = { 0, 0, 0, kanjiskip_shrink=1 },
[8] = { 0, 0, 0, kanjiskip_shrink=1 },
}
},
[2] = { -- 閉じ括弧類
chars = {
'’', '”', '〉', '》', '」', '』', '】', '〕',
'〗', '〙', '〟', ')', ']', '}', '⦆', '、', ',*'
},
align = 'left', left = 0.0, down = 0.0,
width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
glue = {
-- 3 は四分, 2, 4, 9 は0, あとは0.5
[0] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[1] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[2] = { 0, 0, 0, kanjiskip_shrink=1},
[3] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[4] = { 0, 0, 0, kanjiskip_shrink=1 },
[5] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[6] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[7] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[8] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
}
},
[3] = { -- 中点類
chars = {'・', ':', ';'},
align = 'middle', left = 0.0, down = 0.0,
width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
--end_stretch = 0.25,
glue = {
-- 3 のみ 0.5,あとは0.25
[0] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[1] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[2] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[3] = { 0.5 , 0.0, 0.5 , priority=1 },
[4] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[5] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[6] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[7] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[8] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
}
},
[4] = { -- 句点類
chars = {'。', '.'},
align = 'left', left = 0.0, down = 0.0,
width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
glue = {
-- 3 は.75, 2, 4 は0, あとは0.5
[0] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[1] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[3] = { 0.75, 0.0, 0.25, priority=1, ratio=1./3, kanjiskip_stretch=1 },
[5] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[6] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[7] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
[8] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
}
},
[5] = { -- ダッシュ
chars = { '—', '―', '‥', '…', '〳', '〴', '〵', },
align = 'left', left = 0.0, down = 0.0,
width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
glue = {
[1] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
[2] = { 0, 0, 0, kanjiskip_shrink=1 },
[3] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[4] = { 0, 0, 0, kanjiskip_shrink=1 },
[6] = { 0, 0, 0, kanjiskip_shrink=1 },
},
kern = {
[5] = 0.0
}
},
[6] = { -- 感嘆符・疑問符
chars = { '?', '!', '‼', '⁇', '⁈', '⁉', },
align = 'left', left = 0.0, down = 0.0,
width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
glue = {
[0] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
[1] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
[2] = { 0, 0, 0, kanjiskip_shrink=1 },
[3] = { 0.75, 0.0, 0.25, priority=1, ratio=1 },
[4] = { 0, 0, 0, kanjiskip_shrink=1 },
[6] = { 0, 0, 0, kanjiskip_shrink=1 },
[7] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
[8] = { 0, 0, 0, kanjiskip_shrink=1 },
},
kern = {
[5] = 0.0
}
},
[7] = { -- 半角カナ
chars = {
'。', '「', '」', '、', '・', 'ヲ', 'ァ', 'ィ', 'ゥ',
'ェ', 'ォ', 'ャ', 'ュ', 'ョ', 'ッ', 'ー', 'ア', 'イ',
'ウ', 'エ', 'オ', 'カ', 'キ', 'ク', 'ケ', 'コ', 'サ',
'シ', 'ス', 'セ', 'ソ', 'タ', 'チ', 'ツ', 'テ', 'ト',
'ナ', 'ニ', 'ヌ', 'ネ', 'ノ', 'ハ', 'ヒ', 'フ', 'ヘ',
'ホ', 'マ', 'ミ', 'ム', 'メ', 'モ', 'ヤ', 'ユ', 'ヨ',
'ラ', 'リ', 'ル', 'レ', 'ロ', 'ワ', 'ン', '゙', '゚',
"AJ1-516", "AJ1-517", "AJ1-518", "AJ1-519", "AJ1-520", "AJ1-521", "AJ1-522",
"AJ1-523", "AJ1-524", "AJ1-525", "AJ1-526", "AJ1-527", "AJ1-528", "AJ1-529",
"AJ1-530", "AJ1-531", "AJ1-532", "AJ1-533", "AJ1-534", "AJ1-535", "AJ1-536",
"AJ1-537", "AJ1-538", "AJ1-539", "AJ1-540", "AJ1-541", "AJ1-542", "AJ1-543",
"AJ1-544", "AJ1-545", "AJ1-546", "AJ1-547", "AJ1-548", "AJ1-549", "AJ1-550",
"AJ1-551", "AJ1-552", "AJ1-553", "AJ1-554", "AJ1-555", "AJ1-556", "AJ1-557",
"AJ1-558", "AJ1-559", "AJ1-560", "AJ1-561", "AJ1-562", "AJ1-563", "AJ1-564",
"AJ1-565", "AJ1-566", "AJ1-567", "AJ1-568", "AJ1-569", "AJ1-570", "AJ1-571",
"AJ1-572", "AJ1-573", "AJ1-574", "AJ1-575", "AJ1-576", "AJ1-577", "AJ1-578",
"AJ1-579", "AJ1-580", "AJ1-581", "AJ1-582", "AJ1-583", "AJ1-584", "AJ1-585",
"AJ1-586", "AJ1-587", "AJ1-588", "AJ1-589", "AJ1-590", "AJ1-591", "AJ1-592",
"AJ1-593", "AJ1-594", "AJ1-595", "AJ1-596", "AJ1-597", "AJ1-598",
},
align = 'left', left = 0.0, down = 0.0,
width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
glue = {
[1] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
[2] = { 0, 0, 0, kanjiskip_shrink=1 },
[3] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[4] = { 0, 0, 0, kanjiskip_shrink=1 },
[6] = { 0, 0, 0, kanjiskip_shrink=1 },
[7] = { 0, 0, 0, kanjiskip_shrink=1 },
[8] = { 0, 0, 0, kanjiskip_shrink=1 },
}
},
[8] = { -- 罫線類.
chars = {
'─', '━', '│', '┃', '┄', '┅', '┆', '┇',
'┈', '┉', '┊', '┋', '┌', '┍', '┎', '┏',
'┐', '┑', '┒', '┓', '└', '┕', '┖', '┗',
'┘', '┙', '┚', '┛', '├', '┝', '┞', '┟',
'┠', '┡', '┢', '┣', '┤', '┥', '┦', '┧',
'┨', '┩', '┪', '┫', '┬', '┭', '┮', '┯',
'┰', '┱', '┲', '┳', '┴', '┵', '┶', '┷',
'┸', '┹', '┺', '┻', '┼', '┽', '┾', '┿',
'╀', '╁', '╂', '╃', '╄', '╅', '╆', '╇',
'╈', '╉', '╊', '╋', '╌', '╍', '╎', '╏',
'═', '║', '╒', '╓', '╔', '╕', '╖', '╗',
'╘', '╙', '╚', '╛', '╜', '╝', '╞', '╟',
'╠', '╡', '╢', '╣', '╤', '╥', '╦', '╧',
'╨', '╩', '╪', '╫', '╬', '╭', '╮', '╯',
'╰', '╱', '╲', '╳', '╴', '╵', '╶', '╷',
'╸', '╹', '╺', '╻', '╼', '╽', '╾', '╿',
},
align = 'left', left = 0.0, down = 0.0,
width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
glue = {
[1] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
[2] = { 0, 0, 0, kanjiskip_shrink=1 },
[3] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
[4] = { 0, 0, 0, kanjiskip_shrink=1 },
[6] = { 0, 0, 0, kanjiskip_shrink=1 },
},
kern = {
[8] = 0.0
}
},
[99] = { -- box末尾
chars = {'boxbdd', 'parbdd'},
glue = {
[3] = { 0.25, 0.0, 0.25, priority=1 },
}
},
}
|