summaryrefslogtreecommitdiff
path: root/mkglyphlist
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-09 16:19:12 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-09 16:19:12 -0700
commit2aeccd26f3cb654930ac4f310881c62ba2d796b4 (patch)
tree75c0e2a0a48a3f1b606610c6b06ec7d9647907bb /mkglyphlist
parentf0d437bc1bdf18f5eb7e296df7b3784cb04dabc2 (diff)
parenteb522f0f723c5ab94f43c72cce25d9ac6921a8d9 (diff)
downloadluaotfload-2aeccd26f3cb654930ac4f310881c62ba2d796b4.tar.gz
Merge pull request #54 from phi-gamma/master
workaround for paths in file lookups
Diffstat (limited to 'mkglyphlist')
-rwxr-xr-xmkglyphlist18
1 files changed, 18 insertions, 0 deletions
diff --git a/mkglyphlist b/mkglyphlist
index 3366c9c..94aac39 100755
--- a/mkglyphlist
+++ b/mkglyphlist
@@ -21,6 +21,21 @@ local font_age = "./luaotfload-glyphlist.lua"
local glyph_source = "http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt"
-----------------------------------------------------------------------
+-- fallbacks
+-----------------------------------------------------------------------
+--- Hans adds a small list of mappings that are not in the original
+--- glyph list but seem to be normalizations of some sort. I trust his
+--- experience, so I’ll just include them here. Background:
+--- http://www.ntg.nl/pipermail/ntg-context/2013/073089.html
+
+local fallbacks = {
+ ["SF10000"]=9484, ["SF20000"]=9492, ["SF30000"]=9488,
+ ["SF40000"]=9496, ["SF50000"]=9532, ["SF60000"]=9516,
+ ["SF70000"]=9524, ["SF80000"]=9500, ["SF90000"]=9508,
+ ["afii208"]=8213,
+}
+
+-----------------------------------------------------------------------
-- includes
-----------------------------------------------------------------------
require"lpeg"
@@ -73,6 +88,9 @@ local get_glyphs = function (data)
print("error: could not parse glyph list")
os.exit(-1)
end
+ for name, glyph in next, fallbacks do
+ res[name] = res[name] or glyph
+ end
return res
end