lang.hyphenate(head)
return head
end
-
- luatexbase.add_to_callback('hyphenate',
+
+ luatexbase.add_to_callback('hyphenate',
function (head,tail)
return suppress_hyphenate_ja(head)
end,'ltj.hyphenate')
local pfn = has_attr(p, jfntattr) or getfont(p)
local pc = getchar(p)
local pf = ltjf_replace_altfont(pfn, pc)
- if is_dir_tate then
+ if is_dir_tate then
set_attr(p, attr_dir, pc)
pc = ltjd_get_vert_glyph(pf, pc) or pc
end
end
-- CALLBACKS
-luatexbase.add_to_callback('hpack_filter',
+luatexbase.add_to_callback('hpack_filter',
function (head)
return set_box_stack_level(head, true)
end,'ltj.hpack_filter_pre',1)
-luatexbase.add_to_callback('pre_linebreak_filter',
+luatexbase.add_to_callback('pre_linebreak_filter',
function (head)
return set_box_stack_level(head, false)
end,'ltj.pre_linebreak_filter_pre',1)