[lltx] caching of fonts with non-ascii chars in file name

Dohyun Kim nomosnomos at gmail.com
Sun Apr 28 08:55:21 CEST 2013


Hi,

For instance, I have these font files in /Library/Fonts/ :

华文仿宋.ttf
华文细黑.ttf
华文黑体.ttf

As the file name is non-ascii chars only, the name of cache file for
these fonts is always the same, that is "temp--.lua"

So it would be better to apply a simple patch like the following to
otfl-data-con.lua :

--- otfl-data-con.lua.orig    2013-04-28 15:13:48.000000000 +0900
+++ otfl-data-con.lua    2013-04-28 15:14:05.000000000 +0900
@@ -128,5 +128,5 @@
 end

 function containers.cleanname(name)
-    return (gsub(lower(name),"[^%w%d]+","-"))
+    return (gsub(lower(name),"[^%w%d\128-\255]+","-"))
 end


Regards,
--
Dohyun Kim
Seoul, Republic of Korea



More information about the lualatex-dev mailing list