OSDN Git Service

jfm-ujisv.lua も同様に変更
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 15 Jul 2017 22:21:57 +0000 (07:21 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Sat, 15 Jul 2017 22:21:57 +0000 (07:21 +0900)
src/jfm-ujisv.lua
test/test24-jfmv3.pdf
test/test24-jfmv3.tex

index ea7c9a9..a4b1333 100644 (file)
@@ -8,6 +8,7 @@
 
 
 local t = {
+   version = 3,
    dir = 'tate',
    zw = 1.0, zh = 1.0,
    kanjiskip =  { 0.0, 0.25, 0 },
@@ -259,7 +260,7 @@ local t = {
    },
 
    [99] = { -- box末尾
-      chars = {'boxbdd', 'parbdd'},
+      chars = {'boxbdd', 'parbdd', 'glue'},
    },
 
 }
@@ -271,5 +272,13 @@ for i=13274,13294 do ht[#ht+1] = 'AJ1-' .. tostring(i) end
 local ht = t[207].chars
 for i=13254,13273 do ht[#ht+1] = 'AJ1-' .. tostring(i) end
 
+t[100]=table.fastcopy(t[0])
+t[100].chars={'nox_alchar'}
+for i,v in pairs(t) do
+  if i~=6 and type(i)=='number' and type(v)=='table' then -- 感嘆符以外
+    if v.glue and v.glue[0] then v.glue[100] = v.glue[0] end
+    if v.kern and v.kern[0] then v.kern[100] = v.kern[0] end
+  end
+end
 
 luatexja.jfont.define_jfm(t)
index 9fc469e..b553520 100644 (file)
Binary files a/test/test24-jfmv3.pdf and b/test/test24-jfmv3.pdf differ
index d0c15e8..a38adcb 100644 (file)
@@ -1,23 +1,26 @@
 \input luatexja.sty
 
+\def\TEST#1{%
+\setbox0=\vbox {\hsize=6\zw\parindent=0pt
+#1
 \tentt
 
 あ!あ
 
 あ!a
 
\81\82!)
\81\84!)
 
 あ!(
 
 あ!)全角
 
\81\82!\kern0ptあ
\81\84!\kern0ptあ
 
 
 あ(あ
 
\81\82\kern0pt(あ
\81\84\kern0pt(あ
 
 あ・あ
 
 あ・)
 
 あ・a
+
+}\copy0}
+
+\TEST\yoko
+
+\medskip
+\TEST\tate
+\tracingonline1
+\showboxdepth10000
+\showboxbreadth10000
+\setbox0=\hbox{\tate い!\kern0ptあ}
+\showbox0
 \end