--
luatexbase.provides_module({
name = 'luatexja.ruby',
- date = '2014/05/08',
+ date = '2015/01/14',
description = 'Ruby annotation',
})
module('luatexja.ruby', package.seeall)
local getsubtype = (Dnode ~= node) and Dnode.getsubtype or function(n) return n.subtype end
local node_new = Dnode.new
-local node_remove = luatexja.Dnode_remove -- Dnode.remove
+local node_remove = Dnode.remove
local node_next = (Dnode ~= node) and Dnode.getnext or node.next
local node_copy, node_free, node_tail = Dnode.copy, Dnode.free, Dnode.tail
local has_attr, set_attr = Dnode.has_attribute, Dnode.set_attribute
do
local function write_aux(wv, num)
local id = has_attr(wv, attr_ruby_id)
- if id>0 then
+ if id>0 and cache_handle then
cache_handle:write(
'luatexja.ruby.old_break_info['
.. tostring(id) .. ']=' .. num