At 10:29 PM 1/29/2003 +0100, you wrote:
Hello,
From an example posted earlier on this list:
% output=pdftex \usetypescript [berry][8r] \setupfontsynonym[Serif][handling=pure]
because tex kind of freezes fonts metrics you need to set the hanging before 'loading' or accessing the font; after that one can turn it on/off (one of those tricky areas) Hans ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
because tex kind of freezes fonts metrics you need to set the hanging before 'loading' or accessing the font; after that one can turn it on/off
Sorry, I cannot make it work here. What I have now is: \setupalign[hanging] \setupfontsynonym[Serif][handling=pure] \usetypescript [berry][8r] \setupbodyfont[pos,10pt] \showframe \starttext \dorecurse{100}{testtest, } \input tufte \stoptext I have tried almost all permutations the first four lines :)
(one of those tricky areas)
No comment :) Patrick
At 11:17 AM 1/30/2003 +0100, Patrick Gundlach wrote:
Hans Hagen
writes: Hello again,
because tex kind of freezes fonts metrics you need to set the hanging before 'loading' or accessing the font; after that one can turn it on/off
Sorry, I cannot make it work here. What I have now is:
\setupalign[hanging] \setupfontsynonym[Serif][handling=pure] \usetypescript [berry][8r] \setupbodyfont[pos,10pt]
\showframe \starttext
\dorecurse{100}{testtest, } \input tufte \stoptext
this definitely hangs here ! So, what version of pdf(e)tex are you using? You must have >=1,0 because thanh changed it around that time [the current method is not the same as described in his thesis] Hans ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
So, what version of pdf(e)tex are you using?
You must have >=1,0 because thanh changed it around that time [the current method is not the same as described in his thesis]
Version 3.14159-1.00b-pretest-20020211-2.1 (Web2C 7.3.7x) \write18 enabled. I get hanging, but the hyphen is not in the margin. See attached image. Patrick
I believe Patrick Gundlach said this around Sun, 2 Feb 2003:
Version 3.14159-1.00b-pretest-20020211-2.1 (Web2C 7.3.7x) \write18 enabled.
Same version (on MacOSX), and pretty much same results. Using \setupfontsynonym[Serif][handling=punctuation] does in fact seem to hang the hyphens (partially).
I get hanging, but the hyphen is not in the margin.
See attached image.
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Adam Lindsay +44(0)1524 594 537 atl@comp.lancs.ac.uk http://www.comp.lancs.ac.uk/computing/users/atl/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Adam Lindsay"
Same version (on MacOSX), and pretty much same results. Using \setupfontsynonym[Serif][handling=punctuation] does in fact seem to hang the hyphens (partially).
I get hanging, but the hyphen is not in the margin.
Thank you for your hint! I have now found out that there must be a bug somewhere. The hyphen from cat- which was shown in the screenshot I have sent is not a hyphen but a "-" (dash). So, with \startfonthandling [patrick] [...] \defineprotrudefactor - 0 1 [...] \stopfonthandling I get hanging punctuation for the hyphen. What is \defineprotrudefactor hyphen 0 .7 used for? It seems to be useless?!? Patrick
Hi Patrick. Thanks for putting 2 and 2 together. It hadn't quite registered with me that that was the problem. I believe Patrick Gundlach said this around Sun, 2 Feb 2003:
\defineprotrudefactor - 0 1
So, yeah, I just added this in the "pure" definition to (a duplicate of) hand-def.tex, and pure works as expected. I wonder why it's not like that in the distribution. Thanks for the clear illustration... now I know how to take advantage of hanging. Cheers, adam -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Adam Lindsay +44(0)1524 594 537 atl@comp.lancs.ac.uk http://www.comp.lancs.ac.uk/computing/users/atl/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
At 11:22 PM 2/2/2003 +0000, you wrote:
Hi Patrick.
Thanks for putting 2 and 2 together. It hadn't quite registered with me that that was the problem.
I believe Patrick Gundlach said this around Sun, 2 Feb 2003:
\defineprotrudefactor - 0 1
So, yeah, I just added this in the "pure" definition to (a duplicate of) hand-def.tex, and pure works as expected. I wonder why it's not like that in the distribution.
Thanks for the clear illustration... now I know how to take advantage of hanging.
ok, i added that one Hans ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Beste Hans, Omdat je niet gereageerd hebt op een vraag die ik je stelde n.a.v. morgen, vroeg ik mij af of je mijn mail wel ontvangen hebt. Mijn vraag was of ik je/jullie voor je zo vriendelijk aangeboden hulp moet betalen, en in welke orde van grootte ik dan moet denken. Misschien is het wel een vreemde vraag, wat ik nu ga denken omdat ik er nog geen reactie op heb, maar het leek me gewoon goed te weten om een eventuele onhandige situatie te vermijden. Hartelijke groet, Roef Ragas
participants (4)
-
Adam Lindsay
-
Hans Hagen
-
Patrick Gundlach
-
Roef Ragas