diff options
author | Marius <mariausol@gmail.com> | 2011-03-28 20:00:39 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-03-28 20:00:39 +0300 |
commit | b83a2fdcd776ef22f96e4412e35953972834051e (patch) | |
tree | 6593c6e8270b50b0278fd3af7355fa7d97fa40c7 /tex/context/base/font-afm.lua | |
parent | 21cd65249c044ecc147f90f390f30d36a4b98dad (diff) | |
download | context-b83a2fdcd776ef22f96e4412e35953972834051e.tar.gz |
beta 2011.03.28 18:59
Diffstat (limited to 'tex/context/base/font-afm.lua')
-rw-r--r-- | tex/context/base/font-afm.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/font-afm.lua b/tex/context/base/font-afm.lua index 09cd64491..b719a9b31 100644 --- a/tex/context/base/font-afm.lua +++ b/tex/context/base/font-afm.lua @@ -27,7 +27,7 @@ local report_afm = logs.reporter("fonts","afm loading") local next, type, tonumber = next, type, tonumber local format, match, gmatch, lower, gsub, strip = string.format, string.match, string.gmatch, string.lower, string.gsub, string.strip local abs = math.abs -local P, S, C, R, lpegmatch = lpeg.P, lpeg.S, lpeg.C, lpeg.R, lpeg.match +local P, S, C, R, lpegmatch, patterns = lpeg.P, lpeg.S, lpeg.C, lpeg.R, lpeg.match, lpeg.patterns local fonts = fonts local afm = { } @@ -90,8 +90,8 @@ built in <l n='tfm'/> and <l n='otf'/> reader.</p> --~ Comment AXISHEIGHT 250 local comment = P("Comment") -local spacing = S(" \t")^1 -local lineend = S("\n\r") +local spacing = patterns.spacer -- S(" \t")^1 +local lineend = patterns.newline -- S("\n\r") local words = C((1 - lineend)^1) local number = C((R("09") + S("."))^1) / tonumber * spacing^0 local data = lpeg.Carg(1) |