From a68db14bd5069439c82a4d0ee315c27f0146ceb0 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Sun, 28 Apr 2013 17:36:36 +0200 Subject: Workaround for non-ascii cache file names (thanks to Kim) --- luaotfload.dtx | 9 +++++++++ 1 file changed, 9 insertions(+) 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} -- cgit v1.2.3