Re: [NTG-context] XeTeX after ctxtools

2007-09-16 Thread Andrea Valle

Ok, I changed a bit the wiki.

http://wiki.contextgarden.net/XeTeX#Document_Encoding

Please, you who know :), check if you think it's ok.
Best

-a-


On 16 Sep 2007, at 23:49, Hans Hagen wrote:


Andrea Valle wrote:

(Thanks Hans)

On 15 Sep 2007, at 18:43, Hans Hagen wrote:


Andrea Valle wrote:


\enableregime[utf]


this one is not needed, xetex is utf



Ok. I read some infos on the wiki but I was a bit confused.
So:

- if I encode in utf-8 I don't have to specify regime \enableregime 
[utf]

- if I encode in another encodign (e.g. mac roman) I have to specify
\the correct \enableregime (here: [mac])

Am I right?


kind of ... i never tested regimes with xetex if only because i assume
that xetex users use utf8 of have recoded their docs to utf8 -)

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
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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] Interactive slides---hidden field on every page

2007-09-16 Thread Michal Kvasnička
Good morning or whatever you have now in Europe.

It seems that my mail have come to the list, so I dare to repost it:

I'm preparing my slides. Every slide is divided to three parts
(backgrounds): text, header, and bottom. I've got the navigation buttons in
the bottom. Now I'd like to add one more button that would open a field on
the current page---a field containing the list of content. I'd like it to go
to the \Topic I want to discuss and disappear.

I tried this:

\definefield[Content][check][HelpSetup][content][content]
\setupfields[reset]
\setupfield[HelpSetup]
  [width=fit,height=fit,frame=off,option={readonly,hidden}] %
\definesymbol[content][\SomeContentText]
\def\SomeContentText{%
  \startframedtext
[width=\textwidth, height=fit, frame=on,
 background=color, backgroundcolor=tmava,framecolor=svetla]%
  \placecontent}
  \stopframedtext
}
%
\setupbackgrounds
  [text]
  [%backgroundoffset=10pt,%.5cm,
   background={contentmenu,nextpage}]
%
\defineoverlay
  [ContentOnOff]

[{\goto{\framed[width=\overlaywidth,height=\overlayheight,frame=off]{\hss}}%

 [JS(Toggle_Hide{Content})]}]%\overlaybutton{JS(Toggle_Hide{Content})}]
%
\startinteractionmenu[bottom]
  \setupinteraction
[color=svetla,
 contrastcolor=black]
  \hbox to 600pt{%
\raise0.4em\hbox{%
  \framed[width=3em, height=0.7em, frame=off,
background={PageCounter,ContentOnOff}]{}}
\hss
\interactionbuttons[frame=off, width=8em]
 [firstpage,
  previouspage,nextpage,
  lastpage,
  PreviousJump,NextJump]%
\hbox to 1cm{\hss}%
\hbox to 44mm{%
  \interactionbuttons[frame=off][CloseDocument]\hss}%
 }

However, it doesn't work:

1. The list of content is placed only on one page, not at all of them as I
would like.

2. The field supposed to show/hide it isn't clickable---it isn't
interactive, and does nothing.

3. I use \Topic and \Subject as heads, and I don't know how to put them to
the list of content.

Can you possibly help me to solve this problem?

Sincerely yours
Michal Kvasnicka
___
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] need help for the installation of luatools

2007-09-16 Thread Dalyoung Jeong

Dear Thomas,

I found the folder /usr/local/Build/powerpc/TeXLive.2006. I  
remembered that I have tried to install TeX using the source before.


When I open terminal, .luatex in not implemented yet and "texexec -- 
make --all --pdftex" run  without any errors.


%
texexec --make --all --pdftex

TeXExec | using search method 'kpsewhich'
TeXExec | updating file database
mktexlsr: Updating /usr/local/gwTeX/texmf/ls-R...
mktexlsr: Updating /usr/local/gwTeX/texmf.gwtex/ls-R...
...
mktexlsr: Done.
TeXExec | using tex engine pdftex
TeXExec | using tex format path /Users/dalyoung/Library/texmf/web2c/ 
pdftex

