diff options
Diffstat (limited to 'tex/context/base/font-syn.lua')
-rw-r--r-- | tex/context/base/font-syn.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tex/context/base/font-syn.lua b/tex/context/base/font-syn.lua index d99114998..c4f0e948b 100644 --- a/tex/context/base/font-syn.lua +++ b/tex/context/base/font-syn.lua @@ -15,6 +15,7 @@ local find, gmatch = string.find, string.gmatch local concat, sort, format = table.concat, table.sort, string.format local serialize = table.serialize local lpegmatch = lpeg.match +local utfgsub, utflower = utf.gsub, utf.lower local unpack = unpack or table.unpack local allocate = utilities.storage.allocate @@ -33,13 +34,13 @@ using a table that has keys filtered from the font related files.</p> fonts = fonts or { } -- also used elsewhere -local names = font.names or allocate { } +local names = { } fonts.names = names -local filters = names.filters or { } -names.filters = filters +names.filters = names.filters or { } +local filters = names.filters -names.data = names.data or allocate { } +names.data = names.data or { } names.version = 1.110 names.basename = "names" @@ -309,6 +310,8 @@ end local function cleanname(name) return (gsub(lower(name),"[^%a%d]","")) + -- once we can load files with utf names, we can play with the following: + -- return (utfgsub(utfgsub(lower(str),"[^%a%A%d]",""),"%s","")) end local function cleanfilename(fullname,defaultsuffix) |