Re: [NTG-context] typefile

2008-10-30 Thread luigi scarso
On Thu, Oct 30, 2008 at 8:23 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:

> On Thu, 30 Oct 2008, luigi scarso wrote:
>
> > On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan <[EMAIL PROTECTED]>
> wrote:
> >
> >> Hi,
> >>
> >> Something is wrong with \typefile in latest context in MKIV.
> >>
> >> \starttext
> >> \typefile{somefile}
> >> \stoptext
> >>
> >> (the file 'somefile' should exist)
> >>
> >> gives
> >>
> >> ! Undefined control sequence.
> >>  \filepath
> >>
> >> \pathplusfile #1#2->#1
> >>   \f!pathseparator #2
> >> \mktypefileverbatim ...rs.typefile("\readfilename
> >>   ")}
> >> \dosometyping ...rt }{\typingparameter \c!stop }}}
> >>   \stopverbatimcolor
> >> \stoppa...
> >> \dotypefile ...else \dodotypefile [\v!file ][]{#3}
> >>   \fi \fi
> >> l.3 \typefile{somefile}
> >>
> >>
> >> Also, in MKII, when the file does not exist, you get a warning message
> in
> >> the pdf output. In MKIV, there is no warning. Missing files are silently
> >> ignored.
> >>
> >> Aditya
> >>
> > it works here,with  minimals-beta
> >
> > Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC
> 2008
> > i686 GNU/Linux
> > This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
> > ConTeXt MtxRun | current version: 2008.10.30 08:50
> >
> > \starttext
> > \typefile{test-aditya-001.tex}
> > \stoptext
>
> Ah, this also works here. The error only shows if the file does not have
> an extension.
>

Confirmed

\starttext
\typefile{test-aditya-TEST}
\stoptext

where test-aditya-TEST is
TEST

fails
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-10-30 Thread Aditya Mahajan
On Thu, 30 Oct 2008, luigi scarso wrote:

> On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> Something is wrong with \typefile in latest context in MKIV.
>>
>> \starttext
>> \typefile{somefile}
>> \stoptext
>>
>> (the file 'somefile' should exist)
>>
>> gives
>>
>> ! Undefined control sequence.
>>  \filepath
>>
>> \pathplusfile #1#2->#1
>>   \f!pathseparator #2
>> \mktypefileverbatim ...rs.typefile("\readfilename
>>   ")}
>> \dosometyping ...rt }{\typingparameter \c!stop }}}
>>   \stopverbatimcolor
>> \stoppa...
>> \dotypefile ...else \dodotypefile [\v!file ][]{#3}
>>   \fi \fi
>> l.3 \typefile{somefile}
>>
>>
>> Also, in MKII, when the file does not exist, you get a warning message in
>> the pdf output. In MKIV, there is no warning. Missing files are silently
>> ignored.
>>
>> Aditya
>>
> it works here,with  minimals-beta
>
> Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
> i686 GNU/Linux
> This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
> ConTeXt MtxRun | current version: 2008.10.30 08:50
>
> \starttext
> \typefile{test-aditya-001.tex}
> \stoptext

Ah, this also works here. The error only shows if the file does not have 
an extension.

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile

2008-10-30 Thread luigi scarso
On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Something is wrong with \typefile in latest context in MKIV.
>
> \starttext
> \typefile{somefile}
> \stoptext
>
> (the file 'somefile' should exist)
>
> gives
>
> ! Undefined control sequence.
>  \filepath
>
> \pathplusfile #1#2->#1
>   \f!pathseparator #2
> \mktypefileverbatim ...rs.typefile("\readfilename
>   ")}
> \dosometyping ...rt }{\typingparameter \c!stop }}}
>   \stopverbatimcolor
> \stoppa...
> \dotypefile ...else \dodotypefile [\v!file ][]{#3}
>   \fi \fi
> l.3 \typefile{somefile}
>
>
> Also, in MKII, when the file does not exist, you get a warning message in
> the pdf output. In MKIV, there is no warning. Missing files are silently
> ignored.
>
> Aditya
>
it works here,with  minimals-beta

Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.10.30 08:50

\starttext
\typefile{test-aditya-001.tex}
\stoptext



-- 
luigi


test-aditya-001.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] typefile

2008-10-30 Thread Aditya Mahajan
Hi,

Something is wrong with \typefile in latest context in MKIV.

\starttext
\typefile{somefile}
\stoptext

(the file 'somefile' should exist)

gives

! Undefined control sequence.
 \filepath

\pathplusfile #1#2->#1
   \f!pathseparator #2