TeXExec | generating tex format cont-en
This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) (INITEX)
(/usr/local/gwTeX/texmf.pkgs/web2c/natural.tcx)
...
%%%

As you see in the above output, it uses the searching method 'kpsewhich'
and '/usr/local/gwTeX/texmf.pkgs/web2c/natural.tcx'
But after running 'source ~/.luatex', it used the same searaching  
path but different path for format and engine paths as following even  
though I removed /usr/local/Build folder.

However, to run 'luatools --generate', I need to run .luatex.
Still, I have a problem in 'luatools --ini --compile...'.
%%%
 texexec --make --all --pdftex

TeXExec | using search method 'kpsewhich'
TeXExec | updating file database
...
TeXExec | using tex engine pdftex
TeXExec | using tex format path /usr/local/Build/powerpc/TeXLive.2006/ 
texmf/web2c/pdftex

TeXExec | generating tex format cont-en
...
TeXExec | tex engine path: /usr/local/Build/powerpc/TeXLive.2006/ 
texmf/web2c/pdftex
TeXExec | mps engine path: /usr/local/Build/powerpc/TeXLive.2006/ 
texmf/web2c

...


So I think that .luatex change the setting for the ConTeXt.
I attached .luatex file which shows the TDS in my mac.
By the  way, what is 'whence'? It is a unknown cmd in my machine.
and how to remove '/usr/local/Build/...' from the engine path?

Thank you for your help.

Best regards,

Dalyoung

export TEXMFCACHE="/tmp"
export TEXMFCNF="/usr/local/gwTeX/"
export 
TEXMF="{/Users/dalyoung/Library/texmf,/usr/local/gwTeX/texmf.local,/usr/local/gwTeX/texmf.pkgs,/usr/local/gwTeX/texmf.gwtex,/usr/local/gwTeX/texmf.texlive,/usr/local/gwTeX/texmf}"
export 
LUAINPUTS="{/usr/local/gwTeX/texmf.pkgs/tex/context/base,/usr/local/gwTeX/texmf.pkgs/scripts/context/lua}"


___
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] Windows Installer for MsWinContext

2007-09-16 Thread Idris Samawi Hamid
Hi,

On Sun, 16 Sep 2007 14:41:16 -0600, Vyatcheslav Yatskovsky  
<[EMAIL PROTECTED]> wrote:

> Hello,
>
> I'm back with my idea of installer for mswincontext  distribution. I  
> successfully use my local (post-install) version , which simply sets  
> env. vars, but I feel there is need for more. Anticipating new  
> mswincontext build, I can implement the installer for it using free Inno  
> Setup software.

Good project!

> The controversy is about setup file content. I see it as whole  
> mswincontext, because it is declared as minimal distribution (so,  
> nothing can be thrown away). However, I was suggested on this list to  
> make some parts downloadable on demand, so I need to ask: what parts to  
> make?

I believe you should just support the whole mswincontext, and install it  
in C:\ConTeXt etc. Please do not use
C:\Program Files ;-)

Perhaps the docs should be an install option, as they are quite huge.

Some things like the complete TeX-Gyre font suite need to be added to  
mswincontext or given as an option. There are other modules as well that  
might make good options for the installer.

> In general, I believe that if classical Windows installer for ConTeXt  
> were available, it would gain more popularity and appreciation.

A true stand-alone ConTeXt has been a goal I have pushed for a number of  
years now, and from what I understand Hans has heading more and more in  
that direction.

> Of course, I'd like to hear from Hans and Taco what they think about it,  
> and whether they dare to facilitate this.

My only real question is how to also support a minimal LaTeX distribution  
side-by-side. I hardly use it, but many of us still have legacy documents  
we need to process now and then. Maybe we can take the LaTeX portion of  
XemTeX and make it an install option as well. A couple years back I  
actually dumped the XemTeX LaTeX files into my C:\ConTeXt\tex\texmf tree  
and it worked (and mswincontext is closer to fpTeX/Fabrice's way than to  
the MiKTeX way AKAIK). Since ConTeXt always uses \texmf-local there was no  
conflict. OTOH there may be other issues... maybe a dedicated \texmf-latex  
tree branch is called for...

Good luck and all the

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

___
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] Greek in luatex

