Re: [NTG-context] Color rendering & transparency with metapost

2008-10-31 Thread luigi scarso
On Sat, Nov 1, 2008 at 2:06 AM, Renaud Aubin <[EMAIL PROTECTED]> wrote:

> Thank Luigi for your response,  the problem is that the background color
> rendering isn't the same if you comment out or not the following line :
> draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor
> transparent(1,0.5,white) withpen pencircle scaled 2cm;
>
true

>
> After some experiments, the problem is solved ( hence not understood
> ???) using rgb=no in setupcolors...
>
They seem differents again

>
> It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux.
>
no, I don't believe.
Try to investigate with \pdfcompresslevel0 at the beginning

-- 
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] Color rendering & transparency with metapost

2008-10-31 Thread Renaud Aubin
I must add that I have defined the a color with cmyk.

Renaud Aubin a écrit :
> Thank Luigi for your response,  the problem is that the background color 
> rendering isn't the same if you comment out or not the following line : 
> draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor 
> transparent(1,0.5,white) withpen pencircle scaled 2cm;
>
> After some experiments, the problem is solved ( hence not understood 
> ???) using rgb=no in setupcolors...
>
> It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux.
>
> Renaud
>
> luigi scarso a écrit :
>   
>> This is my test.
>> Where is the problem ?
>>
>> 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.31 13:58
>>
>>
>>
>> -- 
>> 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
>> ___
>>   
>> 
>
> ___
> 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
> ___
>   

___
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] Color rendering & transparency with metapost

2008-10-31 Thread Renaud Aubin
Thank Luigi for your response,  the problem is that the background color 
rendering isn't the same if you comment out or not the following line : 
draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) withcolor 
transparent(1,0.5,white) withpen pencircle scaled 2cm;

After some experiments, the problem is solved ( hence not understood 
???) using rgb=no in setupcolors...

It's maybe a viewer-centric problem : I use acroread 8.1.2 under linux.

Renaud

luigi scarso a écrit :
>
> This is my test.
> Where is the problem ?
>
> 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.31 13:58
>
>
>
> -- 
> 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
> ___
>   

___
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] Color rendering & transparency with metapost

2008-10-31 Thread luigi scarso
On Sat, Nov 1, 2008 at 1:38 AM, Renaud Aubin <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have some trouble using a gradient background (solid) with a
> transparent element :
>
>  \startMPinclusions
>def test_shade (expr a, b) =
>pickup pencircle scaled 1mm ;
>color ca ; ca := \MPcolor{a} ;
>color cb ; cb := \MPcolor{b} ;
>color cc ; cc := \MPcolor{c} ;
>sh := define_linear_shade(origin
> shifted(0cm,.5*\overlayheight),origin,ca,cb) ;
>fill fullsquare xscaled \overlaywidth yscaled \overlayheight
> withshade sh;
>draw origin withcolor cc;
>draw origin shifted(0cm,-.25*\overlayheight) withcolor cc;
>enddef ;
>  \stopMPinclusions
>
>  \setupcolors[state=start]
>  \definecolor[a][r=.57254902,g=.784313725,b=.917647059]
>  \definecolor[b][white]
>  \definecolor[c][darkred]
>  \starttext
>
>  \defineoverlay[bgoverlay][\uniqueMPgraphic{bg_top_shade}]
>  \setupbackgrounds[page][background=bgoverlay]
>  \startuniqueMPgraphic{bg_top_shade}
>test_shade(origin, origin shifted(0cm,1cm));
>draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight)
> withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm;
>
>  If you comment out the previous line the color rendering is
> definitelly different...
>
>  \stopuniqueMPgraphic
>
>  \input knuth
>
> \stoptext
>

This is my test.
Where is the problem ?

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.31 13:58



-- 
luigi


test-renoud.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] Color rendering & transparency with metapost

2008-10-31 Thread Renaud Aubin
Hi,

I have some trouble using a gradient background (solid) with a 
transparent element :

  \startMPinclusions
def test_shade (expr a, b) =
pickup pencircle scaled 1mm ;
color ca ; ca := \MPcolor{a} ;
color cb ; cb := \MPcolor{b} ;
color cc ; cc := \MPcolor{c} ;
sh := define_linear_shade(origin 
shifted(0cm,.5*\overlayheight),origin,ca,cb) ;
fill fullsquare xscaled \overlaywidth yscaled \overlayheight 
withshade sh;
draw origin withcolor cc;
draw origin shifted(0cm,-.25*\overlayheight) withcolor cc;
enddef ;
  \stopMPinclusions

  \setupcolors[state=start]
  \definecolor[a][r=.57254902,g=.784313725,b=.917647059]
  \definecolor[b][white]
  \definecolor[c][darkred]
  \starttext
 
  \defineoverlay[bgoverlay][\uniqueMPgraphic{bg_top_shade}]
  \setupbackgrounds[page][background=bgoverlay]
  \startuniqueMPgraphic{bg_top_shade}
