diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-02-06 15:15:07 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-02-06 15:15:07 +0100 |
commit | 47878599fddea4d4e259e3371def1afadc62e03b (patch) | |
tree | 256f562afaf5659de71058c65ddf165cac8790b7 /tex/context/base/mkiv/lang-ini.lua | |
parent | 46c0953642cf16e575215a49dc36984a681a91d1 (diff) | |
download | context-47878599fddea4d4e259e3371def1afadc62e03b.tar.gz |
2016-02-06 14:08:00
Diffstat (limited to 'tex/context/base/mkiv/lang-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/lang-ini.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/lang-ini.lua b/tex/context/base/mkiv/lang-ini.lua index 46ccdec35..eb7e32b89 100644 --- a/tex/context/base/mkiv/lang-ini.lua +++ b/tex/context/base/mkiv/lang-ini.lua @@ -22,7 +22,7 @@ local type, tonumber = type, tonumber local utfbyte = utf.byte local format, gsub = string.format, string.gsub local concat, sortedkeys, sortedpairs = table.concat, table.sortedkeys, table.sortedpairs -local utfbytes = string.utfvalues +local utfbytes, strip = string.utfvalues, string.strip local context = context local commands = commands @@ -193,10 +193,8 @@ local function loaddefinitions(tag,specification) local loaded = table.load(fullname,gzipped and gzip.load) if loaded then -- todo: version test ok, nofloaded = true, nofloaded + 1 -if sethjcodes then -- for now sethjcodes(instance,loaded,"patterns") sethjcodes(instance,loaded,"exceptions") -end instance:patterns (validdata(loaded,"patterns", tag) or "") instance:hyphenation(validdata(loaded,"exceptions",tag) or "") resources[#resources+1] = loaded -- so we can use them otherwise @@ -367,7 +365,7 @@ end function languages.setexceptions(tag,str) local data, instance = resolve(tag) if data then - instance:hyphenation(string.strip(str)) -- we need to strip leading spaces + instance:hyphenation(strip(str)) -- we need to strip leading spaces end end |