summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/typo-dha.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-04-11 19:32:27 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-04-11 19:32:27 +0200
commit5010f1f50b6047c90502ef07631bf54f6be26191 (patch)
tree15ddfdba274e8560ddec673ef6048bdd9cd40f91 /tex/context/base/mkiv/typo-dha.lua
parent57a61e4673116076f5bbff7600e6dad376af9173 (diff)
downloadcontext-5010f1f50b6047c90502ef07631bf54f6be26191.tar.gz
2016-04-11 19:08:00
Diffstat (limited to 'tex/context/base/mkiv/typo-dha.lua')
-rw-r--r--tex/context/base/mkiv/typo-dha.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/typo-dha.lua b/tex/context/base/mkiv/typo-dha.lua
index b1ce6ffbf..fa17b1e06 100644
--- a/tex/context/base/mkiv/typo-dha.lua
+++ b/tex/context/base/mkiv/typo-dha.lua
@@ -75,7 +75,6 @@ local nodepool = nuts.pool
local nodecodes = nodes.nodecodes
local mathcodes = nodes.mathcodes
-local glyph_code = nodecodes.glyph
local math_code = nodecodes.math
local penalty_code = nodecodes.penalty
local kern_code = nodecodes.kern
@@ -125,7 +124,7 @@ end
local function nextisright(current)
current = getnext(current)
local character, id = isglyph(current)
- if id == glyph_code then
+ if character then
local direction = chardirections[character]
return direction == "r" or direction == "al" or direction == "an"
end
@@ -134,7 +133,7 @@ end
local function previsright(current)
current = getprev(current)
local character, id = isglyph(current)
- if id == glyph_code then
+ if character then
local direction = chardirections[character]
return direction == "r" or direction == "al" or direction == "an"
end