test_shade(origin, origin shifted(0cm,1cm));
draw fullcircle scaled 10cm shifted (0cm,0.25*\overlayheight) 
withcolor transparent(1,0.5,white) withpen pencircle scaled 2cm;

 If you comment out the previous line the color rendering is 
definitelly different...

  \stopuniqueMPgraphic
 
  \input knuth
 
\stoptext

I have searched the ML without success, any idea ?

Regards,


Renaud
___
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] ctx files

2008-10-31 Thread Alan STONE
After giving it some further thought, I tried the following (which seems
more logical) but that doesn't work either...

*** ctx-test.tex ***

\starttext

\doifmode{mode1a}
{mode1a}

\doifmode{mode2a}
{\blank mode2a}

\stoptext

*** ctx-main.ctx ***




 








 


*** ctx-flags.ctx ***



texengine=luatex
interface=en
result=ctx-modes

*** ctx-modes1.ctx ***



mode1a

*** ctx-modes2.ctx ***



mode2a

*** end of code ***

A Google search for the XML include element didn't bring much wisdom either.
What's missing/wrong please ?

-- 
Best,
Alan

* texexec --lua foo
* ConTeXt  minimals ver: 2008.10.31 13:58 MKIV  fmt: 2008.10.31  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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] Using a .fea file disable arabic contextual analysis

2008-10-31 Thread Khaled Hosny
See the attached files, the mark features seem to work but contextual
forms (init, medi amnd fina) don't

Regards,


-- 
 Khaled Hosny
 Arabic localizer and member of Arabeyes.org team
\installfontfeature[otf][ardi]

\definefontfeature
 [fea]
 [mode=node,language=dflt,script=arab,
  init=yes,medi=yes,fina=yes,isol=yes,
  liga=yes,dlig=yes,rlig=yes,frac=yes,
  calt=yes,ccmp=yes,kern=yes,mark=yes,
  mkmk=yes,ardi=yes,featurefile=digit.fea]

\font\ara=arabtype*fea at 20pt\ara
\textdir TRT\pardir TRT
بِسْمِ اللَّهِ الرَّحْمَنِ الرَّحِيم

1234567890
\bye
lookup ArabicDigits {
lookupflag 0 ;
sub zero  by uni0660 ;
sub one   by uni0661 ;
sub two   by uni0662 ;
sub three by uni0663 ;
sub four  by uni0664 ;
sub five  by uni0665 ;
sub six   by uni0666 ;
sub seven by uni0667 ;
sub eight by uni0668 ;
sub nine  by uni0669 ;
} ArabicDigits ;

feature ardi {
script arab ;
language dflt ;
lookup ArabicDigits ;
} ardi ;


fea.pdf
Description: Adobe PDF document


signature.asc
Description: Digital signature
___
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] Using a .fea file disable arabic contextual analysis

2008-10-31 Thread Idris Samawi Hamid ادريس سماوي ح امد
Salaam, Khaled,


On Fri, 31 Oct 2008 08:12:34 -0600, Khaled Hosny <[EMAIL PROTECTED]>  
wrote:

> See the attached files, the mark features seem to work but contextual
> forms (init, medi amnd fina) don't

As a workaround, try using a fallback, defining two fontfeature's and  
letting arabtype fall back on itself for just those digits (untested here).

Best wishes
Idris

-- 
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] \use(sub)path

2008-10-31 Thread Alan STONE
>From what I've found...

- ConTeXt searches files up in the directory tree
- directories can be set with \usepath and/or \usesubpath

I haven't found how both of the latter commands works though.

Any hints would be most welcome.

Thanks,
Alan

-- 
* texexec --lua foo
* ConTeXt  minimals ver: 2008.10.08 23:34 MKIV  fmt: 2008.10.13  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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] \item doesn't work with ConTeXt (works with LuaTeX/TeX)

2008-10-31 Thread Hans Hagen
Mildred Ki'Lya wrote:
> Hi,
> 
> I have a strange error with ConTeXt. This error isn't produced using
> LuaTeX. The error seems to be in one of the CoTeXt files but I can't
> understand it. I hope some of you will be able to help me there.
> 
> The code is as simple as that:
> 
> 
>   = test.tex =
> 1 \begingroup
> 2   \item{1} test 1
> 3   \item{2} test 2
> 4 \endgroup
> 5
> 6 \end
> 7
>   
> 
> 
> 
> Now, if I run 'context test', I get at some point the following error:
> 
> ! Missing } inserted.
>  
> }
>  
>\endgroup 
> \stopitemgroup ...mdepth }\egroup \else \endgroup 
>   \global \advance 
> \itemdept...
> l.5 
> 
> ?
> 
> 
> Attached, the complete log.
> 
> I hope you'll be able to understand that strange error.

 > 1 \begingroup
 > 2   \item{1} test 1
 > 3   \item{2} test 2
 > 4 \endgroup

