From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34758 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Manual hyphenation Date: Thu, 24 May 2007 09:39:30 +0200 Message-ID: <46554132.4040901@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179992391 28488 80.91.229.12 (24 May 2007 07:39:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 May 2007 07:39:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 24 09:39:47 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Hr7vG-0005pm-UI for gctc-ntg-context-518@m.gmane.org; Thu, 24 May 2007 09:39:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 131111FF52; Thu, 24 May 2007 09:39:47 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11514-05; Thu, 24 May 2007 09:39:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D05A91FEEB; Thu, 24 May 2007 09:39:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C70DD1FEEB for ; Thu, 24 May 2007 09:39:33 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11080-07-2 for ; Thu, 24 May 2007 09:39:30 +0200 (CEST) Original-Received: from post-24.mail.nl.demon.net (post-24.mail.nl.demon.net [194.159.73.194]) by ronja.ntg.nl (Postfix) with ESMTP id 9323B1FEE3 for ; Thu, 24 May 2007 09:39:30 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:39653 helo=[10.10.0.6]) by post-24.mail.nl.demon.net with esmtp (Exim 4.51) id 1Hr7v0-0009S3-G6 for ntg-context@ntg.nl; Thu, 24 May 2007 07:39:30 +0000 User-Agent: Thunderbird 1.5.0.10 (X11/20070305) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34758 Archived-At: 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 ___________________________________________________________________________________