X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fltj-setwidth.lua;h=5878595f281b1cc82dc2ec6bcf50a0a809218a35;hb=64ee5cd9481d22bac2c5e7ba9f89ea86527a352e;hp=6b163ab6c4a708b43de3057c8516f75e5a0ba1c3;hpb=d8efc12aa7cdd7a3b6ce7fa8435b2f55596f5935;p=luatex-ja%2Fluatexja.git diff --git a/src/ltj-setwidth.lua b/src/ltj-setwidth.lua index 6b163ab..5878595 100644 --- a/src/ltj-setwidth.lua +++ b/src/ltj-setwidth.lua @@ -193,8 +193,14 @@ local function capsule_glyph_tate(p, met, char_data, head, dir) if met.rotation and met.vert_activated then local f = font_getfont(pf) local pco = ltjs_orig_char_table[p] or pc - local r, l = (pco==pc) and met.rotation[pc], f.properties and f.properties.language - if ((r==true) or (type(r)=="table" and not r[l])) and (get_attr(p, attr_vert_ori) or 0)<=0 then + local r = met.rotation[pco] + local l = f.properties and f.properties.language + r = (r==true) or (type(r)=="table" and not r[l]) + if r then + r = met.rotation[pc] + r = (r==true) or (type(r)=="table" and not r[l]) + end + if r and (get_attr(p, attr_vert_ori) or 0)<=0 then return capsule_glyph_tate_rot(p, met, char_data, head, dir, 0.5*(get_ascender(pf)-get_descender(pf))) end