in this case \item grabs a paragraph and therefore the whole bunch till 
after the \endgroup

 > 1 \begingroup
 > 2   \item test 1 \par
 > 3   \item test 2 \par
 > 4 \endgroup

or

 > 1 \startitemize[n,packed]
 > 2   \item test 1
 > 3   \item test 2
 > 4 \stopitemize



-
   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] \item doesn't work with ConTeXt (works with LuaTeX/TeX)

2008-10-31 Thread Wolfgang Schuster
On Fri, Oct 31, 2008 at 2:46 PM, Mildred Ki'Lya <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a strange error with ConTeXt. This error isn't produced using
> LuaTeX. The error seems to be in one of the CoTeXt files but I can't
> understand it. I hope some of you will be able to help me there.
>
> The code is as simple as that:
>
>
>  = test.tex =
> 1 \begingroup
> 2   \item{1} test 1
> 3   \item{2} test 2
> 4 \endgroup
> 5
> 6 \end
> 7
>  
>
>
>
> Now, if I run 'context test', I get at some point the following error:
>
> ! Missing } inserted.
> 
>}
> 
>   \endgroup
> \stopitemgroup ...mdepth }\egroup \else \endgroup
>  \global \advance \itemdept...
> l.5
>
> ?
>
>
> Attached, the complete log.
>
> I hope you'll be able to understand that strange error.

1. Why don't you use the itemize environment?

2. End the paragraph before the end of the group.

\item 2 test 2 \par
\endgroup

or

\item 2 test 2

\endgroup


Wolfgang
___
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] \item doesn't work with ConTeXt (works with LuaTeX/TeX)

2008-10-31 Thread luigi scarso
On Fri, Oct 31, 2008 at 2:46 PM, Mildred Ki'Lya <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I have a strange error with ConTeXt. This error isn't produced using
> LuaTeX. The error seems to be in one of the CoTeXt files but I can't
> understand it. I hope some of you will be able to help me there.
>
> The code is as simple as that:
>
>
>  = test.tex =
> 1 \begingroup
> 2   \item{1} test 1
> 3   \item{2} test 2
> 4 \endgroup
> 5
> 6 \end
> 7
>  
>
See
http://wiki.contextgarden.net/Description





-- 
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] \item doesn't work with ConTeXt (works with LuaTeX/TeX)

2008-10-31 Thread Mildred Ki'Lya
Hi,

I have a strange error with ConTeXt. This error isn't produced using
LuaTeX. The error seems to be in one of the CoTeXt files but I can't
understand it. I hope some of you will be able to help me there.

The code is as simple as that:


  = test.tex =
1 \begingroup
2   \item{1} test 1
3   \item{2} test 2
4 \endgroup
5
6 \end
7
  



Now, if I run 'context test', I get at some point the following error:

! Missing } inserted.
 
}
 
   \endgroup 
\stopitemgroup ...mdepth }\egroup \else \endgroup 
  \global \advance \itemdept...
l.5 

?


Attached, the complete log.

I hope you'll be able to understand that strange error.

Thanks.

Mildred

-- 
Mildred Ki'Lya
╭─ mildred593@online.fr ──
│ Jabber, GoogleTalk: <[EMAIL PROTECTED]>
│ Site:   GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B
This is TeX, Version 3.1415926 (Web2C 7.5.7) (format=tex 2008.9.13)  31 OCT 
2008 14:45
**test
(./test.tex [1] )
Output written on test.dvi (1 page, 248 bytes).
___
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] ctx files

2008-10-31 Thread Alan STONE
On Wed, Oct 29, 2008 at 11:32 AM, Hans Hagen <[EMAIL PROTECTED]> wrote:

> > How do you call ctx files from within a main ctx file ?
>
> 






 
 
 


*** ctx-flags.ctx ***




 

texengine=luatex
interface=en
result=ctx-modes

 
 


*** ctx-modes1.ctx ***




 
 


mode1a


 


*** ctx-modes2.ctx ***




 
 


mode2a





*** end of code ***

Best,
Alan

-- 
* texexec --lua foo
* ConTeXt  minimals ver: 2008.10.08 23:34 MKIV  fmt: 2008.10.13  int:
english/english
* Ubuntu 8.04 Hardy Heron
___
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
___