2007-09-16 Thread Hans Hagen
Thomas A. Schmitz wrote:
> Hi Arthur, Taco,
> 
> you're my heroes! Changing the order of the lookup tables in the .fea  
> file actually took care of the problem. Thanks for looking into this,  
> now I get the results I was expecting; every substitution is applied  
> to the font! Once the initial lookup has been done, this is  
> reasonably fast, too, so I like it. I'm eagerly waiting for teh new  
> release next week to see if this works with copy-and-past from pdfs.  
> So this appears to be one way to deal with ASCII input a la babel.  
> Easy to implement, but fails on fonts that don't have the glyphs for  
> the Latin characters.

arthur mentions the final sigma in the fea file .. can be a (part of) 
feature too (like fina)


> One trivial question: when I want to experiment with feature files,  
> the cached instance of the font seems to be in the way. Only after  
> deleting the current luatex-cache, regenerating it and recompiling  
> the format do I get proper results. Is there an easier/faster way to  
> do this?

jumping the version number of the otf handler will force this, but this 
is a bad idea; also, caching is fast because no file checking has to be 
done, so deleting cached files (just the one you test) is the price you 
pay when developing a font (fea) file

btw, the fea file can be part of the distribution (but we need to think 
of a naming scheme)

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] How to process simple HTML files with LuaTeX

2007-09-16 Thread Hans Hagen
Mojca Miklavec wrote:

> I have tried exactly that before, but this example fails to work for
> me, or I don't know how to apply it:

i rewrote the parser (both xml and semi-xpath) so it may have been 
broken, i'll upload a new beta tomorrow

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] How to process simple HTML files with LuaTeX

2007-09-16 Thread Hans Hagen
Aditya Mahajan wrote:

> (Caveat: I do not really know lua regex, and have not tried out the 
> code)

they are not regexp but expressions -)

> Assuming lua follows standard regex syntax, this means
> 
> & # The letter &
> ( # start a group
> .. # any character
> - # As few as needed
> ) # end group
> ; # the letter ;
> 
> so this will match all entities.

just &(.-); with () being the capture


> If it helps, the equivalent vim regex will be
> \&\(.\{-}\);
> 
> I guess that $1 (the first group, that is everything that matches .-) 

%1

> will be compared with mojcaentities table and replaced accordingly. 

indeed

> This looks like a really nice feature of lua. In Ruby and Vim, I often 
> find myself writing a bunch of similar regex, and always wished there 
> was something like what lua does.

the nice thing about many lua feature is that less code (lua c code) 
behaves more powerful




-
   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] XeTeX after ctxtools

2007-09-16 Thread Hans Hagen
Mojca Miklavec wrote:

> Another possibility would be to use LuaTeX. It should work OK, but
> again, there is no 100% guarantee (I created some newspaper with it
> back in June and besides all the problems I had every now and then, it
> was pre-alpha after all, our color laser at university still objects

Can you reprocess that doc and test again? Color in mkiv is implemented 
completely different from mkii but it should be ok now.

> I hope that the problem with non-working PDFs will be resolved really
> soon, so if you have a few days more to wait ... in the meantime you
> can try LuaTeX.

in a few days font issues in the binary will be resolved (subsetting and 
such) so ...

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] XeTeX after ctxtools

2007-09-16 Thread Hans Hagen
Andrea Valle wrote:
> (Thanks Hans)
> 
> On 15 Sep 2007, at 18:43, Hans Hagen wrote:
> 
>> Andrea Valle wrote:
>>
>>> \enableregime[utf]
>>
>> this one is not needed, xetex is utf
> 
> 
> Ok. I read some infos on the wiki but I was a bit confused.
> So:
> 
> - if I encode in utf-8 I don't have to specify regime \enableregime[utf]
> - if I encode in another encodign (e.g. mac roman) I have to specify 
> \the correct \enableregime (here: [mac])
> 
> Am I right?

kind of ... i never tested regimes with xetex if only because i assume 
that xetex users use utf8 of have recoded their docs to utf8 -)

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
___


[NTG-context] Windows Installer for MsWinContext

2007-09-16 Thread Vyatcheslav Yatskovsky
Hello,

