summaryrefslogtreecommitdiff
path: root/tex/context/base/node-pro.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-11-26 22:40:20 +0200
committerMarius <mariausol@gmail.com>2010-11-26 22:40:20 +0200
commitcc2e8cc985157fdab4e0122b27457d7cd21b2d38 (patch)
tree4cdac08071a209d3af472899db9bbd86b1e10563 /tex/context/base/node-pro.lua
parent44d0f4fe01338d0f699e1f09ae13d17088c2db83 (diff)
downloadcontext-cc2e8cc985157fdab4e0122b27457d7cd21b2d38.tar.gz
beta 2010.11.26 21:21
Diffstat (limited to 'tex/context/base/node-pro.lua')
-rw-r--r--tex/context/base/node-pro.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/tex/context/base/node-pro.lua b/tex/context/base/node-pro.lua
index 9eb431d6b..0ed510cd2 100644
--- a/tex/context/base/node-pro.lua
+++ b/tex/context/base/node-pro.lua
@@ -16,15 +16,15 @@ local report_nodes = logs.new("nodes")
local nodes, node = nodes, node
-local nodecodes = nodes.nodecodes
-local glyph_code = nodecodes.glyph
-local tasks = nodes.tasks
+local nodecodes = nodes.nodecodes
+local glyph_code = nodecodes.glyph
+local tasks = nodes.tasks
-local free_node = node.free
-local first_character = node.first_character
+local free_node = node.free
+local first_glyph = node.first_glyph or node.first_character
-nodes.processors = nodes.processors or { }
-local processors = nodes.processors
+nodes.processors = nodes.processors or { }
+local processors = nodes.processors
-- vbox: grouptype: vbox vtop output split_off split_keep | box_type: exactly|aditional
-- hbox: grouptype: hbox adjusted_hbox(=hbox_in_vmode) | box_type: exactly|aditional
@@ -67,7 +67,7 @@ processors.tracer = tracer
processors.enabled = true -- this will become a proper state (like trackers)
function processors.pre_linebreak_filter(head,groupcode,size,packtype,direction)
- local first, found = first_character(head)
+ local first, found = first_glyph(head)
if found then
if trace_callbacks then
local before = nodes.count(head,true)
@@ -91,7 +91,7 @@ function processors.pre_linebreak_filter(head,groupcode,size,packtype,direction)
end
function processors.hpack_filter(head,groupcode,size,packtype,direction)
- local first, found = first_character(head)
+ local first, found = first_glyph(head)
if found then
if trace_callbacks then
local before = nodes.count(head,true)
@@ -119,13 +119,13 @@ callbacks.register('hpack_filter' , processors.hpack_filter,"all kind of
local actions = tasks.actions("finalizers",1) -- head, where
--- beware, these are packaged boxes so no first_character test
+-- beware, these are packaged boxes so no first_glyph test
-- maybe some day a hash with valid groupcodes
--
-- beware, much can pass twice, for instance vadjust passes two times
function processors.post_linebreak_filter(head,groupcode)
---~ local first, found = first_character(head)
+--~ local first, found = first_glyph(head)
--~ if found then
if trace_callbacks then
local before = nodes.count(head,true)