On Wed, 14 Sep 2005 01:33 am, Finn Bock wrote:
> [Manuel]
>
> > Any way, back to the topic at hand. Lets assume the following fo:
> >
> > <fo:block><fo:inline font-size=10pt">some 10pt text<fo:inline
> > font-size="12pt">some 12 pt text</fo:inline>more 10pt
> > text</fo:inline></fo:block>
> >
> > In this case the line-height everywhere is normal which is
> > equivalent to 1.2em. The innermost fo:inline will return an area
> > with a bpd of 12pt. However, the outer fo:inline has a smaller font
> > and as the line-height spec on an inline element is binding it can
> > only return areas of 10pt bpd therefore "cutting off" part of the
> > inner fo:inline. So our area tree (assuming it all fits on one
> > line) in fop terminology would look like:
> >
> > <linearea bpd="10000" space-before="1200" space-after="1200">
> >   <inlinearea bpd="10000">
> >     <textarea font-size="10pt">some 10pt text</textarea>
> >     <inlinearea bpd="12000">
> >       <textarea font-size="12pt">some 12pt text</textarea>
> >     </inlinearea>
> >     <textarea font-size="10pt">more 10pt text</textarea>
> >   </inlinearea>
> > <linearea>
>
> Right, except the 10000 and 12000 values should be text-altitude +
> text-depth:
>
Yes, of course - minor simplification on my part :-).

> <linearea bpd="11100" space-before="1650" space-after="1650">
>    <inlinearea bpd="9250">
>      <textarea font-size="10pt">some 10pt text</textarea>
>      <inlinearea bpd="11100">
>        <textarea font-size="12pt">some 12pt text</textarea>
>      </inlinearea>
>      <textarea font-size="10pt">more 10pt text</textarea>
>    </inlinearea>
> <linearea>
>
> All the inline areas also have a line-height trait of 12000 but that
> is only used when lls="line-height" [4.6].

Hmm, the line-height property would be "normal" everywhere which equates 
to "1.2" that means the trait would be "14400" for areas generated from 
fo elements with a font-size of "12pt" and "12000" for areas generated 
from fo elements with a font-size of "10pt". But as you said it doesn't 
matter really unless lss is "line-height".

>
> > In my interpretation as there is no explicit line-height spec on
> > the inlines we get an area tree like:
> >
> > <linearea bpd="12000" space-before="1200" space-after="1200">
> >   <inlinearea bpd="12000">
> >     <textarea font-size="10pt">some 10pt text</textarea>
> >     <inlinearea bpd="12000">
> >       <textarea font-size="12pt">some 12pt text</textarea>
> >     </inlinearea>
> >     <textarea font-size="10pt">more 10pt text</textarea>
> >   </inlinearea>
> > <linearea>
> >
> > I have no idea whose right or wrong here or even which
> > interpretation makes more sense.
>
>  From [4.6]:
> """An inline-area with inline-area children has a content-rectangle
> which extends from its dominant baseline (see [4.2.6 Font Baseline
> Tables]) by its text-depth in the block-progression-direction, and in
> the opposite direction by its text-altitude;"""
>
> So it appears that the bpd of an inline depends on the inline's font
> and not on the line-height property or the inline's children.
>
> Does it make sense?
>
Yes it does. Does it also means the bpd doesn't "bubble up" in the case 
of nested inlines? So if we expand on the example of the nested inline 
above:

<fo:block><fo:inline font-size=10pt">some 10pt text<fo:inline
font-size="14pt">some 14 pt text</fo:inline>more 10pt
text</fo:inline></fo:block>

Does the line-area generated from that have a bpd corresponding to a 
12pt font or 14 pt font (spec [4.5] for lss="max-height": 
"block-progression-direction is the minimum required to enclose both 
the nominal-requested-line-rectangle and the allocation-rectangles of 
all the inline-areas stacked within the line-area")?

The nominal-requested-line-rectangle corresponds to a 12pt font. But is 
the area generated from the nested inline an "inline-area stacked 
within the line-area" or not? Or is only the inline area generated from 
the outer inline an "inline-area stacked within the line-area" as the 
inner inline area is contained within the outer inline area and 
therefore not really stacked. If the second interpretation is correct 
the line-area would have a bpd corresponding to a 12pt font and only 
unnesting like:

<fo:block><fo:inline font-size=10pt">some 10pt 
text</fo:inline><fo:inline
font-size="14pt">some 14 pt text</fo:inline><fo:inline 
font-size=10pt">more 10pt
text</fo:inline></fo:block>

would give us a line-area with a bpd corresponding to a 14pt font.

>
> I have no idea what the spec means by [7.15.4]:
>
> """If the property is set on an inline-level element, it specifies
> the exact height of each box generated by the element."""
>
> because both "set" and "box" is undefined by the rest of the spec.
> The text is copied from CSS where it perhaps makes sense.
>

OK, I agree its hard to make sense out of this. So lets just ignore this 
then for the time being.

> regards,
> finn

Cheers

Manuel

Reply via email to