On Thursday 24 May 2007 06:19, Hans Hagen wrote:
> Elliot Clifton wrote:
> > Thank you very much Taco. It works very well. It really is useful
> > to be able to select less aggressive hyphenation when necessary.
>
> here is a variant: stepwise and relative to the current values:
>
> \unprotect
>
> \startvariables all
>     lesshyphenation: lesshyphenation
>     morehyphenation: morehyphenation
> \stopvariables
>
> \def\lesshyphens
>   {\lefthyphenmin =\numexpr\lefthyphenmin +1\relax
>    \righthyphenmin=\numexpr\righthyphenmin+1\relax}
>
> \def\morehyphens
>   {\ifcase\lefthyphenmin \else
>      \lefthyphenmin =\numexpr\lefthyphenmin +1\relax
>    \fi
>    \ifcase\righthyphenmin\else
>      \righthyphenmin=\numexpr\righthyphenmin+1\relax
>    \fi}
>
> \installalign \v!lesshyphenation {\lesshyphens}
> \installalign \v!morehyphenation {\morehyphens}
>
> %D The next two lines implement 'align=lesshyphenation' as an
> option %D for \type{\framed} etc.
>
> \setvalue{\@@ragged@@command\v!lesshyphenation}{\appendtoks\lesshyp
>hens\to\everyraggedcommand}
> \setvalue{\@@ragged@@command\v!morehyphenation}{\appendtoks\morehyp
>hens\to\everyraggedcommand}
>
> \protect
>
>
> Hans

On my last Context project I simply used 
\lefthyphenmin 3
to set a new minimum size for the left part of a hyphenated word. The 
customer requested it at the last minute (overly picky editor.) It 
worked OK on a long and complex document.  
-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com

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

Reply via email to