• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: コミット

ソースコードの管理場所


コミットメタ情報

リビジョン26261cf9d58c85520de733cb753dc87478aaca2c (tree)
日時2020-04-24 18:07:30
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

jfm-ujis.lua: add new character classes for (two- or three-) em-dashes

変更サマリ

差分

--- a/src/jfm-ujis.lua
+++ b/src/jfm-ujis.lua
@@ -47,6 +47,9 @@ local t = {
4747 [4] = { 0, 0, 0, kanjiskip_shrink=1 },
4848 [5] = { 0, 0, 0, kanjiskip_shrink=1 },
4949 [105] = { 0, 0, 0, kanjiskip_shrink=1 },
50+ [205] = { 0, 0, 0, kanjiskip_shrink=1 },
51+ [305] = { 0, 0, 0, kanjiskip_shrink=1 },
52+ [405] = { 0, 0, 0, kanjiskip_shrink=1 },
5053 [6] = { 0, 0, 0, kanjiskip_shrink=1 },
5154 [007] = { 0, 0, 0, kanjiskip_shrink=1 },
5255 [107] = { 0, 0, 0, kanjiskip_shrink=1 },
@@ -71,6 +74,9 @@ local t = {
7174 [4] = { 0, 0, 0, kanjiskip_shrink=1 },
7275 [5] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
7376 [105] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
77+ [205] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
78+ [305] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
79+ [405] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
7480 [6] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
7581 [007] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
7682 [107] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
@@ -93,6 +99,9 @@ local t = {
9399 [4] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
94100 [5] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
95101 [105] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
102+ [205] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
103+ [305] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
104+ [405] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
96105 [6] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
97106 [007] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
98107 [107] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
@@ -112,6 +121,9 @@ local t = {
112121 [3] = { 0.75, 0.0, 0.25, priority=1, ratio=1./3, kanjiskip_stretch=1 },
113122 [5] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
114123 [105] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
124+ [205] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
125+ [305] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
126+ [405] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
115127 [6] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
116128 [007] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
117129 [107] = { 0.5 , 0.0, 0.5, ratio=0, kanjiskip_stretch=1 },
@@ -121,7 +133,7 @@ local t = {
121133 },
122134
123135 [5] = { -- 分離禁止文字
124- chars = { '—', '―', '‥', '…', '〳', '〴', '〵', },
136+ chars = { '―', '‥', '…', '〳', '〴', '〵', },
125137 align = 'left', left = 0.0, down = 0.0,
126138 width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
127139 glue = {
@@ -132,8 +144,7 @@ local t = {
132144 [6] = { 0, 0, 0, kanjiskip_shrink=1 },
133145 },
134146 kern = {
135- [5] = 0.0,
136- [105] = 0.0
147+ [5] = 0.0, [105] = 0.0, [205] = 0.0, [305] = 0.0, [405] = 0.0,
137148 }
138149 },
139150
@@ -149,8 +160,53 @@ local t = {
149160 [6] = { 0, 0, 0, kanjiskip_shrink=1 },
150161 },
151162 kern = {
152- [5] = 0.0,
153- [105] = 0.0
163+ [5] = 0.0, [105] = 0.0, [205] = 0.0, [305] = 0.0, [405] = 0.0,
164+ }
165+ },
166+
167+ [205] = { -- em-dash
168+ chars = { 0x2014 },
169+ align = 'middle', left = 0.0, down = 0.0,
170+ width = 1, height = 0.88, depth = 0.12, italic=0.0,
171+ glue = {
172+ [1] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
173+ [2] = { 0, 0, 0, kanjiskip_shrink=1 },
174+ [3] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
175+ [4] = { 0, 0, 0, kanjiskip_shrink=1 },
176+ [6] = { 0, 0, 0, kanjiskip_shrink=1 },
177+ },
178+ kern = {
179+ [5] = 0.0, [105] = 0.0, [205] = 0.0, [305] = 0.0, [405] = 0.0,
180+ }
181+ },
182+ [305] = { -- two-em dash
183+ chars = { 0x2E3A },
184+ align = 'middle', left = 0.0, down = 0.0,
185+ width = 2, height = 0.88, depth = 0.12, italic=0.0,
186+ glue = {
187+ [1] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
188+ [2] = { 0, 0, 0, kanjiskip_shrink=1 },
189+ [3] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
190+ [4] = { 0, 0, 0, kanjiskip_shrink=1 },
191+ [6] = { 0, 0, 0, kanjiskip_shrink=1 },
192+ },
193+ kern = {
194+ [5] = 0.0, [105] = 0.0, [205] = 0.0, [305] = 0.0, [405] = 0.0,
195+ }
196+ },
197+ [405] = { -- two-em dash
198+ chars = { 0x2E3B },
199+ align = 'middle', left = 0.0, down = 0.0,
200+ width = 3, height = 0.88, depth = 0.12, italic=0.0,
201+ glue = {
202+ [1] = { 0.5 , 0.0, 0.5, ratio=1, kanjiskip_stretch=1 },
203+ [2] = { 0, 0, 0, kanjiskip_shrink=1 },
204+ [3] = { 0.25, 0.0, 0.25, priority=1, ratio=1 },
205+ [4] = { 0, 0, 0, kanjiskip_shrink=1 },
206+ [6] = { 0, 0, 0, kanjiskip_shrink=1 },
207+ },
208+ kern = {
209+ [5] = 0.0, [105] = 0.0, [205] = 0.0, [305] = 0.0, [405] = 0.0,
154210 }
155211 },
156212
@@ -171,8 +227,7 @@ local t = {
171227 [8] = { 0, 0, 0, kanjiskip_shrink=1 },
172228 },
173229 kern = {
174- [5] = 0.0,
175- [105] = 0.0
230+ [5] = 0.0, [105] = 0.0, [205] = 0.0, [305] = 0.0, [405] = 0.0,
176231 }
177232 },
178233
旧リポジトリブラウザで表示