Hello Hans, it looks as if texmfstart/ctxtools is not trying kpsewhich and alike. For texshow-web I'd like to rely on cont-en.xml in the current dir only and texmfstart/ctxtools should take the keys-xx.xml from the distribution: pg$ texmfstart ctxtools.rb --translate ro CtxTools | generating keys-ro.xml CtxTools | no keys-ro.xml generated right, I have no keys-ro.xml in my dir: pg$ ls keys-ro.xml ls: keys-ro.xml: No such file or directory but texmfstart should be able to find it: pg$ kpsewhich keys-ro.xml /opt/context/latest/texmf/tex/context/interface/keys-ro.xml Would it be possible to use the kpathse stuff as fallback? Patrick -- ConTeXt wiki: http://contextgarden.net
Patrick Gundlach wrote:
Hello Hans,
it looks as if texmfstart/ctxtools is not trying kpsewhich and alike. For texshow-web I'd like to rely on cont-en.xml in the current dir only and texmfstart/ctxtools should take the keys-xx.xml from the distribution:
pg$ texmfstart ctxtools.rb --translate ro CtxTools | generating keys-ro.xml CtxTools | no keys-ro.xml generated
right, I have no keys-ro.xml in my dir:
pg$ ls keys-ro.xml ls: keys-ro.xml: No such file or directory
but texmfstart should be able to find it:
pg$ kpsewhich keys-ro.xml /opt/context/latest/texmf/tex/context/interface/keys-ro.xml
Would it be possible to use the kpathse stuff as fallback?
try the --force option ... surprise option -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
[...]
/opt/context/latest/texmf/tex/context/interface/keys-ro.xml Would it be possible to use the kpathse stuff as fallback?
try the --force option ... surprise option -)
It is - surprisingly - not changing anything. pg@m24s02:/tmp/pg$ texmfstart ctxtools.rb --force --translate ro CtxTools | generating keys-ro.xml CtxTools | no keys-ro.xml generated pg@m24s02:/tmp/pg$ ll cont-ro.xml ls: cont-ro.xml: No such file or directory Patrick -- ConTeXt wiki: http://contextgarden.net
Patrick Gundlach wrote:
[...]
/opt/context/latest/texmf/tex/context/interface/keys-ro.xml Would it be possible to use the kpathse stuff as fallback?
try the --force option ... surprise option -)
It is - surprisingly - not changing anything.
pg@m24s02:/tmp/pg$ texmfstart ctxtools.rb --force --translate ro CtxTools | generating keys-ro.xml CtxTools | no keys-ro.xml generated pg@m24s02:/tmp/pg$ ll cont-ro.xml ls: cont-ro.xml: No such file or directory
strange, can you find out why? one = "texexec --make --alone --all #{interface}" two = "texexec --batch --silent --interface=#{interface} x-set-01" Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans, It looks like the new (2004.11.22) cont-XX-scite.properties files are all using english macro names instead of translated ones. Is that intentional or a bug? (if it is a bug, I assume I'd better not create release notes until a new release is in place?). Greetings, Taco
Taco Hoekwater wrote:
Hans,
It looks like the new (2004.11.22) cont-XX-scite.properties files are all using english macro names instead of translated ones.
oeps, i'll have a look
Is that intentional or a bug? (if it is a bug, I assume I'd better not create release notes until a new release is in place?).
indeed Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hello,
Patrick Gundlach wrote:
[...]
/opt/context/latest/texmf/tex/context/interface/keys-ro.xml
Would it be possible to use the kpathse stuff as fallback?
try the --force option ... surprise option -) It is - surprisingly - not changing anything. pg@m24s02:/tmp/pg$ texmfstart ctxtools.rb --force --translate ro CtxTools | generating keys-ro.xml CtxTools | no keys-ro.xml generated pg@m24s02:/tmp/pg$ ll cont-ro.xml ls: cont-ro.xml: No such file or directory
strange, can you find out why?
one = "texexec --make --alone --all #{interface}" two = "texexec --batch --silent --interface=#{interface} x-set-01"
even when I run these commands on the command line by themself, they fail, because x-set-01.tex is not found by texexec. Somehow it doesn't use kpathsea for finding it. Patrick (PS: anybody interested in a kpathsea.rb as an interface for libkpathsea?) -- ConTeXt wiki: http://contextgarden.net
Patrick Gundlach wrote:
one = "texexec --make --alone --all #{interface}" two = "texexec --batch --silent --interface=#{interface} x-set-01"
even when I run these commands on the command line by themself, they fail, because x-set-01.tex is not found by texexec. Somehow it doesn't use kpathsea for finding it.
this is because texexec looks for the file on the given path; try --global to bypass this test
(PS: anybody interested in a kpathsea.rb as an interface for libkpathsea?)
sure, we should start building tex/kpsea tex/xpdf kind of libraries; i once did it with xpdf and swig (the most complex thing is to properly map non standard types (classes) to normal ones (like string); Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi, [...]
(PS: anybody interested in a kpathsea.rb as an interface for libkpathsea?)
my implementation is currently using the commandline tool kpsewhich for finding files, but confirms to the c-api in its interface: kp=Kpathsea.new kp.find_file("cont-sys.tex") kp.find_file("hacker.jpg","tex") (returns nil or location of file) it will support kp.open(file,fmt) in the future that returns an File instance. I will bind this to the libkpathsea c library eventually. (sorry for being so minimalistic) # kpathsea.rb - libkpathsea access for ruby # Last Change: Mon Dec 6 19:51:36 2004 class Kpathsea def initialize (progname=$0) raise ArgumentError if progname.match(/('|")/) @progname=$0 end def find_file(name,fmt="tex",mustexist=false) raise ArgumentError if name.match(/('|")/) runkpsewhich(name,fmt,mustexist) end private def runkpsewhich(name,fmt,mustexist) # mustexist ignored for now cmdline="kpsewhich -progname=" + @progname + " -format " + fmt + " " + name lines = "" IO.popen(cmdline) do |io| lines = io.readlines end return $? == 0 ? lines.to_s.chomp : nil end end Patrick -- ConTeXt wiki: http://contextgarden.net
participants (4)
-
h h extern
-
Hans Hagen
-
Patrick Gundlach
-
Taco Hoekwater