* negative kerning
@ 2010-01-18 17:28 Horacio Suarez
2010-01-18 17:40 ` Hans Hagen
2010-01-18 17:46 ` Wolfgang Schuster
0 siblings, 2 replies; 8+ messages in thread
From: Horacio Suarez @ 2010-01-18 17:28 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 533 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 723 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative kerning
2010-01-18 17:28 negative kerning Horacio Suarez
@ 2010-01-18 17:40 ` Hans Hagen
2010-01-18 22:03 ` Andreas Harder
2010-01-18 17:46 ` Wolfgang Schuster
1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2010-01-18 17:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative kerning
2010-01-18 17:40 ` Hans Hagen
@ 2010-01-18 22:03 ` Andreas Harder
0 siblings, 0 replies; 8+ messages in thread
From: Andreas Harder @ 2010-01-18 22:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]
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).
[-- Attachment #2: test-sloppypar2.tex --]
[-- Type: application/octet-stream, Size: 1051 bytes --]
\setuplayout[width=middle,header=0pt,footer=0pt]
\startluacode
fonts.expansions.classes['big-expansion'] = {
stretch = 4, shrink = 4, step = .5, vector = 'default', factor = 5
}
\stopluacode
\definefontfeature
[extraexpansion][default]
[expansion=big-expansion]
\usetypescript[pagella]
\setupbodyfont[pagella,13.4pt]
% \setupalign[hz,hanging,stretch]
\definetolerancemethod
[horizontal] [extraspace]
{\spaceskip.35em plus.25em minus.2em\relax}
\definetolerancemethod
[horizontal] [extrastretch]
{\emergencystretch=18pt}
\definestartstop
[SloppyPar]
[before={\start
\setuptolerance[horizontal,extrastretch,extraspace]
\setfontfeature{extraexpansion}}, % changes nothing
after=\stop]
\overfullrule=6pt
\starttext \showframe[text]
\startcolumns[balance=no]
\startSloppyPar
{\bf sloppy:}\par
\input tufte \par \it \input knuth
\stopSloppyPar
\column
{\bf normal:}\par
\input tufte \par \it \input knuth
\stopcolumns
\stoptext
%%% Local Variables:
%%% mode: context
%%% TeX-master: t
%%% End:
[-- Attachment #3: Type: text/plain, Size: 75 bytes --]
Perhaps someone has further/better suggestions …
Greetings
Andreas
[-- Attachment #4: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative kerning
2010-01-18 17:28 negative kerning Horacio Suarez
2010-01-18 17:40 ` Hans Hagen
@ 2010-01-18 17:46 ` Wolfgang Schuster
2010-01-18 22:39 ` Thomas A. Schmitz
1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2010-01-18 17:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 435 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 952 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative kerning
2010-01-18 17:46 ` Wolfgang Schuster
@ 2010-01-18 22:39 ` Thomas A. Schmitz
2010-01-19 11:37 ` Horacio Suarez
0 siblings, 1 reply; 8+ messages in thread
From: Thomas A. Schmitz @ 2010-01-18 22:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative kerning
2010-01-18 22:39 ` Thomas A. Schmitz
@ 2010-01-19 11:37 ` Horacio Suarez
0 siblings, 0 replies; 8+ messages in thread
From: Horacio Suarez @ 2010-01-19 11:37 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2017 bytes --]
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.schmitz@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
[-- Attachment #1.2: Type: text/html, Size: 2638 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <mailman.334.1263852201.4207.ntg-context@ntg.nl>]
* Re: negative kerning
[not found] <mailman.334.1263852201.4207.ntg-context@ntg.nl>
@ 2010-01-19 16:29 ` Vyatcheslav Yatskovsky
2010-01-19 17:12 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Vyatcheslav Yatskovsky @ 2010-01-19 16:29 UTC (permalink / raw)
To: ntg-context, Wolfgang Schuster
[-- Attachment #1: Type: text/plain, Size: 647 bytes --]
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
[-- Attachment #2: negativekerning.tex --]
[-- Type: text/x-tex, Size: 182 bytes --]
\definecharacterkerning[packed]
\setupcharacterkerning[packed][factor=-.125]
\starttext
\input knuth
\start
\setcharacterkerning[packed]
\input knuth
\stop
\stoptext
[-- Attachment #3: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: negative kerning
2010-01-19 16:29 ` Vyatcheslav Yatskovsky
@ 2010-01-19 17:12 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2010-01-19 17:12 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Vyatcheslav Yatskovsky
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-01-19 17:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-18 17:28 negative kerning Horacio Suarez
2010-01-18 17:40 ` Hans Hagen
2010-01-18 22:03 ` Andreas Harder
2010-01-18 17:46 ` Wolfgang Schuster
2010-01-18 22:39 ` Thomas A. Schmitz
2010-01-19 11:37 ` Horacio Suarez
[not found] <mailman.334.1263852201.4207.ntg-context@ntg.nl>
2010-01-19 16:29 ` Vyatcheslav Yatskovsky
2010-01-19 17:12 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).