OSDN Git Service

use pre_shipout_filter hook if available
[luatex-ja/luatexja.git] / src / luatexja.lua
index b4e2e68..8c01db1 100644 (file)
@@ -332,11 +332,6 @@ do
    ltjb.add_to_callback('hpack_filter', adjust_icflag, 'ltj.adjust_icflag', 1)
 end
 
--- cleanup process
-function luatexja.ext_cleanup()
-   ltjf.cleanup_size_cache(); ltjd.remove_end_whatsit()
-end
-
 -- lastnodechar
 do
    local id_glyph = node.id('glyph')
@@ -351,12 +346,12 @@ do
             r = tostring(n.char)
          end
       end
-      tex.sprint(r)
+      tex.sprint(-2, r)
    end
 end
 
 do
-    local cache_ver = 2 -- must be same as ltj-kinsoku.tex
+    local cache_ver = 3 -- must be same as ltj-kinsoku.tex
     local cache_outdate_fn = function (t) return t.version~=cache_ver end
     local t = ltjs.charprop_stack_table
     function luatexja.load_kinsoku()