diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-02-17 10:31:56 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-02-17 10:31:56 +0100 |
commit | b14f992ef5f4e868c9959b174278c86516d60dbc (patch) | |
tree | 28587bb46c025ea7b0d27ba93f09c93dcf53c73a /tex/context/base/mkiv/lang-wrd.lua | |
parent | 95a1799032dc61dbca4a11e495be34b4397c8fec (diff) | |
download | context-b14f992ef5f4e868c9959b174278c86516d60dbc.tar.gz |
2017-02-17 10:23:00
Diffstat (limited to 'tex/context/base/mkiv/lang-wrd.lua')
-rw-r--r-- | tex/context/base/mkiv/lang-wrd.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/lang-wrd.lua b/tex/context/base/mkiv/lang-wrd.lua index 38e6187af..8b6e48401 100644 --- a/tex/context/base/mkiv/lang-wrd.lua +++ b/tex/context/base/mkiv/lang-wrd.lua @@ -38,6 +38,7 @@ local getid = nuts.getid local getsubtype = nuts.getsubtype local getchar = nuts.getchar local setattr = nuts.setattr +local getlang = nuts.getlang local isglyph = nuts.isglyph local traverse_nodes = nuts.traverse @@ -45,7 +46,7 @@ local traverse_ids = nuts.traverse_id local wordsdata = words.data local chardata = characters.data -local tasks = nodes.tasks +local enableaction = nodes.tasks.enableaction local unsetvalue = attributes.unsetvalue @@ -161,7 +162,7 @@ local function mark_words(head,whenfound) -- can be optimized and shared while current do local code, id = isglyph(current) if code then - local a = getfield(current,"lang") + local a = getlang(current) if a then if a ~= language then if s > 0 then @@ -234,7 +235,7 @@ function words.enable(settings) if e then e(settings) end - tasks.enableaction("processors","languages.words.check") + enableaction("processors","languages.words.check") enabled = true end |