\mktypefileverbatim ...rs.typefile("\readfilename
   ")}
\dosometyping ...rt }{\typingparameter \c!stop }}}
   \stopverbatimcolor 
\stoppa...
\dotypefile ...else \dodotypefile [\v!file ][]{#3}
   \fi \fi
l.3 \typefile{somefile}


Also, in MKII, when the file does not exist, you get a warning message in 
the pdf output. In MKIV, there is no warning. Missing files are silently 
ignored.

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] minimals and greek font

2008-10-30 Thread luigi scarso
On Thu, Oct 30, 2008 at 5:02 PM, Thomas A. Schmitz <
[EMAIL PROTECTED]> wrote:

>
> On Oct 30, 2008, at 4:27 PM, luigi scarso wrote:
>
> > [a bit OT]
> > Do you know some fonts Arial/Helvetica like that are good for Greek ?
> > I have some samples under mkii, and I would like to test them under
> > mkiv minimals.
> >
> Hi Luigi,
>
> you're looking for sans fonts, right? No, I don't really have any good
> Arial/Helvetica-like fonts. I mix Gentium with sans on my slides and
> find it acceptable; Arial Unicode of course has Greek, but is really
> ugly, as is Lucida Grande (on the Mac). Have a look at
> http://www.greekfontsociety.gr/pages/en_typefaces1.html
>  , maybe there's something you'll like.
>
 *FS Neohellenic
*
looks interesting
-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] minimals and greek font

2008-10-30 Thread Thomas A. Schmitz

On Oct 30, 2008, at 4:27 PM, luigi scarso wrote:

> [a bit OT]
> Do you know some fonts Arial/Helvetica like that are good for Greek ?
> I have some samples under mkii, and I would like to test them under  
> mkiv minimals.
>
Hi Luigi,

you're looking for sans fonts, right? No, I don't really have any good  
Arial/Helvetica-like fonts. I mix Gentium with sans on my slides and  
find it acceptable; Arial Unicode of course has Greek, but is really  
ugly, as is Lucida Grande (on the Mac). Have a look at 
http://www.greekfontsociety.gr/pages/en_typefaces1.html 
  , maybe there's something you'll like.

Best

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] minimals and greek font

2008-10-30 Thread luigi scarso
On Thu, Oct 30, 2008 at 4:21 PM, Thomas A. Schmitz <
[EMAIL PROTECTED]> wrote:

>
> On Oct 29, 2008, at 3:12 PM, Alan BRASLAU wrote:
>
> > I forgot to add the error message:
> > ...
> > fonts  : using map file: cbgreek
> >
> > luaTeX warning (file cbgreek.map): cannot open font map file
> > ...
> >
> > Alan
> >
> > On Wednesday 29 October 2008 15:05:41 Alan BRASLAU wrote:
> >> Hello,
> >>
> >> What needs to be done to include greek fonts on top of the minimal
> >> installation? Thank you.
> >>
> >> example:
> >> \usemodule[greek]
> >> \starttext
> >> \greek{kalamos}
> >> \stoptext
> >
>
> Well, it does say in a pretty obvious manner: you'll need to install
> the cbgreek fonts, including the map file. However, I'm not sure it
> will work OOTB; the cbgreek fonts have changed a bit, and s-grk-00.tex
> isn't really maintained (file date is Oct. 2004). If you're using
> luatex, you don't really need this module anyway; you simply choose a
> font which has Greek characters and input in Unicode Greek.
>
[a bit OT]
Do you know some fonts Arial/Helvetica like that are good for Greek ?
I have some samples under mkii, and I would like to test them under mkiv
minimals.

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] minimals and greek font

2008-10-30 Thread Thomas A. Schmitz

On Oct 29, 2008, at 3:12 PM, Alan BRASLAU wrote:

> I forgot to add the error message:
> ...
> fonts  : using map file: cbgreek
>
> luaTeX warning (file cbgreek.map): cannot open font map file
> ...
>
> Alan
>
> On Wednesday 29 October 2008 15:05:41 Alan BRASLAU wrote:
>> Hello,
>>
>> What needs to be done to include greek fonts on top of the minimal
>> installation? Thank you.
>>
>> example:
>> \usemodule[greek]
>> \starttext
>> \greek{kalamos}
>> \stoptext
>

Well, it does say in a pretty obvious manner: you'll need to install  
the cbgreek fonts, including the map file. However, I'm not sure it  
will work OOTB; the cbgreek fonts have changed a bit, and s-grk-00.tex  
isn't really maintained (file date is Oct. 2004). If you're using  
luatex, you don't really need this module anyway; you simply choose a  
font which has Greek characters and input in Unicode Greek.

