- local function main_process(head, mode, dir)
- local p = to_direct(head)
- p = ltjj.main(p,mode)
- if p then p = ltjw.set_ja_width(p, dir) end
- return to_node(p)
+ local function main_process(head, mode, dir, gc)
+ tex_set_attr('global', attr_icflag, 0)
+ if gc == 'fin_row' then return head
+ else
+ --luatexja.ext_show_node_list(head, 'T> ', print)
+ start_time_measure('jfmglue')
+ local p = ltjj.main(to_direct(head),mode, dir)
+ stop_time_measure('jfmglue')
+ return to_node(p)
+ end
+ end
+
+ local function adjust_icflag(h)
+ -- kern from luaotfload will have icflag = 1
+ -- (same as italic correction)
+ tex_set_attr('global', attr_icflag, 1)
+ return h