ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* "A complex index" in _Digital Typography_
@ 1999-11-15 20:17 Ed L. Cashin
  1999-11-16  9:24 ` Hans Hagen
  1999-11-16 11:18 ` Taco Hoekwater
  0 siblings, 2 replies; 3+ messages in thread
From: Ed L. Cashin @ 1999-11-15 20:17 UTC (permalink / raw)


Hi.  In reading Knuth's _Digital Typography_ at lunch today, I came
across a section of the "Breaking Paragraphs into Lines" chapter that
relates directly to a difficulty in a project I'm doing.

In the section "A complex index", pp. 98ff., it describes a way to do
line breaking on an index entry such that the "name" part (on the
left) is ragged right and the "reference" part (on the right) is
ragged left, like this:

      |                                                       |
      | foo bar baz and even more........... 1100, 2000, 3300 |
      |                                                       |

      |                                      |
      | foo bar baz and even more ......     | 
      |                     1100, 2000, 3300 |
      |                                      |

      |                      |
      | foo bar baz and      |
      |    even more         |
      |     .... 1100, 2000, |
      |                 3300 |
      |                      |

I was planning on using perl to doctor the input text so that such
complex line-breaking decisions were unnecessary, but I'm wondering
now whether this might be something that people have already tackled. 

Is there support in ConTeXt for such complex line breaking strategies?
The criteria Knuth (and Plass) describe in the "A complex index"
section are pretty involved.

-- 
--Ed Cashin                     PGP public key:
  ecashin@coe.uga.edu           http://www.coe.uga.edu/~ecashin/pgp/


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

end of thread, other threads:[~1999-11-16 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-15 20:17 "A complex index" in _Digital Typography_ Ed L. Cashin
1999-11-16  9:24 ` Hans Hagen
1999-11-16 11:18 ` Taco Hoekwater

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