summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/lang-ini.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-06-09 00:47:45 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-06-09 00:47:45 +0200
commit3d8b4fe968e7b195ef57a952108b3632ecbf10b4 (patch)
treeec69b7261a79bf5874c68d3c7b364ecb97120649 /tex/context/base/mkxl/lang-ini.lmt
parent4a4cabe9005295cfa349269ccb6e0ffa5f9d4fb3 (diff)
downloadcontext-3d8b4fe968e7b195ef57a952108b3632ecbf10b4.tar.gz
2021-06-09 00:13:00
Diffstat (limited to 'tex/context/base/mkxl/lang-ini.lmt')
-rw-r--r--tex/context/base/mkxl/lang-ini.lmt9
1 files changed, 5 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/lang-ini.lmt b/tex/context/base/mkxl/lang-ini.lmt
index 5bfc9e1bb..be1b8f651 100644
--- a/tex/context/base/mkxl/lang-ini.lmt
+++ b/tex/context/base/mkxl/lang-ini.lmt
@@ -22,7 +22,7 @@ if not modules then modules = { } end modules ['lang-ini'] = {
local type, tonumber, next = type, tonumber, next
local utfbyte, utflength = utf.byte, utf.length
local format, gsub, gmatch, find = string.format, string.gsub, string.gmatch, string.find
-local concat, sortedkeys, sortedpairs, keys, insert, tohash = table.concat, table.sortedkeys, table.sortedpairs, table.keys, table.insert, table.tohash
+local concat, sortedkeys, sortedhash, keys, insert, tohash = table.concat, table.sortedkeys, table.sortedhash, table.keys, table.insert, table.tohash
local setmetatableindex = table.setmetatableindex
local utfvalues, strip, utfcharacters = string.utfvalues, string.strip, utf.characters
@@ -768,11 +768,12 @@ do
end)
local function checkglyphproperties(options)
- for word, list in next, options do
+ -- we sort, just to be sure
+ for word, list in sortedhash(options) do
if type(list) == "string" then
options[word] = options[list]
else
- for index, option in next, list do
+ for index, option in sortedhash(list) do
if type(option) == "string" then
list[index] = cache[option]
end
@@ -1425,7 +1426,7 @@ languages.logger = languages.logger or { }
function languages.logger.report()
local result, r = { }, 0
- for tag, l in sortedpairs(registered) do
+ for tag, l in sortedhash(registered) do
if l.loaded then
r = r + 1
result[r] = format("%s:%s:%s",tag,l.parent,l.number)