For the first step to luatex, I tried to use luatools as written in
Hans Hagen's MK manual.
1. Compiled a recent luatex and it was put in "/usr/texbin/luatex" and
linked to "/usr/texbin/texlua".
2. Downloaded the current beta and construct my "$HOME/share/texmf-
context".
Of course, the line in /usr/local/texlive/2007/texmf/web2c/
texmf.cnf was changed as follows.
TEXMFHOME=$HOME/share/texmf-hyperref;$HOME/share/texmf-lm;$HOME/share/
texmf-context
3. Made a new "/usr/texbin/luatools" to use luatools.lua directly. The
contents of the file was
#!/bin/sh
export SELFAUTOLOC=/usr/local/texlive/2007/bin
export SELFAUTODIR=/usr/local/texlive/2007
export SELFAUTOPARENT=/usr/local/texlive/2007
export TEXMFCACHE="$HOME/share"
texlua "$HOME/share/texmf-context/scripts/context/lua/luatools.lua" "$@"
4. Finally tried "luatools --generate" and it seemed that everything
went smoothly.
But I found that luatools did not cache the $TEXMFHOME directories
because
it consisted of more than one TEXMF directories. It's not a bug
but here is a patch
to solve this problem.
--- luatools.lua 2008-05-26 07:36:20.000000000 +0900
+++ luatools.lua.new 2008-05-26 07:59:17.000000000 +0900
@@ -3811,7 +3811,7 @@
return { }
else
local t = { }
- for _,v in ipairs(string.splitchr(str:gsub("^\{(.+)\}
$","%1"),",")) do
+ for _,v in ipairs(string.splitchr(str:gsub("^\{(.+)\}
$","%1"):gsub(";",","),",")) do
t[#t+1] = (v:gsub("^[%!]*(.+)[%/\\]*$","%1"))
end
return t
5. Now tried "luatools cmr10.tfm" but no anwer. However "luatools
cmr10.tfm*" showed
the proper answer. It seems that this problem is related to the
behavior of
"luatools --ini plain" which says "LuaTools | no tex file with
name plain.tex".
Is there something what I missed?
Best regards, ChoF.