X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fltj-math.lua;h=e85e5f79d53d90f9563715317d5b463ed955f6d5;hb=0f0921ced2b53537326ad20ce546020b3cae2670;hp=abb50ece53becb7b53b8025f7fd5e7811b4af6bd;hpb=0e8b59d4e986bb2c1e1af9746d649389325db9a1;p=luatex-ja%2Fluatexja.git diff --git a/src/ltj-math.lua b/src/ltj-math.lua index abb50ec..e85e5f7 100644 --- a/src/ltj-math.lua +++ b/src/ltj-math.lua @@ -64,6 +64,7 @@ local ltjd_make_dir_whatsit = ltjd.make_dir_whatsit local is_math_letters = {} local list_dir +-- vcenter noad は軸に揃えるため,欧文ベースライン補正がかかる local function conv_vcenter(sb) local h = getfield(sb, 'head');local hd = getlist(h) if getid(hd)==id_whatsit and @@ -71,10 +72,9 @@ local function conv_vcenter(sb) local d = node_next(hd) if getid(d)==id_vlist and has_attr(d, attr_dir)>=dir_node_auto then node_free(hd); setfield(h, 'head', nil); node_free(h) - setfield(sb, 'head', d); h = d + setfield(sb, 'head', d); set_attr(d, attr_icflag, 0) end end - set_attr(h, attr_icflag, PROCESSED) return sb end