From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17370 Path: main.gmane.org!not-for-mail From: "Patrick Gundlach" Newsgroups: gmane.comp.tex.context Subject: Re: Wrong text alignment within Context. Date: 3 Dec 2004 11:24:42 +0100 Organization: chaos Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1102069479 1727 80.91.229.6 (3 Dec 2004 10:24:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2004 10:24:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 03 11:24:33 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CaAc5-0005V2-00 for ; Fri, 03 Dec 2004 11:24:33 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2388212798; Fri, 3 Dec 2004 11:24:33 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28050-04; Fri, 3 Dec 2004 11:24:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C33612799; Fri, 3 Dec 2004 11:24:30 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 66E3812799 for ; Fri, 3 Dec 2004 11:24:29 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27964-04-2 for ; Fri, 3 Dec 2004 11:24:28 +0100 (CET) Original-Received: from lilly.ping.de (unknown [83.97.42.2]) by ronja.ntg.nl (Postfix) with SMTP id 78B0F12798 for ; Fri, 3 Dec 2004 11:24:28 +0100 (CET) Original-Received: (qmail 28385 invoked from network); 3 Dec 2004 10:24:27 -0000 Original-Received: (ofmipd 83.97.40.222); 3 Dec 2004 10:24:05 -0000 Original-To: ntg-context@ntg.nl X-Lieblings-Musik: the_capricorns In-Reply-To: (Dirar BOUGATEF's message of "Wed, 01 Dec 2004 21:01:43 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) X-Virus-Scanned: by 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-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17370 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17370 Hi Dirar and others, the sample pdf has the following problem: | | | l=E2=80=99expression | | | th word(s) "l'expression" stick into the right margin. This is (I guess) due to the following facts: 1) TeX will use the right margin for words if the other solution for a line breaking problem would be to stretch the innerword spacing. TeX has complicated rules for determining the "badness" of a solution, the badness of stretching in your case is obviously higher then the badness of sticking into the margin. You have to play with TeX's parameters to decrease the badness of interword spacing (but see also 2)). In your case you set \tolerance to 200, which is very intolerant :-) So, for an example, say \tolerance 8000 (or use the ConTeXt way like \setuptolerance[verytolerant] -- never do this in a real world text!). Then your text should look ugly again, but in another way. There are quite few parameters for interfering TeXs paragraph builder. 2) TeX should hyphenate the word "expression" in some way, but doesn't do it. I am not sure where the allowed breakpoints are, but you might want to tell TeX. Perhaps "expression" can be hyphenated but "l'expression" not. But I don't know what to do here, other french writers should help you with that problem. Use \showhypens{....} to find out about the hypenation places. There is no magic to your problem :-) Patrick -- ConTeXt wiki: http://contextgarden.net