I'm back with my idea of installer for mswincontext  distribution. I 
successfully use my local (post-install) version , which simply sets env. vars, 
but I feel there is need for more. Anticipating new mswincontext build, I can 
implement the installer for it using free Inno Setup software.
The controversy is about setup file content. I see it as whole mswincontext, 
because it is declared as minimal distribution (so, nothing can be thrown 
away). However, I was suggested on this list to make some parts downloadable on 
demand, so I need to ask: what parts to make? 
In general, I believe that if classical Windows installer for ConTeXt were 
available, it would gain more popularity and appreciation. Of course, I'd like 
to hear from Hans and Taco what they think about it, and whether they dare to 
facilitate this.

Best,
Vyatcheslav Yatskovsky

___
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] How to process simple HTML files with LuaTeX

2007-09-16 Thread Aditya Mahajan
On Sun, 16 Sep 2007, Mojca Miklavec wrote:

> On 9/14/07, Hans Hagen <[EMAIL PROTECTED]> wrote:

>> mojcasentities = {
>> nbsp = " ",
>> le   = "'\\mathematics{\\le}'
>> }
>>
>> local d[k]= d[k]:gsub("&(.-);",mojcasentities)
>
> Yes, I saw it, but didn't try to understand what the &(.-) serves for.

(Caveat: I do not really know lua regex, and have not tried out the 
code)

Assuming lua follows standard regex syntax, this means

& # The letter &
( # start a group
. # any character
- # As few as needed
) # end group
; # the letter ;

so this will match all entities.

If it helps, the equivalent vim regex will be
\&\(.\{-}\);

I guess that $1 (the first group, that is everything that matches .-) 
will be compared with mojcaentities table and replaced accordingly. 
This looks like a really nice feature of lua. In Ruby and Vim, I often 
find myself writing a bunch of similar regex, and always wished there 
was something like what lua does.

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] Greek in luatex

2007-09-16 Thread Thomas A. Schmitz
Hi Arthur, Taco,

you're my heroes! Changing the order of the lookup tables in the .fea  
file actually took care of the problem. Thanks for looking into this,  
now I get the results I was expecting; every substitution is applied  
to the font! Once the initial lookup has been done, this is  
reasonably fast, too, so I like it. I'm eagerly waiting for teh new  
release next week to see if this works with copy-and-past from pdfs.  
So this appears to be one way to deal with ASCII input a la babel.  
Easy to implement, but fails on fonts that don't have the glyphs for  
the Latin characters.

One trivial question: when I want to experiment with feature files,  
the cached instance of the font seems to be in the way. Only after  
deleting the current luatex-cache, regenerating it and recompiling  
the format do I get proper results. Is there an easier/faster way to  
do this?

Will now go on and experiment some more, especially with type1/afm- 
based fonts. Thanks a lot, best wishes

Thomas

On Sep 16, 2007, at 10:22 AM, Taco Hoekwater wrote:

>
> Hi guys,
>
> Try this ordering:
>
>> lookup GreekBabelLookupMultiple {
>> ...
>> } GreekBabelLookupMultiple ;
>>
>> lookup GreekBabelLookupSimple {
>>  ...
>> } GreekBabelLookupSimple ;
>>
>
>
>
___
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] Greek in luatex

2007-09-16 Thread Thomas A. Schmitz

On Sep 16, 2007, at 3:08 PM, Arthur Reutenauer wrote:

>  Yes, it works. So Fontforge is sensitive to the order in which the  
> lookups
> are defined in the file? Interesting ...
>
>   Thomas, you can try this but I have made a mistake in the Unicode  
> code
> for omega with subscribed iota: it should be 1FF3 and not 1FD3.
>
>   Arthur

Yep, I had already fixed that (and also replied to Taco's message,  
the context list is again a bit out of order today). Arthur, while  
we're at it: could you try and insert this line into the fea-file:

sub quotedbl quotesingle i by un1FD3 ;

whenever I try anything like this with the quotedbl character (which  
produces some ligatures), I get this error:

 Fatal error occurred, no output PDF file produced!

(Or similar errors with other fonts). The mechanism for the single  
dieresis works:

sub quotedbl i by uni03CA ;

but nothing with quotedbl + something else. Do you have any ideal  
what triggers this error?

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] XeTeX patch

