summaryrefslogtreecommitdiff
path: root/tex/context/base/scrp-ini.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-06-25 11:24:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-06-25 11:24:00 +0200
commit2f44003aab284c595680e9a84b9891b2b9fabb66 (patch)
tree61649b0110ac9e626545c8032d8aa1814f5fc9f5 /tex/context/base/scrp-ini.lua
parentbddac3f564687065474739c7face6fcd93ceea69 (diff)
downloadcontext-2f44003aab284c595680e9a84b9891b2b9fabb66.tar.gz
beta 2011.06.25 11:24
Diffstat (limited to 'tex/context/base/scrp-ini.lua')
-rw-r--r--tex/context/base/scrp-ini.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/scrp-ini.lua b/tex/context/base/scrp-ini.lua
index b0f39c751..0e1d450e2 100644
--- a/tex/context/base/scrp-ini.lua
+++ b/tex/context/base/scrp-ini.lua
@@ -341,7 +341,9 @@ end
-- eventually we might end up with more extensive parsing
-- todo: pass t[start..stop] == original
--
--- one of the time consuming functiions:
+-- one of the time consuming functions:
+
+-- we can have a fonts.hashes.originals
function scripts.preprocess(head)
local start = first_glyph(head)
@@ -381,7 +383,9 @@ function scripts.preprocess(head)
lastfont = f
end
local c = start.char
- if originals then c = originals[c] or c end
+ if originals then
+ c = originals[c] or c
+ end
local h = hash[c]
if h then
set_attribute(start,a_prestat,categorytonumber[h])