Hi,
I more or less fixed the leader generation causing all sorts of
problems and specifically #15936.
Some issues:
- The state machine detecting line breaks is brittle. It will probably
cause problems if leaders are mixed with graphics on the same line
I'm again tempted to do something about this.
- If the source contains whitespace at the end of the text in a block,
the last line of the block will have a space appended.
Therefore
<fo:block text-align-last="justify">Entry <fo:leader
leader-pattern="dots"/>32
</fo:block>
will not be properly right aligned.
I have no idea how to get rid of said space. Should we simply
recommend to avoid whitespace at the end of blocks if alignment
is critical?
- If the line is not space-justified, all leaders get the opt length
only.
- Justify if there are several leaders in a line. Currently the
algorithm is as follows:
1. Assign every leader opt space while filling the line.
2. In align(), max out leaders unless either there are no more
leaders or no more slack space.
3. Distribute any slack space left equally on the resizable spaces
(subject to round off, should use a Bresenham-like algo for
perfection :-)
Can anybody come up with an algorithm to distribute slack space
over several leaders which can deal with arbitrary combinations
of opt-max intervals?
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]