On 3/21/2016 8:14 PM, Jan Tosovsky wrote:
Dear All,

when paragraphs are separated by indenting the first line (instead of an
empty line), these rules should be followed:

a next beta will provide a bit more control over last words

\usemodule[art-01] \setupbodyfont[10pt]

\definehyphenationfeatures
  [words-1]
  [rightwords=3,
   lefthyphenmin=4,
   righthyphenmin=4]

\definehyphenationfeatures
  [words-2]
  [rightwords=3,
   rightchars=word,
   lefthyphenmin=4,
   righthyphenmin=4]

\definehyphenationfeatures
  [words-3]
  [rightwords=3,
   rightchars=8,
   lefthyphenmin=4,
   righthyphenmin=4]

\enabletrackers[hyphenator.visualize]

\setupalign[verytolerant,stretch]

\dontcomplain

\setuphyphenation
  [method=traditional]

\edef\tufte{\cldloadfile{tufte}}

\starttext

\dorecurse{100}{
    \hsize\dimexpr\textwidth-#1mm\relax
    \start \sethyphenationfeatures[words-1] \tufte \par
    \hsize\dimexpr\textwidth-#1mm\relax
    \start \sethyphenationfeatures[words-2] \tufte \par
    \hsize\dimexpr\textwidth-#1mm\relax
    \start \sethyphenationfeatures[words-3] \tufte \par
    \page
}

\stoptext

not uploaded yet


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | 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
___________________________________________________________________________________

Reply via email to