Re: [NTG-context] negative kerning

2010-01-19 Thread Hans Hagen

On 19-1-2010 17:29, Vyatcheslav Yatskovsky wrote:

Hi,

I tried the following snipped out of curiosity and it gives me the error
(even with the latest beta)

systems : begin file 1.tex at line 5

(c:/contextminimal/texmf-context/tex/context/sample/knuth.tex)
(c:/contextminimal/texmf-context/tex/context/sample/knuth.texerror:
tminimal/texmf-context/tex/context/base/typo-krn.lua:121: attempt to
index local 'before' (a nil value)

..

l.11

?


just a bug

-
  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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] negative kerning

2010-01-19 Thread Vyatcheslav Yatskovsky

Hi,

I tried the following snipped out of curiosity and it gives me the error 
(even with the latest beta)


systems : begin file 1.tex at line 5

(c:/contextminimal/texmf-context/tex/context/sample/knuth.tex) 
(c:/contextminimal/texmf-context/tex/context/sample/knuth.texerror: 
...tminimal/texmf-context/tex/context/base/typo-krn.lua:121: attempt to 
index local 'before' (a nil value)


.

l.11

?



\definecharacterkerning[packed]

\setupcharacterkerning[packed][factor=-.125]

\starttext

\input knuth

\start

\setcharacterkerning[packed]

\input knuth

\stop

\stoptext



What have I missed?

Regards,
Vyatcheslav

\definecharacterkerning[packed]
 
\setupcharacterkerning[packed][factor=-.125]
 
\starttext
 
\input knuth
 
\start
 
\setcharacterkerning[packed]
 
\input knuth
 
\stop
 
\stoptext
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] negative kerning

2010-01-19 Thread Horacio Suarez

Thankyou very much for your answers.
Wolfgang, I have the following error when I run that code:
(c:/contextminimal/texmf-context/tex/context/sample/knuth.texerror: 
...tminimal/texmf-context/tex/context/base/typo-krn.lua:121: attempt to index 
local 'before' (a nil value)
I´m using XP
ConTeXt  ver: 2010.01.18 22:43 MKIV  fmt: 2010.1.19  int: english/english
what is wrong?
thankyou for your help.

Horacio Suarez




> From: thomas.schm...@uni-bonn.de
> Date: Mon, 18 Jan 2010 23:39:07 +0100
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] negative kerning
> 
> 
> On Jan 18, 2010, at 6:46 PM, Wolfgang Schuster wrote:
> 
> > MkIV only:
> > 
> > \definecharacterkerning[packed]
> > 
> > \setupcharacterkerning[packed][factor=-.125]
> > 
> > \starttext
> > 
> > \input knuth
> > 
> > \start
> > 
> > \setcharacterkerning[packed]
> > 
> > \input knuth
> > 
> > \stop
> > 
> > \stoptext
> > 
> > Wolfgang
> 
> Wow!! That is one of the best things I have read in a while - it means we can 
> have proper "gesperrten" Text with proper hyphenation! Really excellent, 
> thanks a lot for pointing this out, Wolfgang!
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
  
_
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail 
you.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] negative kerning

2010-01-18 Thread Thomas A. Schmitz

On Jan 18, 2010, at 6:46 PM, Wolfgang Schuster wrote:

> MkIV only:
> 
> \definecharacterkerning[packed]
> 
> \setupcharacterkerning[packed][factor=-.125]
> 
> \starttext
> 
> \input knuth
> 
> \start
> 
> \setcharacterkerning[packed]
> 
> \input knuth
> 
> \stop
> 
> \stoptext
> 
> Wolfgang

Wow!! That is one of the best things I have read in a while - it means we can 
have proper "gesperrten" Text with proper hyphenation! Really excellent, thanks 
a lot for pointing this out, Wolfgang!

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] negative kerning

2010-01-18 Thread Andreas Harder

Am 18.01.2010 um 18:40 schrieb Hans Hagen:

> On 18-1-2010 18:28, Horacio Suarez wrote:
>> 
>> hello all:
>> 
>> I need someting like a negative kerning to reduce some paragraphs length.
>> 
>> I was reading the mails but I didn´t find it or was too complex for me.
> 
> otherwise you need to locally mess around with tolerance and penalties or the 
> width of a space

What is the best way to „mess around“? Is it preferable (if changing the text 
or layout is no option) to set a bigger inter-word space or a more tolerant 
expansion or both? 

The latter I tried to achieve, but with no luck (attachment).


test-sloppypar2.tex
Description: Binary data


Perhaps someone has further/better suggestions …

Greetings
Andreas___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] negative kerning

2010-01-18 Thread Wolfgang Schuster

Am 18.01.10 18:28, schrieb Horacio Suarez:

hello all:

I need someting like a negative kerning to reduce some paragraphs length.

I was reading the mails but I didn´t find it or was too complex for me.

MkIV only:

\definecharacterkerning[packed]

\setupcharacterkerning[packed][factor=-.125]

\starttext

\input knuth

\start

\setcharacterkerning[packed]

\input knuth

\stop

\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] negative kerning

2010-01-18 Thread Hans Hagen

On 18-1-2010 18:28, Horacio Suarez wrote:


hello all:

I need someting like a negative kerning to reduce some paragraphs length.

I was reading the mails but I didn´t find it or was too complex for me.


i'm not sure what you mean .. narrower?

\startnarrower[right]
...
\stopnarrower

otherwise you need to locally mess around with tolerance and penalties 
or the width of a space


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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] negative kerning

2010-01-18 Thread Horacio Suarez

hello all:

I need someting like a negative kerning to reduce some paragraphs length.

I was reading the mails but I didn´t find it or was too complex for me.

thankyou in advance.


Horacio Suarez

  
_
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___