From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20454 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: prevent hyphenation Date: Fri, 20 May 2005 16:21:11 +0200 Message-ID: <428DF257.8090407@elvenkind.com> References: <42FD4E90@webmail.colostate.edu> <428DCB9F.2020505@orgelvlaardingen.nl> <428DDD0D.9080109@wxs.nl> 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 1116598981 11144 80.91.229.2 (20 May 2005 14:23:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 14:23:01 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri May 20 16:22:51 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 1DZ8ML-00082X-Nw for gctc-ntg-context-518@m.gmane.org; Fri, 20 May 2005 16:20:18 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 77BFC1283B; Fri, 20 May 2005 16:21:20 +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 03779-02; Fri, 20 May 2005 16:21:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 989EB127C2; Fri, 20 May 2005 16:21:16 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 52333127C2 for ; Fri, 20 May 2005 16:21:14 +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 03625-10-2 for ; Fri, 20 May 2005 16:21:13 +0200 (CEST) Original-Received: from glenfiddich.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with ESMTP id 5BB60127B9 for ; Fri, 20 May 2005 16:21:13 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 33866257F8 for ; Fri, 20 May 2005 16:21:09 +0200 (CEST) Original-Received: from glenfiddich.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05898-04 for ; Fri, 20 May 2005 16:21:08 +0200 (CEST) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by glenfiddich.elvenkind.com (Postfix) with ESMTP id 93DBA15D1B for ; Fri, 20 May 2005 16:21:08 +0200 (CEST) User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <428DDD0D.9080109@wxs.nl> X-Virus-Scanned: by amavisd-new at elvenkind.net 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:20454 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20454 Hans Hagen wrote: > Peter wrote: > >> >> Idris Samawi Hamid wrote: >> > \installlanguage[NH][lefthyphenmin=100,righthyphenmin=100] >> > >> > > question for taco: how exactly does tex treat language changes mid > paragraph? That would take me too much time to write down :-), but I can tell you that this \installlanguage didn't work because \lefthyphenmin and \righthyphenmin are 'global' during the course of the paragraph, only the final value is used (like for most paragraph parameters). What will work, is setting the TeX primitive \language to a value that does not have associated patterns (-1 is a possibility, but usually 255 also works). In the next bit of context code, there will be no hyphenation: \starttext \normallanguage -1 \hsize = 0pt \input zapf \language[en] \stoptext (babel has a language definition 'nohyph', precisely for this) Hope this helps, Taco