diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-28 17:36:36 +0200 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-28 17:36:36 +0200 |
commit | a68db14bd5069439c82a4d0ee315c27f0146ceb0 (patch) | |
tree | e1629d5173bcd990be307813c2b61f10f92dfebb | |
parent | 1729bed96ad56634ef7668e6db8efb557d094daa (diff) | |
download | luaotfload-a68db14bd5069439c82a4d0ee315c27f0146ceb0.tar.gz |
Workaround for non-ascii cache file names (thanks to Kim)
-rw-r--r-- | luaotfload.dtx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index 3f31280..c0489e3 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -645,6 +645,15 @@ end --fonts.define.resolvers.file = fonts.define.resolvers.name % \end{macrocode} % +% We override the cleanname function as it outputs garbage for exotic font +% names +% +% \begin{macrocode} +containers.cleanname = function (name) + return (string.gsub(string.lower(name),"[^%w%d\128\255]+","-")) +end +% \end{macrocode} +% % Overriding some defaults set in \context code. % % \begin{macrocode} |