From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6642 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re[2]: Enabling protruding Date: Thu, 24 Jan 2002 11:32:27 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020124112706.039925c0@server-1> References: <5.1.0.14.1.20020123181552.03559da8@server-1> <5.1.0.14.1.20020123181552.03559da8@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035397158 12408 80.91.224.250 (23 Oct 2002 18:19:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:19:18 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Giuseppe Bilotta In-Reply-To: <919194372.20020123194446@bigfoot.com> Xref: main.gmane.org gmane.comp.tex.context:6642 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6642 At 07:44 PM 1/23/2002 +0100, Giuseppe Bilotta wrote: >Nothing doing. I tried the following small test file > >\setupfontsynonym[Serif][handling=pure] >\setupfonthandling[normal][left=1,right=1] > >\starttext > >\def\text{This is some kind of test, to see if it hangs, >thisisaverylongwordindeed. } > >\dorecurse{20}{\text} > >\setupalign[hanging] >\dorecurse{20}{\text} > >\stoptext > >and no hanging is done. interesting, took me a while to identify the problem (has to do with empty parameter). I'll send you a new syst-gen.tex to test. now, to the hanging: one complication is that once a font is 'defined', its characteristics are kind of fixed; i could remove this limitation but it would not help at all, since hanging get fixed in tex itself. this means that for the preloaded cmr fonts, (or any preloaded font) one has to redefine them; also, because of the design sizes, cmr's are not mapped onto Serif, so here we need to manually set the fonts (unless one defines them as any ps collection, ignoreing the design size) % output=pdftex \setupfontsynonym[cmr10][handling=pure] \setupfontsynonym[Serif][handling=pure] \setupfonthandling[normal][left=1,right=1] % so here we load 'm again \usetypescript[cmr] \setupbodyfont[10pt] % handy for tracing the hanging \showframe % off we go \starttext \dorecurse{100}{testtest, } \setupalign[hanging] \dorecurse{100}{testtest, } \setupbodyfont[pos,10pt] \dorecurse{100}{testtest, } \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- fall-back web server: www.pragma-pod.nl -------------------------------------------------------------------------