2007-09-16 Thread Mojca Miklavec
On 9/16/07, Andrea Valle wrote:
>
> Then:
> texexec --make --all
> texexec --make --all --xetex
>
>
> (I guess the first is useless if I execute the second, isn't it?)

You need the first one for pdfTeX and the second one for XeTeX. (If
you only work with XeTeX, then you don't need the first one, and for
the little patch which was only relevant to XeTeX anyway you don't
need the first one at all.)

> YES!
> Alleluja, alleluja,  it works, no complaining, with the test file:

That's nice to hear. So Hans, here you have the second vote for your
latest patch :)

Mojca
___
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] Greek in luatex

2007-09-16 Thread Arthur Reutenauer
> Try this ordering:

  Yes, it works. So Fontforge is sensitive to the order in which the lookups
are defined in the file? Interesting ...

  Thomas, you can try this but I have made a mistake in the Unicode code
for omega with subscribed iota: it should be 1FF3 and not 1FD3.

Arthur
___
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] XeTeX patch

2007-09-16 Thread Andrea Valle

Really thanks a lot Mojca for the help.

I replaced the two files, I found two copies of font-ini.tex and  
replaced them all.


Then:
texexec --make --all
texexec --make --all --xetex


(I guess the first is useless if I execute the second, isn't it?)

YES!
Alleluja, alleluja,  it works, no complaining, with the test file:

%\enableregime[utf]
\setuppapersize[S6][S6]
%\setupbodyfont[ss, 12pt]
\definetypeface[Optima][rm][Xserif][Optima]
\setupbodyfont[Optima]

\starttext

\startitemize
\item nome dell'insegnamento (es. $\to$ Storia del cinema)
\item settore scientifico-disciplinare (SSD, es. $\to$ l-art/06)
\item numero di crediti (cfu, es. $\to$ 10)
\stopitemize
La votazione è irrilevante. Queste informazioni vanno inserite in un  
file di testo in una forma simile:

\stoptext



And works also with my photobook which now compiles exactly like this:
http://www.cirma.unito.it/research/alternando/photo/photoBookX.pdf


\setuppapersize[S6][S6]
\setuppagenumber[state=stop]

\define[1]\Capt{{\darkred \switchtobodyfont[8pt] #1}}

\definetypeface[Optima][rm][Xserif][Optima]
\definetypeface[Skia][rm][Xserif][Skia]

\setupbodyfont[Optima]


\setuplayout[
topspace=0.75cm,
bootmspace=0cm,
headerheight=0cm,
footerheight=0cm,
]
%\setupbodyfont[roman, 70pt]
\setupheads[sectionnumber=no]

%\enableregime[mac]
\mainlanguage[it]
\setupcolors[state=start]

\starttext
\definelayer [mybg] 
[x=0mm, y=0mm,  
width=\paperwidth, height=\paperheight
]

\definelayer[mybg2] 
[x=0mm, y=0mm,  
width=\paperwidth, height=\paperheight
]

\definelayer[mybg3] 
[x=0mm, y=0mm,  
width=\paperwidth, height=\paperheight
]
\definelayer[mybg4] 
[x=0mm, y=0mm,  
width=\paperwidth, height=\paperheight
]



\setlayer   [mybg]  
[x=0\paperwidth, y=0\paperheight]
{\color[lightgray]\externalfigure[alternando]
[height=1\paperheight,width=1\paperwidth]}
\setlayer   [mybg2] 
[x=0\paperwidth, y=.45\paperheight]
{\color[darkred]\externalfigure[hbar]
[height=.1\paperheight,width=\paperwidth]}
\setlayer   [mybg3] 
[x=.9\paperwidth, y=0\paperheight]
{\color[lightgray]\externalfigure[vbar]
[height=\paperheight,width=.05\paperwidth]}

\setupbackgrounds[page][background=mybg]


\startstandardmakeup
\strut
\vfill
{\color[darkred]
{\tfc Alternating from 1 to X $\to$ homage to A e B}
\crlf
{\tfb A photo documentation}
\vfill
\setupbodyfont[Skia]
il guardaroba della mente \hfill Oratorio di San Filippo \hfill 20/06/03
}
\stopstandardmakeup

\setupbodyfont[Optima]

\setupbackgrounds[page][background=mybg2]
\section{Design/Test}
\page

\setupbackgrounds[page][background=mybg3]


\startcombination[2*2]
{\externalfigure[test/cubes2][height=.5\textheight
]}{\Capt {Make it simple: use wooden cubes on a plane}}
{\externalfigure[test/testing1][height=.5\textheight
]}{\Capt{If the plane is transparent, a webcam can be used}}
{\externalfigure[test/testing2][height=.5\textheight
]}{\Capt{In the lab: analog cubes and digital signals}}
{\externalfigure[test/testing3][height=.5\textheight
]}{\Capt{What's going on up there? extracting the parameters}}
\stopcombination
\page

[snip]

\stoptext

More, it works fast:
runtime: 14.904212


Wow

Best



-a-

On 16 Sep 2007, at 12:06, Mojca Miklavec wrote:


Oh, and try to patch this file as well.

Mojca



--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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] How to process simple HTML files with LuaTeX

2007-09-16 Thread Mojca Miklavec
On 9/14/07, Hans Hagen <[EMAIL PROTECTED]> wrote:
> Mojca Miklavec wrote:
> > On 9/14/07, Hans Hagen wrote:
> >> Mojca Miklavec wrote:
> >>> Hello,
> >>>
> >>> I was trying to figure out how to process simple HTML files with the
> >>> new code, but I fail to understand the details. Here's a simple file I
> >>> would like to process:
> >>>
> >> keep in mind that this is still somewhat experimental
> >
> > Sure :)
> > That's why I'm sending files for testing :) :) :)
>
> - i'll make a table mapper (need it anyway), cals tables are already
> provided
>
> - idem for preformatted and verbatim

