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

Philipp Stephani p.stephani2 at gmail.com
Sun Apr 28 16:53:01 CEST 2013


2013/4/28 Dohyun Kim <nomosnomos at gmail.com>

> --- 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
>

That looks reasonable, could you please report it at
https://github.com/khaledhosny/luaotfload so it can be tracked?
However, the "cleanname" function still looks fishy to me. Why do such a
replacement and lowercasing at all? The cache should simply use the font
name as-is, without any modifications.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/lualatex-dev/attachments/20130428/50ea7f15/attachment.html>


More information about the lualatex-dev mailing list