HTH

Thomas
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Clipping bug in MetaPost with MkIV

2008-10-30 Thread luigi scarso
On Thu, Oct 30, 2008 at 9:06 AM, Wolfgang Schuster <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> I make a hole in a MetaPost graphic and add a graphic as background but
> in MkIV I get no hole but the lines I try to remove are still visible.
>
> All files with the two results from MkII (what I want) and MkIV are in
> the attachment.
>
> \starttext
>
> \startMPcode
>
> picture temp ;
> path mask ;
>
> draw (0,1cm)--(2cm,1cm) ;
> draw (1cm,0)--(1cm,2cm) ;
>
> temp := currentpicture ;
> currentpicture := nullpicture ;
> mask := unitsquare scaled 2cm -- reverse fullsquare scaled 1cm shifted
> (1cm,1cm) -- cycle ;
> clip temp to mask ;
> currentpicture := temp ;
> draw fullsquare scaled 5mm shifted (1cm,1cm) ;
>
> temp := currentpicture ;
> currentpicture := nullpicture ;
> externalfigure "holz280.jpg" scaled 2cm ;
> addto currentpicture also temp ;
>
> \stopMPcode
>
> \stoptext
>
The same results here
Linux mark 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686
i386 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
MtxRun | current version: 2008.10.30 08:50

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A little OT, but really worth reading

2008-10-30 Thread luigi scarso
On Thu, Oct 30, 2008 at 12:20 PM, Henning Hraban Ramm <[EMAIL PROTECTED]>wrote:

> 2008/10/30 luigi scarso <[EMAIL PROTECTED]>:
> >> real nice! (I ordered a coin.)
> > ahem, it's also about python ...
>
> Of course, since Stani is the author of SPE (Stani's Python Editor).
>
nahh ... :>)
Sometimes I try to used these gui-editors,
but I'm not able to leave emas...
I found one of them which looks interesting for luatex, leo,
"A *literate programming*  tool,
compatible with noweb  and
CWEB
."
http://personalpages.tds.net/~edream/front.html
(if oneslike Tk)


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] /ModDate (mkiv)

2008-10-30 Thread Peter Rolf
Hi,

there is a small bug in the /Info dictionary when using mkiv. The
'ModDate' is written as 'Context - .MM.DD HH:mm', which results in a
blank entry in the 'Document Properties' of the viewer.