Thanks a lot. I'm waiting patiently :)

> - your code:
>
> d[k] = dk:gsub(" ",' ')
> dk = d[k]
> d[k] = dk:gsub("≤", '\\mathematics{\\le}')
>
> local dk = d[k]
> dk = dk:gsub(" ",' ')
> dk = dk:gsub("≤", '\\mathematics{\\le}')
> d[k] = dk
>
> or 
>
> mojcasentities = {
> nbsp = " ",
> le   = "'\\mathematics{\\le}'
> }
>
> local d[k]= d[k]:gsub("&(.-);",mojcasentities)

Thanks a lot!

> (there probably already is code for that)

Yes, I saw it, but didn't try to understand what the &(.-) serves for.
In any case, that was the wrong place to replace le with something.

Thanks again,
Mojca
___
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] How to process simple HTML files with LuaTeX

2007-09-16 Thread Mojca Miklavec
On 9/14/07, Hans Hagen wrote:
> Mojca Miklavec wrote:
>
> > Great! This works perfect and seems much easier to write than the old
> > code, though I still have no idea how to implement some parts of it:
> > - where to plug in the entities such as  , ≤, ...
>
> \xmlutfize{main}

Thanks. I saw it, but had no idea how to use it. I need to test more
extensively ... :)

> > - how to catch classes: how to differentiate between title
> > and title
> > - and some more - there are some simple examples in the attachment
> > (too long to copy-paste)
>
> \doifelse {\xmlatt{#1}{class}} {whatever} {
> dothis
> } {
> dothat
> }

I have tried exactly that before, but this example fails to work for
me, or I don't know how to apply it:

% test.html



  Title 1
  Title 2



% test.tex

\startxmlsetups all:html
\xmlsetsetup{main}{h1}{*}
\stopxmlsetups
\xmlregistersetup{all:html}

\startxmlsetups h1
This title belongs to class (\xmlatt{#1}{class}): \xmlflush{#1}.\par
\stopxmlsetups

\starttext
\xmlprocess{main}{test.html}{}
\stoptext

Class always comes out empty.

Thanks a lot,
Mojca
___
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] bib module fails to produce publication list under certain conditions

2007-09-16 Thread Taco Hoekwater
Jesse Alama wrote:
> 
> PS It be `criterion' rather than `criterium'.  According to my
> dictionary, the latter means "a one-day bicycle race on a circuit road
> course".

This is a language mixup in the context core that I doubt can be
fixed any more (the dutch word for criterion is actually criterium,
and all ConTeXt commands started out in dutch)

Best wishes,
Taco


___
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] XeTeX after ctxtools

2007-09-16 Thread Mojca Miklavec
On 9/16/07, Andrea Valle wrote:
> I was happy with old install, with bugs and xetex low level commands :-)
>
> So, er, which strategy you gurus suggest?
>
> Reinstall from scratch (old) TeXLive 2007 waiting for a new release?

