From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49170 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.comp.tex.context Subject: Re: Filling a box Date: Wed, 8 Apr 2009 00:19:59 +0200 Message-ID: <20090407221959.GG11609@atos.labs.wmid.amu.edu.pl> References: <83e5fb980904061607j611a4372jc59b19b6bd12f294@mail.gmail.com> <928FC6CC-FD52-49E8-A474-DD7E61380BD0@gmail.com> <83e5fb980904071436j73df33efgf969c1ecf6fea52a@mail.gmail.com> <5D0674E9-880C-4AED-94B8-A0EE0E47D3F4@gmail.com> <83e5fb980904071502i2832db42u786c300494a72ff3@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1239142865 2416 80.91.229.12 (7 Apr 2009 22:21:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Apr 2009 22:21:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 08 00:22:23 2009 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 1LrJgQ-00044B-6i for gctc-ntg-context-518@m.gmane.org; Wed, 08 Apr 2009 00:22:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 493D31FB6D; Wed, 8 Apr 2009 00:20:50 +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 29753-05; Wed, 8 Apr 2009 00:20:13 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3E961FB30; Wed, 8 Apr 2009 00:20:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 464571FB30 for ; Wed, 8 Apr 2009 00:20:11 +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 29755-03-3 for ; Wed, 8 Apr 2009 00:20:03 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 2F8A91FB1D for ; Wed, 8 Apr 2009 00:20:03 +0200 (CEST) Original-Received: from atos.wmid.amu.edu.pl (atos.wmid.amu.edu.pl [150.254.78.2]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n37MK2iD015423 for ; Wed, 8 Apr 2009 00:20:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by atos.wmid.amu.edu.pl (Postfix) with ESMTP id 497EB10112E3 for ; Wed, 8 Apr 2009 00:20:00 +0200 (CEST) X-Virus-Scanned: by amavisd-new (PLD-Linux) at wmid.amu.edu.pl Original-Received: from atos.wmid.amu.edu.pl ([127.0.0.1]) by localhost (atos.wmid.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id YA+nR1VV5GXl for ; Wed, 8 Apr 2009 00:19:59 +0200 (CEST) Original-Received: by atos.wmid.amu.edu.pl (Postfix, from userid 3884) id AFF8410112CE; Wed, 8 Apr 2009 00:19:59 +0200 (CEST) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=150.254.78.2; country=PL; region=86; city=Poznan; latitude=52.4167; longitude=16.9667; http://maps.google.com/maps?q=52.4167,16.9667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 205480490 - 049aa9dca58f - 20090408 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:49170 Archived-At: Dnia Wed, Apr 08, 2009 at 12:13:01AM +0200, luigi scarso napisał(a): > On Wed, Apr 8, 2009 at 12:02 AM, Diego Depaoli wrot= e: > > On Tue, Apr 7, 2009 at 11:47 PM, Wolfgang Schuster > > wrote: > >> > >> \starttext > >> > >> \def\breakeverywhere#1{\if#1\normalspace\space\else#1\allowbreak\fi} > >> > >> \framed > >> =A0[width=3D4cm,align=3Dnormal] > >> =A0{\handletokens i want a framed where the text flushes to the next l= ine > >> without hyphenation. There is a way to get this > >> result?\with\breakeverywhere} > >> > >> \stoptext > > > > YYYEEEEEEEEEEEEEESSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!!!!!!!!!!! > hmm. > I should say ni . The problem are spaces . > In this example I should expected that > hy- =3D> hy > and some changes in glues > and nothing else. > Also text with \handletokens is ,well, "not so good " (ie horrible) . I am not sure, but maybe that would be a good idea: gather 1,2,3,... tokens and pack them (as a whole) into an hbox until its width is greater than the frame width, output it, and repeat until there's nothing left. This would be very time-consuming (at least without lua), but it should preserve kerns etc. Also, instead of examining the width, one could probably pack the tokens into an \hbox to ... {...} and examine the badness. I don't dare to try to implement it, though - at least not at 00:17 AM;) Regards -- = Marcin Borkowski (http://mbork.pl) ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________