Re: [dev-context] removing .pgf file with --purgeall

2009-06-10 Thread Hans Hagen

Mojca Miklavec wrote:

On Tue, Jun 9, 2009 at 17:48, Hans Hagen wrote:

Mojca Miklavec wrote:

Hello Hans,

may I request removing \jobname.pgf when doing context/ctxtools
--purgeall (in both mkii/mkiv)? That's a file that TikZ creates by
default (similar to \jobname-mpgraph*, only serving a different
purpose) and is only needed when a document is compiled on computer
without tikz installed.

is this name configureable? can we turn it into something \jobname-temp.pgf
or so? (as we do with the mp temp files)
or maybe \jobname-pgfgraphic.pgf or so.


I don't believe that it's configurable (though it could be possible to
send a request to Till Tantau). The code is just:

\def\pgfu...@aux@r...@hook{
  \pgfu...@iffileexists{\jobname.pgf}{\input \jobname.pgf\relax}{}
  \csname newwrite\endcsname\pgfu...@auxout
  \csname openout\endcsname\pgfu...@auxout\jobname.pgf
}

Is the main concern being afraid of removing some file with the same ending?


indeed; it's why i have the -mpgraph

it would be handy if there was

\def\pfgfilename{\jobname.pgf}

or so, but for the moment i've just added the suffix to the remove list 
and we leave it to the user not to use the pgf suffix otherwise


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
-
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] removing .pgf file with --purgeall

2009-06-10 Thread Hans Hagen

Khaled Hosny wrote:

On Tue, Jun 09, 2009 at 05:50:39PM +0200, Hans Hagen wrote:

Khaled Hosny wrote:

On Mon, Jun 08, 2009 at 01:28:01PM +0200, Mojca Miklavec wrote:

Hello Hans,

may I request removing \jobname.pgf when doing context/ctxtools
--purgeall (in both mkii/mkiv)? That's a file that TikZ creates by
default (similar to \jobname-mpgraph*, only serving a different
purpose) and is only needed when a document is compiled on computer
without tikz installed.

(Low priority request.)

While on it, may I request removing .synctex.gz generated when SyncTeX
is enabled (I know it is needed for previewers, but I assume --purgeall
to remove every generated file except the output document).

local temporary_runfiles = {
tui, tua, tup, ted, tes, top,
log, tmp, run, bck, rlg,
mpt, mpx, mpd, mpo, mpb,
ctl, synctex.gz,
}

can you test it?

This works for me, but I think we need to added it to ctxtools.rb for
'ctxtools --purgefiles --all' too?


ctxtools becomes obsolete


-
  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
-
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


[dev-context] removing BibTeX auxiliary files with --purgeall

2009-06-10 Thread Oliver Buerschaper

Hello Hans and Taco,

may I also add the request that temporary files created by BibTeX are  
deleted automatically by --purgeall? That is,


*.blg
*.aux

It'll probably be wise to keep the *.bbl file :-) Although it is  
created automatically by the BibTeX run I need to tweak it manually at  
times ...


Best wishes,
Oliver


P.S. I cannot test this with MkIV at the moment but MkII doesn't  
delete those files for sure ...

___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Khaled Hosny
It works fine with context, BTW.

On Wed, Jun 10, 2009 at 02:49:46PM +0300, Khaled Hosny wrote:
 The following sample would crash luatex using context distriputed
 luatex-plain format:
 %%%
 \font\arab=SimpleNaskhi.ttf:script=arab;language=dflt;mode=node;+init;+medi;+fina;+rlig;+liga;+mark\arab
 \textdir TRT
 اللهِ 
 \bye
 %%%
 
 (the font used
 http://code.google.com/p/raqm/source/browse/trunk/fonts/simplenaskhi/SimpleNaskhi.ttf)
 
 With the message:
 %%%
 error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
 attempt to call field 'register_message' (a nil value)
 %%%
 
 It seems that fonts.register_message is not defined. 
 Pressing enter after that will crash luatex:
 
 %%%
 luatex: ../../../source/texk/web2c/luatexdir/tex/linebreak.c:1660:
 ext_do_line_break: Assertion `varmem[((cur_p)+1)].hh.v.RH ==
 0+4+4+4+4+4+4+2+2+2' failed.
 Aborted
 %%%
 
 Regards,
  Khaled
 
 
 -- 
  Khaled Hosny
  Arabic localiser and member of Arabeyes.org team
  Free font developer

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Taco Hoekwater


Khaled Hosny wrote:
 %%%
 error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
 attempt to call field 'register_message' (a nil value)
 %%%

This is the bug (a lua or font problem).

 %%%
 luatex: ../../../source/texk/web2c/luatexdir/tex/linebreak.c:1660:
 ext_do_line_break: Assertion `varmem[((cur_p)+1)].hh.v.RH ==
 0+4+4+4+4+4+4+2+2+2' failed.
 Aborted
 %%%

This is just a result of the earlier bug.

Best wishes,
Taco
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Hans Hagen

Khaled Hosny wrote:

On Wed, Jun 10, 2009 at 01:52:28PM +0200, Taco Hoekwater wrote:


Khaled Hosny wrote:

%%%
error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
attempt to call field 'register_message' (a nil value)
%%%

This is the bug (a lua or font problem).


The font has a ligature that don't have base anchors (that part of lua
code is about reporting this, I guess). If I replace
fonts.register_message with a dummy function it'll work.


i'll add

function fonts.register_message()
end

to font-mis.lua

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
-
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Khaled Hosny
On Wed, Jun 10, 2009 at 03:38:29PM +0200, Hans Hagen wrote:
 Khaled Hosny wrote:
 On Wed, Jun 10, 2009 at 01:52:28PM +0200, Taco Hoekwater wrote:

 Khaled Hosny wrote:
 %%%
 error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
 attempt to call field 'register_message' (a nil value)
 %%%
 This is the bug (a lua or font problem).

 The font has a ligature that don't have base anchors (that part of lua
 code is about reporting this, I guess). If I replace
 fonts.register_message with a dummy function it'll work.

 i'll add

 function fonts.register_message()
 end

 to font-mis.lua

I updated to context 2009.06.10 20:06, but still getting that crash.
luatex-fonts.lua doesn't load font-mis.lua, adding it there (and
commnting luatex-fonts-merged.lua line) fixes it.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer


signature.asc
Description: Digital signature
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context


Re: [dev-context] Crash with luatex-fonts

2009-06-10 Thread Hans Hagen

Khaled Hosny wrote:

On Wed, Jun 10, 2009 at 03:38:29PM +0200, Hans Hagen wrote:

Khaled Hosny wrote:

On Wed, Jun 10, 2009 at 01:52:28PM +0200, Taco Hoekwater wrote:

Khaled Hosny wrote:

%%%
error: ...texmf/tex/plain/luatex-plain/luatex-fonts-merged.lua:7765:
attempt to call field 'register_message' (a nil value)
%%%

This is the bug (a lua or font problem).

The font has a ligature that don't have base anchors (that part of lua
code is about reporting this, I guess). If I replace
fonts.register_message with a dummy function it'll work.

i'll add

function fonts.register_message()
end

to font-mis.lua


I updated to context 2009.06.10 20:06, but still getting that crash.
luatex-fonts.lua doesn't load font-mis.lua, adding it there (and
commnting luatex-fonts-merged.lua line) fixes it.


ah, should be font-dum


-
  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
-
___
dev-context mailing list
dev-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/dev-context