[luatex] [luaotfload & fontspec] trunk errors
Khaled Hosny
khaledhosny at eglug.org
Mon Mar 29 07:45:26 CEST 2010
On Mon, Mar 29, 2010 at 09:52:20AM +0800, Diederick C. Niehorster wrote:
> Dear Khaled,
>
> As you suggested, I have gotten the newest luaotfload from github.
> I've installed it manually by analyzing the makefile, but that should
> be fine (replaced all the files in $(TEXMFROOT)/tex/luatex/luaotfload
> and created the directory in $(TEXMFROOT)/scripts/mkluatexfontdb +
> copied mkluatexfontdb, amongst the other non-vital steps). Ran
> mktexlsr.
You can just uninstall luaotfload using tlmgr then installing it in your
local texmf tree, under *nix:
$ make TEXMFROOT=~/texmf install
> Now, with the following minimal document
> ----
> \documentclass[11pt]{article}
> \usepackage[no-math]{fontspec}
>
> \setmainfont[Ligatures=Common]{Arno Pro}
>
> \begin{document}
> \textbf{Theorem 1 (Residue Theorem)} Let $f$ be analytic in the region
> $G$ \textit{G}
> \end{document}
> ----
> I get the error (log attached):
> ----
> (c:/texlive/2009/texmf-dist/tex/luatex/luaotfload/luaotfload.lua
> ! LuaTeX error ...9/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua:22: atte
> mpt to index global 'dir' (a nil value)
> stack traceback:
> ...9/texmf-dist/tex/luatex/luaotfload/otfl-font-nms.lua:22: in main chun
> k
> [C]: in function 'dofile'
> ...2009/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:48: in function
> 'loadm
> odule'
> ...2009/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:154: in main chu
> nk
> [C]: in function 'dofile'
> ...e/2009/texmf-dist/tex/luatex/luatextra/luatextra.lua:130: in function
> 'use_
> module'
> <\directlua >:1: in main chunk.
> \luatexUseModule ...{luatextra.use_module([[#1]])}
>
> l.57 \luatexUseModule{luaotfload}
> ----
>
> Would this have something to do with the fontnamedb not being
> generated properly? Do I need to any extra (one-time?) call to get
> that done?
You are missing luaextra package, http://github.com/mpg/luaextra, I
forgot to mention it, sorry.
> BTW, the link <http://github.com/mpg/luaotfload> in the luaotfload
> README does not exist ;)
Fix, thanks.
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
More information about the luatex
mailing list