ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* partial hz ?
@ 2007-06-10 22:23 Steffen Wolfrum
  2007-06-10 23:31 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Wolfrum @ 2007-06-10 22:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Hi,

hz justification brings better results, sometimes (most paragraphs don't change), but the entire typesetting is generally slow down with hz almost by factor 2.
Thus I'd like to have a a kind of "partial hz" that I can use on selected paragraphs only.


I hoped it should work like this:

\startfonthandling [stpure]
  \defineprotrudefactor endash 0 0.25
  \defineprotrudefactor hyphen 0 0.5
  \defineprotrudefactor / 0 0.5
  \defineprotrudefactor , 0 0.5
  \defineprotrudefactor . 0 0.5
  \defineprotrudefactor : 0 0.5
  \defineprotrudefactor ; 0 0.5
  \defineprotrudefactor - 0 0.5
  \defineprotrudefactor quotedblleft 0 0.25
\stopfonthandling
\definefonthandling [stpure]              [stpure]                       [type=hanging]
definefonthandling [sthighquality]     [hz,stpure]
\setupfonthandling [hz] [min=20,max=20,step=5]
\setupfontsynonym [Serif] [handling=sthighquality]
\setupfontsynonym [SerifBold] [handling=sthighquality]
\setupfontsynonym [SerifSlanted] [handling=sthighquality]
\setupfontsynonym [SerifItalic] [handling=sthighquality]
\setupfontsynonym [SerifBoldSlanted] [handling=sthighquality]
\setupfontsynonym [SerifBoldItalic] [handling=sthighquality]

\usetypescript[postscript][\defaultencoding]
\setupbodyfont[postscript,10pt]

\setupalign[block,hanging]

... and chosen paragraphs I'd wrap with a ...

\setupalign[block,hanging,hz]


But this doesn't make any improvement in speed.
The only relevant change seems to be
definefonthandling [sthighquality]     [hz,stpure]
 When this is changed to
definefonthandling [sthighquality]     [stpure]
then typesetting speeds up, of course.

But this gives me no choice between main text without and selected paragraphs with hz...



Any ideas?


Steffen
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-06-11  7:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-10 22:23 partial hz ? Steffen Wolfrum
2007-06-10 23:31 ` Aditya Mahajan
2007-06-11  7:32   ` Steffen Wolfrum

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