That's one possibility, of course.

You can also download any ConTeXt version from here:
http://foundry.supelec.fr/frs/?group_id=14
and then unzip it into texmf-local (or wherever the ConTeXt files
currently are) and remake formats.

But there is still one thing I fear: font handling in XeTeX has been
broken since TeX Live came out, so I don't know if there is any
"stable" XeTeX font support in any of the versions between the one
from TeX Live 2007 and the latest one. There are some late versions
and fixes, but I really don't know which one to suggest. Perhaps Taco
knows better. Or simply take the one from TeX Live again.

Another possibility would be to use LuaTeX. It should work OK, but
again, there is no 100% guarantee (I created some newspaper with it
back in June and besides all the problems I had every now and then, it
was pre-alpha after all, our color laser at university still objects
to print it out. I shouldn't have mentioned that, but only to warn you
that any last-minute fixes in ConTeXt can be problematic, if you don't
have at least two days inbetween, so that all the little bugs biting
you in that release can be fixed.)

I hope that the problem with non-working PDFs will be resolved really
soon, so if you have a few days more to wait ... in the meantime you
can try LuaTeX.

wget http://www.pragma-ade.com/context/install/macosxtex.zip
wget http://www.pragma-ade.com/context/install/justtex.zip
unzip macosxtex.zip
unzip justtex.zip
cd tex
. setuptex
luatools --generate
texexec --make --all
texexec --make --xtx --all
texexec --make --lua --all

Don't worry, that won't break your distribution. You can use the
standalone context completely isolated from everything else. You only
need to issue ". setuptex" each time you want to use the standalone.
In all the other cases, your system-installed TeX will be used.

Mojca
___
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] XeTeX after ctxtools

2007-09-16 Thread Mojca Miklavec
On 9/16/07, Andrea Valle wrote:
> On 15 Sep 2007, at 18:43, Hans Hagen wrote:
>
>> \enableregime[utf]
>>
>> this one is not needed, xetex is utf
>
>
> Ok. I read some infos on the wiki but I was a bit confused.
> So:
>
> - if I encode in utf-8 I don't have to specify regime \enableregime[utf]
> - if I encode in another encodign (e.g. mac roman) I have to specify \the
> correct \enableregime (here: [mac])
>
> Am I right?

a) Yes. In LuaTeX and XeTeX utf-8 already is the default regime. Only
for pdfTeX you still need \enableregime[utf-8] (but it doesn't hurt if
you leave it in XeTeX and LuaTeX)

