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 | [EMAIL PROTECTED]
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
-------------------------------------------------------------------------