ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* hanging punctuation
@ 2003-01-29 21:29 Patrick Gundlach
  2003-01-29 23:45 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick Gundlach @ 2003-01-29 21:29 UTC (permalink / raw)


Hello,


From an example posted earlier on this list:

% output=pdftex
\usetypescript [berry][8r]
\setupfontsynonym[Serif][handling=pure]
\showframe
\starttext
   \setupalign[hanging]
   \setupbodyfont[pos,10pt]
   \dorecurse{100}{testtest, }
\input tufte
\stoptext


Why is the hyphen (cat-) not hanging in the right margin?

As far as I can see it should stick out completely?!?

(from hand-def.tex)

\startfonthandling [pure]

  \defineprotrudefactor , 0 1
  \defineprotrudefactor . 0 1
  \defineprotrudefactor : 0 1
  \defineprotrudefactor ; 0 1

  \defineprotrudefactor hyphen 0 1   % <------------------
  \defineprotrudefactor endash 0 .5  
  \defineprotrudefactor emdash 0 .33 % .5 

\stopfonthandling

Patrick

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: hanging punctuation
  2003-01-29 21:29 hanging punctuation Patrick Gundlach
@ 2003-01-29 23:45 ` Hans Hagen
  2003-01-30 10:17   ` Patrick Gundlach
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2003-01-29 23:45 UTC (permalink / raw)


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
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: hanging punctuation
  2003-01-29 23:45 ` Hans Hagen
@ 2003-01-30 10:17   ` Patrick Gundlach
  2003-01-31 23:02     ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick Gundlach @ 2003-01-30 10:17 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> 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


I have tried almost all permutations the first four lines :)

> (one of those tricky areas)

No comment :)

Patrick

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: hanging punctuation
  2003-01-30 10:17   ` Patrick Gundlach
@ 2003-01-31 23:02     ` Hans Hagen
  2003-02-02 14:34       ` Patrick Gundlach
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2003-01-31 23:02 UTC (permalink / raw)
  Cc: ntg-context

At 11:17 AM 1/30/2003 +0100, Patrick Gundlach wrote:
>Hans Hagen <pragma@wxs.nl> 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
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: hanging punctuation
  2003-01-31 23:02     ` Hans Hagen
@ 2003-02-02 14:34       ` Patrick Gundlach
  2003-02-02 17:23         ` Adam Lindsay
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick Gundlach @ 2003-02-02 14:34 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

Hans Hagen <pragma@wxs.nl> writes:

Hello,

> 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

[-- Attachment #2: screenshot acroread --]
[-- Type: image/png, Size: 2686 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: hanging punctuation
  2003-02-02 14:34       ` Patrick Gundlach
@ 2003-02-02 17:23         ` Adam Lindsay
  2003-02-02 17:49           ` Patrick Gundlach
  0 siblings, 1 reply; 10+ messages in thread
From: Adam Lindsay @ 2003-02-02 17:23 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 609 bytes --]

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/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

[-- Attachment #2: hang-pun.png --]
[-- Type: image/png, Size: 2485 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: hanging punctuation
  2003-02-02 17:23         ` Adam Lindsay
@ 2003-02-02 17:49           ` Patrick Gundlach
  2003-02-02 23:22             ` Adam Lindsay
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick Gundlach @ 2003-02-02 17:49 UTC (permalink / raw)


"Adam Lindsay" <atl@comp.lancs.ac.uk> writes:

Hello Adam,

> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: hanging punctuation
  2003-02-02 17:49           ` Patrick Gundlach
@ 2003-02-02 23:22             ` Adam Lindsay
  2003-02-03  9:50               ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Adam Lindsay @ 2003-02-02 23:22 UTC (permalink / raw)


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/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Re: hanging punctuation
  2003-02-02 23:22             ` Adam Lindsay
@ 2003-02-03  9:50               ` Hans Hagen
  2003-02-03 13:44                 ` Morgen Roef Ragas
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2003-02-03  9:50 UTC (permalink / raw)


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
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Morgen
  2003-02-03  9:50               ` Hans Hagen
@ 2003-02-03 13:44                 ` Roef Ragas
  0 siblings, 0 replies; 10+ messages in thread
From: Roef Ragas @ 2003-02-03 13:44 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-02-03 13:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29 21:29 hanging punctuation Patrick Gundlach
2003-01-29 23:45 ` Hans Hagen
2003-01-30 10:17   ` Patrick Gundlach
2003-01-31 23:02     ` Hans Hagen
2003-02-02 14:34       ` Patrick Gundlach
2003-02-02 17:23         ` Adam Lindsay
2003-02-02 17:49           ` Patrick Gundlach
2003-02-02 23:22             ` Adam Lindsay
2003-02-03  9:50               ` Hans Hagen
2003-02-03 13:44                 ` Morgen Roef Ragas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).