From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37572 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: line breaking hints? Date: Tue, 27 Nov 2007 09:50:30 +0100 Message-ID: References: <6703815B292B664DBAEC55EE3192386A20BCD0@poseidon.in.dynetics.com> 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: ger.gmane.org 1196153481 15143 80.91.229.12 (27 Nov 2007 08:51:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2007 08:51:21 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 27 09:51:28 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 1IwwA1-0002QT-Kv for gctc-ntg-context-518@m.gmane.org; Tue, 27 Nov 2007 09:51:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A36DE1FE18; Tue, 27 Nov 2007 09:50:46 +0100 (CET) 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 07594-03-9; Tue, 27 Nov 2007 09:50:38 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 329D81FE04; Tue, 27 Nov 2007 09:50:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE1FD1FE04 for ; Tue, 27 Nov 2007 09:50:36 +0100 (CET) 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 07594-03-8 for ; Tue, 27 Nov 2007 09:50:33 +0100 (CET) Original-Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by ronja.ntg.nl (Postfix) with ESMTP id C9EED1FDFE for ; Tue, 27 Nov 2007 09:50:32 +0100 (CET) Original-Received: by py-out-1112.google.com with SMTP id u77so2047535pyb for ; Tue, 27 Nov 2007 00:50:31 -0800 (PST) Original-Received: by 10.64.10.2 with SMTP id 2mr8194200qbj.1196153430379; Tue, 27 Nov 2007 00:50:30 -0800 (PST) Original-Received: by 10.65.212.18 with HTTP; Tue, 27 Nov 2007 00:50:30 -0800 (PST) In-Reply-To: <6703815B292B664DBAEC55EE3192386A20BCD0@poseidon.in.dynetics.com> Content-Disposition: inline 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:37572 Archived-At: On Nov 26, 2007 10:08 PM, Santy, Michael wrote: > > > > > Hello, > > I'm looking for a way to give ConTeXt's line breaking algorithm a hint on > where it is allowed to break a line. For example, I want ConTeXt to break > lines, if necessary, when it encounters '//' in a string. I don't want to > force a line break there, but if context needs to break the line, I want it > to be after a "//". > > A contrived example of some input text is: > THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG//NOW IS THE TIME FOR ALL GOOD > MEN TO COME TO THE AID OF THEIR COUNTRY. > > When this text is rendered by ConTeXt, and it is too big to fit on a single > line, I would like it to break like this: > THE QUICK BROWN FOX JUMPED OVER THE LAZY DOG// > NOW IS THE TIME FOR ALL GOOD MEN TO COME TO THE AID OF THEIR COUNTRY. > > I can preprocess the source to change spaces into non-breaking spaces and > can replace '//' with anything else that I need to, but don't know how to > suggest where to break the line. Also note that I do not want any words to > be hyphenated nor broken on hyphens. > maybe this can give you more ideas http://wiki.contextgarden.net/User:Luigi.scarso/autosize -- luigi ... it's new . it's powerful . it's luatex . http://www.luatex.org ___________________________________________________________________________________ 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 ___________________________________________________________________________________