summaryrefslogtreecommitdiff
path: root/tex/generic
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2009-09-25 23:52:00 +0200
committerHans Hagen <pragma@wxs.nl>2009-09-25 23:52:00 +0200
commitd83bd4e8a89d96bd9dfabf4427d02efb9623e5a2 (patch)
treec46ca0538a22b89af545e545fa627f1cb6418dd2 /tex/generic
parent43986f8edd2afd919afbb9988cb6778fc3c02077 (diff)
downloadcontext-d83bd4e8a89d96bd9dfabf4427d02efb9623e5a2.tar.gz
beta 2009.09.25 23:52
Diffstat (limited to 'tex/generic')
-rw-r--r--tex/generic/context/luatex-fonts-merged.lua32
1 files changed, 31 insertions, 1 deletions
diff --git a/tex/generic/context/luatex-fonts-merged.lua b/tex/generic/context/luatex-fonts-merged.lua
index e107372e9..8d7f7b58b 100644
--- a/tex/generic/context/luatex-fonts-merged.lua
+++ b/tex/generic/context/luatex-fonts-merged.lua
@@ -1,6 +1,6 @@
-- merged file : c:/data/develop/context/texmf/tex/generic/context/luatex-fonts-merged.lua
-- parent file : c:/data/develop/context/texmf/tex/generic/context/luatex-fonts.lua
--- merge date : 09/25/09 09:47:31
+-- merge date : 09/25/09 23:59:10
do -- begin closure to overcome local limits and interference
@@ -1295,6 +1295,36 @@ end
--~ return concat(k,"")
--~ end
+function table.insert_before_value(t,value,extra)
+ for i=1,#t do
+ if t[i] == extra then
+ remove(t,i)
+ end
+ end
+ for i=1,#t do
+ if t[i] == value then
+ insert(t,i,extra)
+ return
+ end
+ end
+ insert(t,1,extra)
+end
+
+function table.insert_after_value(t,value,extra)
+ for i=1,#t do
+ if t[i] == extra then
+ remove(t,i)
+ end
+ end
+ for i=1,#t do
+ if t[i] == value then
+ insert(t,i+1,extra)
+ return
+ end
+ end
+ insert(t,#t+1,extra)
+end
+
end -- closure
do -- begin closure to overcome local limits and interference