I'm trying to follow the instructions of a desginer. I have one problem.
They've specified layout often using BB (baseline-to-baseline)
measurements.

For instance, I have a heading and a paragraph. The distance between the
heading and the paragraph is given as "18'bb below to text" which means (I
believe) an 18 point distance between the heading's baseline and the first
line of the following paragraph's baseline.

I've been hunting around the FO docs for some time looking for a good way
to do this, and I haven't found anything yet. Does anyone who knows the FO
spec have any ideas?

The only two things I've been able to think of are somehow giving the
first word in the following paragraph a large (i.e. 18pt) inline height
(but I can't wrap an arbitrary word in XSLT), and then there's this
intriguing business in the spec (section 7.15.4):

    "The line-height.conditionality setting can be used to control the
half-leading above the first line or after the last line that is placed in
a reference-area."

    "The line-height.precedence setting can be used to control the merging
of the half-leading with other spaces."

However, in section 4.3:

    "Conditionality is an enumerated value which controls whether a
space-specifier has effect at the beginning or end of a reference-area or
a line-area. Possible values are retain and discard; a conditional
space-specifier is one for which this value is discard."

So in other words, I can have extra baseline-driven spacing everywhere
_but_ the beginning and end, but I can't have it just at the beginning (or
just at the end).

I'm open to suggestions. Is this even possible in FO? And if it is, is it
possible in FOP?

-David

Reply via email to