Anyhow, to avoid preflight problems it would be wise to set /ModDate to
the same value and form (p160, PDF Reference 1.7) as /CreationDate (like
in mkii). Otherwise you must have trust in the comparison routines of
the preflight software (which is no good choice).
Just think about PDF/X-4, where all XMP entries
(http://www.adobe.com/products/xmp/) are compared with the corresponding
/Info entries.

Best wishes, Peter


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A little OT, but really worth reading

2008-10-30 Thread Henning Hraban Ramm
2008/10/30 luigi scarso <[EMAIL PROTECTED]>:
>> real nice! (I ordered a coin.)
> ahem, it's also about python ...

Of course, since Stani is the author of SPE (Stani's Python Editor).
Really nice guy, BTW.


Greetlings, Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Context using LuaTeX - distribution packaging question

2008-10-30 Thread Hans Hagen
Tobias Burnus wrote:
> Hans,
> 
> Hans Hagen wrote:
>> what files are looked for depends also on env settings; but anyhow, at 
>> some point mkiv/luatex might drop the cnf file
>>   
> I think some kind of cnf file will still be necessary to tell TeX where
> to look for files, though with reasonable defaults, the file would only
> be created (by the user) if needed.
> 
> 
>>> /etc/texmf:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c
>>> 
>> hm, where is that set? hard coded in the binary?
>>   
> Yes, though the exact value depends on the distribution. In openSUSE, if
> I found the correct variable, it is
> 
> WEB2C = 
> ${TEXMFHOME}/web2c;${TEXMFSYSCONFIG}/web2c;${TEXMFSYSVAR}/web2c;$TEXMF/web2c  
> 
> 
> How about keeping the current searching algorithm (of the luatools.lua
> you have sent me) plus look additionally in $HOME/texmf/web2c/ ? I think
> this is the only reasonable other place. The $HOME/texmf should have
> higher precedence to allow the user to overwrite the system defaults.
> (That seems to be in line with all teTeX/TeX Live distributions on
> Linux, which I know.)

well, i remember these kind of exploding path definitions in tetex with 
about every permutation of local,share,opt,sys,... no fun

> (Another possibility would be to access the stored strings in "texlua"
> and use that search path; I don't know whether this is possible.)

could be an option (given that it is exposed)

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A little OT, but really worth reading

2008-10-30 Thread luigi scarso
On Thu, Oct 30, 2008 at 11:23 AM, Hans Hagen <[EMAIL PROTECTED]> wrote:

> Marcin Borkowski wrote:
> > This appeared today on the Polish TeX mailing list.
> >
> > A *beautiful* application of letter- and bookshapes in design.  And it's
> > Dutch!
> >
> > Have a nice time reading!
> >
> >
> http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-software.html
>
> real nice! (I ordered a coin.)
>
ahem, it's also about python ...

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Context using LuaTeX - distribution packaging question

2008-10-30 Thread luigi scarso
>
>
>
> PS:
> Peter Münster wrote:
> > Would KPSE find texmfcnf.lua in $HOME/texmf/web2c ?
> > >From one of your previous messages, I understand that it would *not*
> find
> > it.
> >
> It does - I messed up the "web2c" string search in the luatex binary;
> there are two strings. The right one seems to be:
>
>
> ~/texmf/web2c:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c
>
>
I'm on a linux box,
and minimal, minimal-beta works ok
(I also have tl2008 in a separate folder, and it also works , but I don't
mix installation) .
Maybe you can have a look at tex/setuptex in minimals .

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] A little OT, but really worth reading

2008-10-30 Thread Hans Hagen
Marcin Borkowski wrote:
> This appeared today on the Polish TeX mailing list.
> 
> A *beautiful* application of letter- and bookshapes in design.  And it's
> Dutch!
> 
> Have a nice time reading!
> 
> http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-software.html

real nice! (I ordered a coin.)

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Context using LuaTeX - distribution packaging question

2008-10-30 Thread Tobias Burnus
Hans,

Hans Hagen wrote:
> what files are looked for depends also on env settings; but anyhow, at 
> some point mkiv/luatex might drop the cnf file
>   
I think some kind of cnf file will still be necessary to tell TeX where
to look for files, though with reasonable defaults, the file would only
be created (by the user) if needed.


>> /etc/texmf:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c
>> 
> hm, where is that set? hard coded in the binary?
>   
Yes, though the exact value depends on the distribution. In openSUSE, if
I found the correct variable, it is

WEB2C = 
${TEXMFHOME}/web2c;${TEXMFSYSCONFIG}/web2c;${TEXMFSYSVAR}/web2c;$TEXMF/web2c  


How about keeping the current searching algorithm (of the luatools.lua
you have sent me) plus look additionally in $HOME/texmf/web2c/ ? I think
this is the only reasonable other place. The $HOME/texmf should have
higher precedence to allow the user to overwrite the system defaults.
(That seems to be in line with all teTeX/TeX Live distributions on
Linux, which I know.)

(Another possibility would be to access the stored strings in "texlua"
and use that search path; I don't know whether this is possible.)

Tobias


PS:
Peter Münster wrote:
> Would KPSE find texmfcnf.lua in $HOME/texmf/web2c ?
> >From one of your previous messages, I understand that it would *not* find
> it.
>   
It does - I messed up the "web2c" string search in the luatex binary;
there are two strings. The right one seems to be:

~/texmf/web2c:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Clipping bug in MetaPost with MkIV

2008-10-30 Thread luigi scarso
On Thu, Oct 30, 2008 at 9:47 AM, Hans Hagen <[EMAIL PROTECTED]> wrote:

> Wolfgang Schuster wrote:
> > Hi,
> >
> > I make a hole in a MetaPost graphic and add a graphic as background but
> > in MkIV I get no hole but the lines I try to remove are still visible.
> >
> > All files with the two results from MkII (what I want) and MkIV are in
> > the attachment.
> >
> > \starttext
> >
> > \startMPcode
> >
> > picture temp ;
> > path mask ;
> >
> > draw (0,1cm)--(2cm,1cm) ;
> > draw (1cm,0)--(1cm,2cm) ;
> >
> > temp := currentpicture ;
> > currentpicture := nullpicture ;
> > mask := unitsquare scaled 2cm -- reverse fullsquare scaled 1cm shifted
> > (1cm,1cm) -- cycle ;
> > clip temp to mask ;
> > currentpicture := temp ;
> > draw fullsquare scaled 5mm shifted (1cm,1cm) ;
> >
> > temp := currentpicture ;
> > currentpicture := nullpicture ;
> > externalfigure "holz280.jpg" scaled 2cm ;
> > addto currentpicture also temp ;
> >
> > \stopMPcode
> >
> > \stoptext
>
> i have no clue (nor time to look into it in detail) but this seems to
> work ok:
>
> % engine=luatex interface=en
>
> \starttext
>
> \startMPpage
> externalfigure "cow.pdf" scaled 2cm ;
> clip currentpicture to boundingbox currentpicture -- reverse
> unitsquare scaled 1cm shifted (.5cm,.5cm) -- cycle ;
> \stopMPpage
>
> \stoptext
>
>
it works witk minimals-beta
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt  ver: 2008.10.30 08:50 MKIV  fmt: 2008.10.30  int: english/english


-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: Thank you for the Chinese support, but still one question.

2008-10-30 Thread Yanrui Li
2008/10/30 Hans Hagen <[EMAIL PROTECTED]>:

> i uploaded a beta
>
> for some reason the fallbacks were not part of the hash that i use to
> keep track of uniqueness of definitions
>
> it seems to work ok now in the beta
>
> this might also solve some of Thomas's problems
>
> there will probably be a new current later today
>
> Hans

 It runs fine. Thanks for the update very much.

-- 
Best wishes,
Li Yanrui
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Clipping bug in MetaPost with MkIV

2008-10-30 Thread Hans Hagen
Wolfgang Schuster wrote:
> Hi,
> 
> I make a hole in a MetaPost graphic and add a graphic as background but
> in MkIV I get no hole but the lines I try to remove are still visible.
> 
> All files with the two results from MkII (what I want) and MkIV are in
> the attachment.
> 
> \starttext
> 
> \startMPcode
> 
> picture temp ;
> path mask ;
> 
> draw (0,1cm)--(2cm,1cm) ;
> draw (1cm,0)--(1cm,2cm) ;
> 
> temp := currentpicture ;
> currentpicture := nullpicture ;
> mask := unitsquare scaled 2cm -- reverse fullsquare scaled 1cm shifted
> (1cm,1cm) -- cycle ;
> clip temp to mask ;
> currentpicture := temp ;
> draw fullsquare scaled 5mm shifted (1cm,1cm) ;
> 
> temp := currentpicture ;
> currentpicture := nullpicture ;
> externalfigure "holz280.jpg" scaled 2cm ;
> addto currentpicture also temp ;
> 
> \stopMPcode
> 
> \stoptext

i have no clue (nor time to look into it in detail) but this seems to 
work ok:

% engine=luatex interface=en

\starttext

\startMPpage
 externalfigure "cow.pdf" scaled 2cm ;
 clip currentpicture to boundingbox currentpicture -- reverse 
unitsquare scaled 1cm shifted (.5cm,.5cm) -- cycle ;
\stopMPpage

\stoptext




-
   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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] A little OT, but really worth reading

2008-10-30 Thread Marcin Borkowski
This appeared today on the Polish TeX mailing list.

A *beautiful* application of letter- and bookshapes in design.  And it's
Dutch!

Have a nice time reading!

http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-software.html

Greets

-- 
Marcin Borkowski (http://mbork.pl)

Computer science is no more about computers than astronomy about
telescopes.

(E. Dijkstra)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: Thank you for the Chinese support, but still one question.

2008-10-30 Thread Hans Hagen
> Hi, Hans, Thank you for the great works. But there is still a problem when
> I test a more complicated file which is attached below. In this file,
> both \bf and \bi give the same font lmroman10-bold.
> 
> I guess the reason is that I use the same Chinese font
> AdobeHeitiStd-Regular for both SerifBold and SerifBoldItalic. But this
> cannot be avoided since Chinese fonts have much fewer typefaces than
> English fonts.
> 
> Would you give some suggestions to solve this problem? Thanks a lot.
> 
> Longmin Wang

i uploaded a beta

for some reason the fallbacks were not part of the hash that i use to
keep track of uniqueness of definitions

it seems to work ok now in the beta

this might also solve some of Thomas's problems

there will probably be a new current later today

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
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Context using LuaTeX - distribution packaging question

2008-10-30 Thread Peter Münster
On Wed, Oct 29 2008, Tobias Burnus wrote:

> I have a scenario which fails with the current mechanism - even if
> following the sym links worked. Assume that a user only puts a texmf.cnf
> under "$HOME/texmf/web2c/texmf.cnf". That file will be used by "luatex",
> "pdftex" etc. but "luatools" will still resolve
> /usr/share/texmf/.../luatools.lua if it follows $SELF.
> 
> Thus I'm in growingly in favour of using KPSE (just) for finding
> "texmf.cnf" and "texmfcnf.lua"; for all other purposes including
> seaching files whatever other method can be used.

Would KPSE find texmfcnf.lua in $HOME/texmf/web2c ?
>From one of your previous messages, I understand that it would *not* find
it.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___