[lltx] caching of fonts with non-ascii chars in file name
Élie Roux
elie.roux at telecom-bretagne.eu
Sun Apr 28 17:19:55 CEST 2013
On 28/04/2013 16:53, Philipp Stephani wrote:
> 2013/4/28 Dohyun Kim <nomosnomos at gmail.com <mailto: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.
Among other reasons, it might be due to case-insensitive OSs like Windows...
Also, the development of luaotfload now takes place on
https://github.com/lualatex/luaotfload/, this is where it would be most
useful to report issues for now.
Thank you,
--
Elie
More information about the lualatex-dev
mailing list