[8] = { 0, 0, 0, kanjiskip_shrink=1 },
},
kern = { [307] = 0 },
+ round_threshold = 0.01,
},
[1] = { -- 開き括弧類
pwidth, ascender = feir.vheight[pc]*met.size, feir.vorigin[pc]*met.size
end
fwidth = fwidth or pwidth
+ if fwidth~=pwidth and char_data.round_threshold then
+ local frac = abs(pwidth / fwidth);
+ local quot = floor(frac)
+ if frac-quot <char_data.round_threshold then fwidth = fwidth * quot end
+ end
fshift.down = char_data.down; fshift.left = char_data.left
fshift = call_callback("luatexja.set_width", fshift, met, char_data)
local fheight = char_data.height or 0
--- /dev/null
+\documentclass{ltjsarticle}
+\usepackage[sourcehan-jp,nfssonly]{luatexja-preset}
+\begin{document}
+\lineskip0pt
+
+\setbox0=\hbox{\tate あ〳〵あ〱あ――あ}\leavevmode\vrule\copy0\vrule
+{\ttfamily\tiny\directlua{%
+ luatexja.ext_show_node(tex.getbox(0), '\string\\par> ', tex.print)
+}\par}
+
+\newpage
+\setbox0=\hbox{\yoko あ〳〵あ〱あ――あ}\par
+\hrule
+\copy0
+\hrule
+{\ttfamily\tiny\directlua{%
+ luatexja.ext_show_node(tex.getbox(0), '\string\\par> ', tex.print)
+}\par}
+
+\end{document}
+\bye