summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-03-25 14:12:41 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-03-25 14:12:41 +0100
commitcaef1259af1c843232dfbf5efc65adcf83d67f6f (patch)
treedb2a4b76d4d14ca03d21e0bbf37c42759dda31a7 /scripts
parentcb28e8807d7908cc9644c2bd77c9d214dd8caefe (diff)
downloadcontext-caef1259af1c843232dfbf5efc65adcf83d67f6f.tar.gz
2021-03-25 14:03:00
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-patterns.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/context/lua/mtx-patterns.lua b/scripts/context/lua/mtx-patterns.lua
index 36b60192d..c1178b2d0 100644
--- a/scripts/context/lua/mtx-patterns.lua
+++ b/scripts/context/lua/mtx-patterns.lua
@@ -150,6 +150,7 @@ scripts.patterns.list = {
-- { "sa", "hyph-sa", "sanskrit" },
{ "sk", "hyph-sk", "slovak" },
{ "sl", "hyph-sl", "slovenian" },
+ { "sq", "hyph-sq", "albanian" },
{ "sr", "hyph-sr", "serbian", false, { "hyph-sr-cyrl", "hyph-sr-latn" }, },
-- { "sr", "hyph-sr-cyrl", "serbian", false },
-- { "sr", "hyph-sr-latn", "serbian" },
@@ -186,6 +187,7 @@ function scripts.patterns.load(path,name,mnemonic,ignored, merged)
local splitpatternsold, splithyphenationsold = { }, { }
local usedpatterncharactersnew, usedhyphenationcharactersnew = { }, { }
if merged then
+ -- no version info
report("using merged txt files %s.[hyp|pat|lic].txt",name)
for i=1,#merged do
local fullname = file.join(path,merged[i])
@@ -194,11 +196,13 @@ function scripts.patterns.load(path,name,mnemonic,ignored, merged)
hyphenations = hyphenations .. (io.loaddata(addsuffix(fullname,"hyp.txt")) or "") .. "\n\n"
end
elseif lfs.isfile(patfile) then
+ -- no version info
report("using txt files %s.[hyp|pat|lic].txt",name)
comment = io.loaddata(licfile) or ""
patterns = io.loaddata(patfile) or ""
hyphenations = io.loaddata(hypfile) or ""
elseif lfs.isfile(texfile) then
+ -- version info in comment blob
report("using tex file %s.txt",name)
local data = io.loaddata(texfile) or ""
if data ~= "" then