From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13160 Path: main.gmane.org!not-for-mail From: Patrick Gundlach Newsgroups: gmane.comp.tex.context Subject: Re: Preventing hyphenation? Date: Wed, 10 Sep 2003 14:27:54 +0200 Organization: privat Sender: ntg-context-admin@ntg.nl Message-ID: References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063197337 29761 80.91.224.253 (10 Sep 2003 12:35:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2003 12:35:37 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Wed Sep 10 14:35:34 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19x4C6-0004I8-00 for ; Wed, 10 Sep 2003 14:35:34 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id F1D2E10B8F; Wed, 10 Sep 2003 14:35:32 +0200 (MEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by ref.ntg.nl (Postfix) with ESMTP id 45D4D10ACC for ; Wed, 10 Sep 2003 14:28:00 +0200 (MEST) Original-Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19x44k-0004xM-00 for ntg-context@ntg.nl; Wed, 10 Sep 2003 14:27:58 +0200 Original-Received: from [62.72.92.84] (helo=levana) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19x44i-0005qF-00 for ntg-context@ntg.nl; Wed, 10 Sep 2003 14:27:56 +0200 Original-Received: from [192.168.1.2] (helo=schnee.local) by levana with esmtp (Exim 3.35 #1 (Debian)) id 19x44h-0000bF-00 for ; Wed, 10 Sep 2003 14:27:55 +0200 Original-Received: from schnee.local (localhost [127.0.0.1]) by schnee.local (8.12.9/8.12.9) with ESMTP id h8ACRs7j002081 for ; Wed, 10 Sep 2003 14:27:54 +0200 (CEST) Original-Received: (from pg@localhost) by schnee.local (8.12.9/8.12.2/Submit) id h8ACRsdW002080; Wed, 10 Sep 2003 14:27:54 +0200 (CEST) X-Authentication-Warning: schnee.local: pg set sender to patrick@gundla.ch using -f Original-To: ntg-context@ntg.nl X-Lieblings-Musik: the_capricorns In-Reply-To: (Mari Voipio's message of "Wed, 10 Sep 2003 13:10:04 +0300 (EET DST)") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (darwin) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13160 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13160 Hi Mari, > I know this has been on the list earlier, but I don't seem to be able to > parse the old messages enough to implement anything... I am not that sure if this has been discussed here before. > > My current (urgent) project has a bunch of words/codes with a hyphen: > K-Patents > PR-23-XX > etc. > Any ideas? \definetextmodediscretionary M {\nobreak\hbox{-}\prewordbreak} \starttext \dorecurse{50}{K|M|Patents PR|M|23|M|XX and some words a|M|hyphenationtest hyphenationtest|M|a } \stoptext does this help? Patrick -- There is probably an already built in solution.