From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20444 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: prevent hyphenation Date: Fri, 20 May 2005 09:25:17 +0200 Message-ID: <428D90DD.6080203@wxs.nl> References: <42FD4E90@webmail.colostate.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1116574017 31411 80.91.229.2 (20 May 2005 07:26:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 07:26:57 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri May 20 09:26:47 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DZ1tA-00065d-Hf for gctc-ntg-context-518@m.gmane.org; Fri, 20 May 2005 09:25:45 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C279312795; Fri, 20 May 2005 09:26:44 +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 24751-01; Fri, 20 May 2005 09:26:44 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1848B1278F; Fri, 20 May 2005 09:24:56 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 366CB1278F for ; Fri, 20 May 2005 09:24:53 +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 24412-05 for ; Fri, 20 May 2005 09:24:52 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 4E7671278D for ; Fri, 20 May 2005 09:24:52 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j4K7OoHv011335; Fri, 20 May 2005 09:24:50 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 309C421055; Fri, 20 May 2005 08:57:33 +0200 (CEST) Original-Received: from [10.100.1.53] (unknown [10.100.1.53]) by server-1.pragma-net.nl (Postfix) with ESMTP id 2B3F217C28; Fri, 20 May 2005 06:57:31 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42FD4E90@webmail.colostate.edu> X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20444 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20444 Idris Samawi Hamid wrote: > Hi Peter > >>===== Original Message From Peter ===== >>I'm typesetting a text with some citations in nineteenth-century Dutch >>and French, in which I don't want hyphenation. How can this be done? >> >>I now have two macros: >>\def\stophyph{\pretolerance=15000\tolerance=400} >>\def\starthyph{\pretolerance=200\tolerance=400} >> >>At the beginning of every citation I enter \stophyph{} and at the end >>\starthyph{}. But the cited words are still hyphenated. > > > Here is a better approach: > > ================================================== > \setupoutput[pdftex]% > > \installlanguage[NH][lefthyphenmin=100,righthyphenmin=100] > > \starttext > > \language[NH] > > \input knuth > > \language[en] > > \input knuth > > \stoptext > > ================================================== > > Even better, take the definition of [nl] in type-ger.tex and add it to > \installlanguage[NH]. > > Hans: the following would be nice to have: > > \setuplanguage[][hyphenation=off] i must think this over, since normally when a language has no patterns it's off anyway \definelanguage[mine][default=en,patterns=] not sure if that works as expected >>Putting single words in a mbox also doesn't help... ;( > > > mbox?!? Dost thou blaspheme!?! > :-) -) how about using \setupalign[nothyphenated] (or \nohyphens) btw, i recently saw things like there was this guy called \hbox {Idris} ... (another 10 times this hbox) where of course the best solution is \hyphenation{Idris} at the top of your document, i.e. add such names to the dictionary but do not provide ----------------------------------------------------------------- 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 -----------------------------------------------------------------