Skip to content

Commit

Permalink
update tibetan lua code
Browse files Browse the repository at this point in the history
  • Loading branch information
Udi-Fogiel committed Apr 19, 2024
1 parent 4737dff commit 3abe87c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions tex/polyglossia-tibt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,29 @@ local remove_from_callback = luatexbase.remove_from_callback
local priority_in_callback = luatexbase.priority_in_callback

local next, type = next, type

local nodes, fonts, node = nodes, fonts, node

local nodecodes = nodes.nodecodes --- <= preloaded node.types()
local node = node

local insert_node_before = node.insert_before
local insert_node_after = node.insert_after
local remove_node = nodes.remove
local remove_node = node.remove
local copy_node = node.copy
local has_attribute = node.has_attribute

local end_of_math = node.end_of_math
if not end_of_math then -- luatex < .76
local traverse_nodes = node.traverse_id
local math_code = nodecodes.math
local math_code = node.id('math_char')
local end_of_math = function (n)
for n in traverse_nodes(math_code, n.next) do
return n
end
end
end

-- node types as of April 2013
local glyph_code = nodecodes.glyph
local penalty_code = nodecodes.penalty
local kern_code = nodecodes.kern
-- node types as of April 2024
local glyph_code = node.id('glyph')
local penalty_code = node.id('penalty')
local kern_code = node.id('kern')

-- we make a new node, so that we can copy it later on
local penalty_node = node.new(penalty_code)
Expand Down

0 comments on commit 3abe87c

Please sign in to comment.