b) Yes, it should be so in theory. But to be honest, it doesn't work,
although it's probably a rather trivial patch. ConTeX+XeTeX currently
simply ignores the \enableregime command. (Most people, esp. the ones
aware about XeTeX, write in utf-8 anyway, so nobody has complained
enough about the lack of that functionality.) You can still use the
low-level command
\XeTeXinputencoding "..."
(I don't know which name exactly you need for mac roman, but that should work.)

But then again:
- I've been just playing a little bit with it again and figured out
that things have changed during the MKIV transition a bit. XeTeX
doesn't ignore \enableregime any more (as it was the case some time
ago), and that functionality should be adapted (\enableregime should
not be ignore, but should resolve to the correct behaviour properly).
- In addition to that, the default fonts loaded are now OpenType LM
instead of the old ones, which is much better, but during loading,
[encoding=uc] has been omitted (and that should be fixed as well),
which means that \`e or \egrave won't work as they used to.

So my answer would be: don't use \enableregime in XeTeX at the moment
and use UTF-8. But the other problem with math fonts is much more
critical and needs to be fixed as soon as possible. That one can wait
a bit.

Mojca
___
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] Greek in luatex

2007-09-16 Thread Taco Hoekwater

Hi guys,

Try this ordering:

> lookup GreekBabelLookupMultiple {
> ...
> } GreekBabelLookupMultiple ;
> 
> lookup GreekBabelLookupSimple {
>   ...
> } GreekBabelLookupSimple ;
> 


Best wishes,
Taco
___
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] XeTeX after ctxtools

2007-09-16 Thread Andrea Valle

I was happy with old install, with bugs and xetex low level commands :-)

So, er, which strategy you gurus suggest?

Reinstall from scratch (old) TeXLive 2007 waiting for a new release?

I have that project of typesetting our journal which will start in a  
month.
(I'd like to use system fonts, also to approximate the original  
typesetting)



Thanks

Best

-a-



On 15 Sep 2007, at 21:41, Hans Hagen wrote:


Mojca Miklavec wrote:

(I'm sorry for the delayed answer.)

On 9/15/07, Hans Hagen wrote:

Andrea Valle wrote:

** WARNING ** Invalid CMap
** ERROR ** pdf_ref_obj(): passed invalid object.
i wonder what that object is .. and who generates the ref, could  
be a
special but you do nothing special in the example so i'm  
puzzled ... do

others have this problem?


Yes. I don't remember whether I already complained about it or not,
but here's another (minimal) example to reproduce it:

\starttext
\startformula
a+b=\int_{i=0}^{\infty}\Gamma\,dx
\stopformula
\stoptext

The main problem (besides being quite slow for the default LM) is  
that

"font loading" in ConTeXt+XeTeX now does the following:

if ("FontName" is a valid font) then
 use "FontName"
else
use "[FontName]"
end

And that one forgets the third possibility: about the old tfm fonts
which should be loaded without any quotes, for example rm-lmr12

\font\a="rm-lmr12" works, but \font\a="rm-lmr12" at 12pt doesn't, and
ConTeXt tries to use that one. Normally TeX would stop: generate and
report the error at that point, but ConTeXt currently skips those
errors on purpose and tries to use an unexisting font, so it results
in a broken PDF.


i will send you a patch (yet another test for a spec -)

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
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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] XeTeX after ctxtools

2007-09-16 Thread Andrea Valle

(Thanks Hans)

On 15 Sep 2007, at 18:43, Hans Hagen wrote:


Andrea Valle wrote:


\enableregime[utf]


this one is not needed, xetex is utf



Ok. I read some infos on the wiki but I was a bit confused.
So:

- if I encode in utf-8 I don't have to specify regime \enableregime[utf]
- if I encode in another encodign (e.g. mac roman) I have to specify  
\the correct \enableregime (here: [mac])


Am I right?

Best

-a-




--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> [EMAIL PROTECTED]
--


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.

(Annabel Chong)




___
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] bib module fails to produce publication list under certain conditions

2007-09-16 Thread Jesse Alama
Jesse Alama <[EMAIL PROTECTED]> writes:

> Taco Hoekwater <[EMAIL PROTECTED]> writes:
>
>> Jesse Alama wrote:
>>> I recently came across an unusual error with the bib module: depending
>>> on the section structure of a document, the publication list is
>>> sometimes not produced.  I've attached a simple document and a one-entry
>>> bib file that illustrates the error.  If either the second section of
>>> the subsection is commented out, the publication list is produced; if
>>> both are uncommented, the publication list is not produced.  What might
>>> be going on?
>>
>> This is a known limitation introduced by the transparant per-section
>> publication support (it is now clear I should not have done that,
>> but is too late to fix now).  Normally being explicit like
>>
>>\placepublicationlist[criterium=all]
>>
>> fixes the problem.
>
> That solved the problem -- thanks.  (Using
>
>   \completepublicationlist[criterium=all] ,
>
> which is what I actually need, also works.)
>
> Thanks,
>
> Jesse
>
> PS It be `criterion' rather than `criterium'.  According to my
> dictionary, the latter means "a one-day bicycle race on a circuit road
> course".

Clearly it should read

  "It is `criterion' rather than `criterium'."

rather than

  "It be `criterion' rather than `criterium'."

(I one-up'd Taco by making a grammatical rather than lexicographic
error.  Failure to proofread messages before sending them will be the
death of me yet.)

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])

___
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
___