* Manual hyphenation
@ 2007-05-23 19:48 Elliot Clifton
2007-05-23 21:28 ` Thomas A. Schmitz
0 siblings, 1 reply; 9+ messages in thread
From: Elliot Clifton @ 2007-05-23 19:48 UTC (permalink / raw)
To: ntg-context
Hi,
I found that my text, which is set in two columns, looks better with
auto-hyphenation disabled using:
\setupalign[nothyphenated]
There are however several over-hanging words that I will need ConTeXt
to hyphenate. I've searched the mailing list and manual and have found
no information on how to do this. The info I did find was about how to
influence the automatic hyphenation. How do I manually indicate to
ConTeXt that a word should be hyphenation. For example if I wanted to
manually force a page break or column break I would use \page and
\column respectively, but what about hyphenation? At the moment I'm
using:
... document-\crlf ation ...
to manually create a hyphenation. Is there a better way?
TIA,
Elliot
--
" By all means break the rules, and break them beautifully,
deliberately, and well. That is one of the ends for which they exist.
"
Robert Bringhurst (1946-)
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Manual hyphenation
2007-05-23 19:48 Manual hyphenation Elliot Clifton
@ 2007-05-23 21:28 ` Thomas A. Schmitz
0 siblings, 0 replies; 9+ messages in thread
From: Thomas A. Schmitz @ 2007-05-23 21:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
On May 23, 2007, at 9:48 PM, Elliot Clifton wrote:
> Hi,
>
> I found that my text, which is set in two columns, looks better with
> auto-hyphenation disabled using:
>
> \setupalign[nothyphenated]
>
> There are however several over-hanging words that I will need ConTeXt
> to hyphenate. I've searched the mailing list and manual and have found
> no information on how to do this. The info I did find was about how to
> influence the automatic hyphenation. How do I manually indicate to
> ConTeXt that a word should be hyphenation. For example if I wanted to
> manually force a page break or column break I would use \page and
> \column respectively, but what about hyphenation? At the moment I'm
> using:
>
> ... document-\crlf ation ...
>
>
> to manually create a hyphenation. Is there a better way?
>
> TIA,
>
> Elliot
>
You mean document\-ation?
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Manual hyphenation
@ 2007-05-23 23:23 Elliot Clifton
2007-05-24 7:39 ` Taco Hoekwater
2007-05-24 16:52 ` Elliot Clifton
0 siblings, 2 replies; 9+ messages in thread
From: Elliot Clifton @ 2007-05-23 23:23 UTC (permalink / raw)
To: ntg-context
On 2007-05-23 17:28 -400
Thomas A. Schmitz wrote:
>\document\-ation
I've tried that. Unfortunately it only seems to work if hyphenation turned on.
Elliot
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Manual hyphenation
@ 2007-05-24 9:22 Elliot Clifton
2007-05-24 10:19 ` Hans Hagen
2007-05-24 10:29 ` Wolfgang Schuster
0 siblings, 2 replies; 9+ messages in thread
From: Elliot Clifton @ 2007-05-24 9:22 UTC (permalink / raw)
To: ntg-context
Thank you very much Taco. It works very well. It really is useful to
be able to select less aggressive hyphenation when necessary.
Cheers,
Elliot
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Manual hyphenation
2007-05-24 9:22 Elliot Clifton
@ 2007-05-24 10:19 ` Hans Hagen
2007-05-24 12:43 ` John R. Culleton
2007-05-24 10:29 ` Wolfgang Schuster
1 sibling, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2007-05-24 10:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
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\lesshyphens\to\everyraggedcommand}
\setvalue{\@@ragged@@command\v!morehyphenation}{\appendtoks\morehyphens\to\everyraggedcommand}
\protect
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Manual hyphenation
2007-05-24 10:19 ` Hans Hagen
@ 2007-05-24 12:43 ` John R. Culleton
0 siblings, 0 replies; 9+ messages in thread
From: John R. Culleton @ 2007-05-24 12:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Manual hyphenation
2007-05-24 9:22 Elliot Clifton
2007-05-24 10:19 ` Hans Hagen
@ 2007-05-24 10:29 ` Wolfgang Schuster
1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2007-05-24 10:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/5/24, Elliot Clifton <cliftoo@gmail.com>:
> Thank you very much Taco. It works very well. It really is useful to
> be able to select less aggressive hyphenation when necessary.
>
> Cheers,
>
> Elliot
Hi Elliot,
you can also prevent hyphenation by switching to undefined languages and
the only hyphenations the one in the hyphenation exception list and in words
written with \-.
\unprotect
\startvariables all
listhyphenation: listhyphenation
\stopvariables
\def\listhyphenation
{\language\@cclv}
\installalign \v!listhyphenation \listhyphenation
\protect
\setupalign[listhyphenation]
\hyphenation{improv-ements}
\starttext
\input knuth
\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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-05-24 16:52 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-23 19:48 Manual hyphenation Elliot Clifton
2007-05-23 21:28 ` Thomas A. Schmitz
2007-05-23 23:23 Elliot Clifton
2007-05-24 7:39 ` Taco Hoekwater
2007-05-24 16:52 ` Elliot Clifton
2007-05-24 9:22 Elliot Clifton
2007-05-24 10:19 ` Hans Hagen
2007-05-24 12:43 ` John R. Culleton
2007-05-24 10:29 ` Wolfgang Schuster
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).