From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Manual hyphenation
Date: Thu, 24 May 2007 09:39:30 +0200 [thread overview]
Message-ID: <46554132.4040901@elvenkind.com> (raw)
In-Reply-To: <e65d34bf0705231623o9cc5595n2a916e37beeac06c@mail.gmail.com>
Elliot Clifton wrote:
> 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.
You would have to redefine one of the core utility macros to get
this to work. I wrote a small extension for you that does not
need manual intervention. It only hyphenates words that are longer
than 8 characters. Here is the actual code that should go to the
environment file (or the preamble section):
%D A small extension that creates an align type that only hyphenates
%D long words.
\unprotect
\startvariables all
lesshyphenation: lesshyphenation
\stopvariables
\def\lesshyphens
{\lefthyphenmin=4 \righthyphenmin=5 }
\installalign \v!lesshyphenation {\lesshyphens}
%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}
\protect
%D done.
And the usage is like so:
\setupalign[lesshyphenation]
... documentation ...
Best wishes, Taco
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2007-05-24 7:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-23 23:23 Elliot Clifton
2007-05-24 7:39 ` Taco Hoekwater [this message]
2007-05-24 16:52 ` Elliot Clifton
-- strict thread matches above, loose matches on Subject: below --
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
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=46554132.4040901@elvenkind.com \
--to=taco@elvenkind.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).