Re: [NTG-context] \index inserts whitespace

2009-07-10 Thread Wolfgang Schuster


Am 10.07.2009 um 20:03 schrieb Hans Hagen:


Wolfgang Schuster wrote:

Am 09.07.2009 um 23:16 schrieb Hans Hagen:
\def\donoregister #1#2#3{\doflushatpar{\doprocesspageregister{#1}{} 
{}{#2}{#3}}}   % register key - entry
\def\dodoregister#1#2#3#4{\doflushatpar{\doprocesspageregister{#1} 
{}{#2}{#3}{#4}}} % register key altnum entry

Thanks, this works.
Is there also a way to take care of situations where the \index  
command appear between two vertical skips, a stupid example is


no, an index inserts something in the stream (after all it has to be  
anchored);

in such a case you can try \EveryPar{\index{...}}


this suppress the extra skip but executes the index at each paragraph  
till the next

\EveraPAr or the end of the document


(or use the delayed flush at par mechanism)


do you mean \flushatnextpar because this works

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] Mark IV Syntax highlighting support

2009-07-10 Thread Hans Hagen

Renaud Aubin wrote:

Hi folks !

I have just finished a first draft of pret-xml.lua:
- I need to improve its coverage (html);
- DTD declaration is not yet managed;
- I do nothing about re-indentation since I prefer to format my xml 
sample by myself (by hand or using xmllint);
- That's my first try to lua/luatex (after several months of Java...) so 
my definitions (esp. for functions) is not clean at all (you have been 
warned);


I have done it the "trial/error" way without much design reflexion just 
for fun (I'm on vacation)... I'm not sure it will be reusable...


Take all your test files and please report issues (or give me advices)! ;)


syntax highlighting is kind of tricky esp since we can have either 
correct syntax or faulty (can be educational)


this is why the pretty printers work in a rather dumb non validating 
mode; however, in mkii we also have parser based variants for xml pretty 
printing


in mkiv i will provide only a few pretty printers, i.e. the ones needed 
for my manuals; these will be organized under pre-*


in addition i will provide a user installable variant but i need to 
think about it a bit; we also need more verbose names then so that there 
can be multiple pretty printers per file type; (i will also make a basic 
configureable mapper but that's for later)


so, we can have both validating and non validating pretty printing and 
multiple variants


in any case .. keep making and testing them .. i'll try to cook up the 
plug in mechanism and naming scheme asap


Hans


ps. dtd declaration etc ... i shall provide a pretty printer based on th 
ebuild in xml parser (kind of like what we have in mkii); of course this 
leaves along non validated coloring




-
  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] colo-hex

2009-07-10 Thread Hans Hagen

Peter Rolf wrote:

Hi,

there is a small bug in colo-hex, which leads to slightly wrong colors 
(at max. -0.390625%).


fixed in next beta (current), both in mkii and mkiv (built in btw)


-
  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] Font Path Problem.

2009-07-10 Thread Hans Hagen

Stirling Westrup wrote:

I'm still having no luck getting mkiv to recognize my extra .ttf
fonts. Does anyone know where I might look for some hints?


can you try to set OSFONTDIR?

like

OSFONTDIR=c:/windows/fonts//

then you need to do

mtxrun --script fonts --reload

in order to get that path hashed


-
  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] \index inserts whitespace

2009-07-10 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 09.07.2009 um 23:16 schrieb Hans Hagen:

\def\donoregister 
#1#2#3{\doflushatpar{\doprocesspageregister{#1}{}{}{#2}{#3}}}   % 
register key - entry
\def\dodoregister#1#2#3#4{\doflushatpar{\doprocesspageregister{#1}{}{#2}{#3}{#4}}} 
% register key altnum entry


Thanks, this works.

Is there also a way to take care of situations where the \index command 
appear between two vertical skips, a stupid example is


no, an index inserts something in the stream (after all it has to be 
anchored); in such a case you can try \EveryPar{\index{...}} (or use the 
delayed flush at par mechanism)



\starttext

text
\blank\index{text}

\blank
more text

\stoptext

In my document this appears in the form

\setup[commanda]\index{commanda}

\setup[commandb]\index{commandb}

and

\setup[commandc]\index{commandc}

\starttyping
...
\stoptyping

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
___ 




--

-
  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] Fwd: \setuppagenumbering[]

2009-07-10 Thread Wolfgang Schuster


Am 08.07.2009 um 05:55 schrieb Ciro Soto:


Thank you Wolfgang,
here is an example that doesn't work.  What am I doing wrong?



\definepapersize[CD][width=5.5in,height=8.5in]
\setuppapersize[CD][letter]
\setuppagenumbering [location=]
\setupfootertexts [\pagenumber]
\setupheadertexts [C.S.][Freedom][C.S.][Freedom]
\setuppagenumbering [alternative=doublesided]
\starttext
\tolerance 1
\startfrontmatter
\start


why \start?


\setuppagenumbering [location=footer,conversion=romannumerals,]


\setuppagenumbering [location=footer]
\setupuserpagenumber[numberconversion=romannumerals] % new mkiv command

you should do these setups in s sectionblock/structureblockenvironment


\setuppagenumber[number=1]

\setupheader [state=stop]
\setupfooter [state=stop]

BOOK TITLE
\vfill


Do you look for start/stopstandardmakeup?


\page[blank,odd]


