OSDN Git Service

remove trailing spaces
[luatex-ja/luatexja.git] / src / jfm-jis.lua
1 -- -*- coding: utf-8 -*-
2 -- jfm-jis.lua: JISフォントメトリック互換
3 -- Besed on ujis.tfm (a counterpart of jis.tfm for upTeX).
4 -- * Do not confuse with jfm-ujis.lua.
5
6 local vscale = 0.916443 / 0.962216
7 local vht = 0.777588 / 0.962216
8 local vdp = 0.138855 / 0.962216
9 luatexja.jfont.define_jfm {
10    dir = 'yoko',
11    zw = 1.0, zh = vscale,
12
13    [0] = {
14       align = 'left', left = 0.0, down = 0.0,
15       width = 1.0, height = vht, depth = vdp, italic=0.0,
16       glue = {
17          [1] = { 0.5 , 0.0, 0.5  },
18          [3] = { 0.25, 0.0, 0.25 }
19       }
20    },
21
22    [1] = { -- 開き括弧類
23       chars = {
24          '‘', '“', '〈', '《', '「', '『', '【', '〔', '〖',
25          '〘', '〝', '(', '[', '{', '⦅'
26       },
27       align = 'right', left = 0.0, down = 0.0,
28       width = 0.5, height = vht, depth = vdp, italic=0.0,
29       glue = {
30          [3] = { 0.25, 0.0, 0.25 }
31       }
32    },
33
34    [2] = { -- 閉じ括弧類
35       chars = {
36          '’', '”', '、', '〉', '》', '」', '』', '】', '〕',
37          '〗', '〙', '〟', ')', ',', ']', '}', '⦆'
38       },
39       align = 'left', left = 0.0, down = 0.0,
40       width = 0.5, height = vht, depth = vdp, italic=0.0,
41       glue = {
42          [0] = { 0.5 , 0.0, 0.5  },
43          [1] = { 0.5 , 0.0, 0.5  },
44          [3] = { 0.25, 0.0, 0.25 },
45          [5] = { 0.5 , 0.0, 0.5  },
46       }
47    },
48
49    [3] = { -- 中点類
50       chars = {'・', ':', ';'},
51       align = 'middle', left = 0.0, down = 0.0,
52       width = 0.5, height = vht, depth = vdp, italic=0.0,
53       glue = {
54          [0] = { 0.25, 0.0, 0.25 },
55          [1] = { 0.25, 0.0, 0.25 },
56          [2] = { 0.25, 0.0, 0.25 },
57          [3] = { 0.5 , 0.0, 0.5  },
58          [4] = { 0.25, 0.0, 0.25 },
59          [5] = { 0.25, 0.0, 0.25 },
60       }
61    },
62
63    [4] = { -- 句点類
64       chars = {'。', '.'},
65       align = 'left', left = 0.0, down = 0.0,
66       width = 0.5, height = vht, depth = vdp, italic=0.0,
67       glue = {
68          [0] = { 0.5 , 0.0, 0.0  },
69          [1] = { 0.5 , 0.0, 0.0  },
70          [3] = { 0.75, 0.0, 0.25 },
71          [5] = { 0.5 , 0.0, 0.0  },
72       }
73    },
74
75    [5] = { -- ダッシュ
76       chars = { '―', '‥', '…' },
77       align = 'left', left = 0.0, down = 0.0,
78       width = 1.0, height = vht, depth = vdp, italic=0.0,
79       glue = {
80          [1] = { 0.5 , 0.0, 0.5  },
81          [3] = { 0.25, 0.0, 0.25 }
82       },
83       kern = {
84          [5] = 0.0
85       }
86    },
87
88    [99] = { -- box末尾
89       chars = {'boxbdd', 'parbdd'},
90    },
91
92 }