ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "John R. Culleton" <john@wexfordpress.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Manual hyphenation
Date: Thu, 24 May 2007 08:43:11 -0400	[thread overview]
Message-ID: <200705240843.11951.john@wexfordpress.com> (raw)
In-Reply-To: <465566C0.3050608@wxs.nl>

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	other threads:[~2007-05-24 12:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-24  9:22 Elliot Clifton
2007-05-24 10:19 ` Hans Hagen
2007-05-24 12:43   ` John R. Culleton [this message]
2007-06-01 18:10   ` page break handle in TOC Horacio Suarez
2007-06-02 20:16     ` Hans Hagen
2007-06-02 20:22       ` Steffen Wolfrum
2007-06-02 20:59         ` Hans Hagen
2007-06-04  8:53           ` Steffen Wolfrum
2007-06-12 22:01           ` hyphenation inside natural tables Horacio Suarez
2007-06-13  6:44             ` Wolfgang Schuster
2007-06-13 14:33               ` Horacio Suarez
2007-06-13 16:16                 ` Aditya Mahajan
2007-06-02 21:20       ` page break handle in TOC Horacio Suarez
2007-05-24 10:29 ` Manual hyphenation Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2007-05-23 23:23 Elliot Clifton
2007-05-24  7:39 ` Taco Hoekwater
2007-05-24 16:52 ` Elliot Clifton
2007-05-23 19:48 Elliot Clifton
2007-05-23 21:28 ` Thomas A. Schmitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200705240843.11951.john@wexfordpress.com \
    --to=john@wexfordpress.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).