ANOTHER BOOK TITLE PAGE

\page

\setupfooter [state=start]

COPYRIGHT PAGE
\page

ANOTHE PAGE
\page


Why the \page?


\stop

\stopfrontmatter

\startbodymatter
\setuppagenumber [number=1]
\setuppagenumbering[conversion=numbers]


No need to set the number conversion here.


PAGE 1
\page
page 2
\page
\stoptext
\end


Why \end?

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] \index inserts whitespace

2009-07-10 Thread Wolfgang Schuster


Am 09.07.2009 um 23:16 schrieb Hans Hagen:

\def\donoregister #1#2#3{\doflushatpar{\doprocesspageregister{#1}{}{} 
{#2}{#3}}}   % register key - entry
\def\dodoregister#1#2#3#4{\doflushatpar{\doprocesspageregister{#1}{} 
{#2}{#3}{#4}}} % register key altnum entry


Thanks, this works.

Is there also a way to take care of situations where the \index  
command appear between two vertical skips, a stupid example is


\starttext

text
\blank\index{text}

\blank
more text

\stoptext

In my document this appears in the form

\setup[commanda]\index{commanda}

\setup[commandb]\index{commandb}

and

\setup[commandc]\index{commandc}

\starttyping
...
\stoptyping

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] Hyphenation list and umlauts

2009-07-10 Thread tomfloeren


On Jul 10, 2009, at 11:21 AM, Mojca Miklavec wrote:


On Fri, Jul 10, 2009 at 07:32, Thomas Floeren wrote:
Taco Hoekwater  scribbled on Thursday,  
July 09, 2009 8:40 AM:



Lutz Haseloff wrote:

Hi Thomas,

You are right, "stand-salarm" is definitely wrong. I think too,  
that

LuaTex should hyphenate the word like given in \hyphenation{}. It
seems that \hyphenation{} is ignored.


Hi guys,

Are you using the binary from minimals, or the binary from the
supelec.fr package, here:

http://foundry.supelec.fr/gf/project/luatex/frs/

There might be a difference.

Best wishes,
Taco



Hi,

Unfortunately I can not make work the luatetex.exe from your link.

luatools --generate seems to work fine, but luatools --selfupdate  
gives "LuaTools | fileio: unable to locate new script", same for  
mtxrun --selfupdate.
context --make cont-en then gives "MTXrun | unknown script  
'context.lua' or 'mtx-context.lua'".


I think I have a 'regular' minimals installation (the dll versions  
of luatex work).


Any hint?


Maybe you need the latest ConTeXt to be able to use the latest luatex?


The latest I find is the 2009-06-14 21:04 (from http://www.pragma-ade.com/download-2.htm) 
; is this correct or am I missing something?



1.) you can fetch luatex from w32tex
2.) you might have to use --context=experimental without generating
formats, then manually overwritting luatex binary and finally
repeating all the steps to build the formats

But there's no guarantee (maybe try that in a separate copy of  
minimals).


Mojca




Thanks a lot
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] Duotones with spot colors

2009-07-10 Thread Piotr Kopszak
Yes, but I don't arrive at expected results with pdftex either.

Piotr

2009/7/9 Hans Hagen :
> Piotr Kopszak wrote:
>>
>> I can't get it right with mkii and xetex either.
>
> forget about xetex; mkii uses a pdftex feature (access to resource dict)
>
>
> -
>                                          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
> ___
>



-- 
http://okle.pl
___
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] Hyphenation list and umlauts

2009-07-10 Thread Mojca Miklavec
On Fri, Jul 10, 2009 at 07:32, Thomas Floeren wrote:
> Taco Hoekwater  scribbled on Thursday, July 09, 
> 2009 8:40 AM:
>
>> Lutz Haseloff wrote:
>>> Hi Thomas,
>>>
>>> You are right, "stand-salarm" is definitely wrong. I think too, that
>>> LuaTex should hyphenate the word like given in \hyphenation{}. It
>>> seems that \hyphenation{} is ignored.
>>
>> Hi guys,
>>
>> Are you using the binary from minimals, or the binary from the
>> supelec.fr package, here:
>>
>> http://foundry.supelec.fr/gf/project/luatex/frs/
>>
>> There might be a difference.
>>
>> Best wishes,
>> Taco
>
>
> Hi,
>
> Unfortunately I can not make work the luatetex.exe from your link.
>
> luatools --generate seems to work fine, but luatools --selfupdate gives 
> "LuaTools | fileio: unable to locate new script", same for mtxrun 
> --selfupdate.
> context --make cont-en then gives "MTXrun | unknown script 'context.lua' or 
> 'mtx-context.lua'".
>
> I think I have a 'regular' minimals installation (the dll versions of luatex 
> work).
>
> Any hint?

Maybe you need the latest ConTeXt to be able to use the latest luatex?
1.) you can fetch luatex from w32tex
2.) you might have to use --context=experimental without generating
formats, then manually overwritting luatex binary and finally
repeating all the steps to build the formats

But there's no guarantee (maybe try that in a separate copy of minimals).

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] [luatex] font expansion

2009-07-10 Thread Taco Hoekwater


Wolfgang Schuster wrote:
> Hi,
> 
> font expansion did not work since a while, i tested it with two older
> builds (2725 and 2730), the first works while the second and all newer
> versions fail.

fixed by #2794

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
___