diff options
Diffstat (limited to 'tex/context/base/sort-ini.lua')
-rw-r--r-- | tex/context/base/sort-ini.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tex/context/base/sort-ini.lua b/tex/context/base/sort-ini.lua index 6f4d7701b..e14c927d7 100644 --- a/tex/context/base/sort-ini.lua +++ b/tex/context/base/sort-ini.lua @@ -111,6 +111,7 @@ function sorters.splitters.utf(str) local r = sorters.replacements[sorters.language] or sorters.replacements[sorters.defaultlanguage] or { } local m = sorters.mappings [sorters.language] or sorters.mappings [sorters.defaultlanguage] or { } local u = characters.uncompose + local b = utf.byte local t = { } for _,v in pairs(r) do str = str:gsub(v[1],v[2]) @@ -118,9 +119,11 @@ function sorters.splitters.utf(str) for c in string.utfcharacters(str) do if m[c] then t[#t+1] = m[c] + elseif #c == 1 then + t[#t+1] = b(c) else for cc in string.characters(u(c)) do - t[#t+1] = m[cc] or cc + t[#t+1] = m[cc] or b(cc) end end end |