xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Xmlgraphics-fop Wiki] Trivial Update of "WhitespaceManagement" by JeremiasMaerki
Date Wed, 07 Feb 2007 15:58:24 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.

The following page has been changed by JeremiasMaerki:
http://wiki.apache.org/xmlgraphics-fop/WhitespaceManagement

The comment on the change is:
Nicer indenting...

------------------------------------------------------------------------------
  
  To explain the requirement a bit more, lets consider an example extension element fox:best-fit.
  
+ {{{
- <fox:best-fit>[[BR]]
+ <fox:best-fit>
- <fox:alternative>[[BR]]
+   <fox:alternative>
- <fo:block>[[BR]]
- Short Message[[BR]]
- </fo:block>[[BR]]
+     <fo:block>
+       Short Message
+     </fo:block>
- </fox:alternative>[[BR]]
+   </fox:alternative>
- <fo:block>[[BR]]
- 2 Line Message[[BR]]
- 2 Line Message[[BR]]
- </fo:block>[[BR]]
- <fox:alternative>[[BR]]
+   <fox:alternative>
+     <fo:block>
+       2 Line Message
+       2 Line Message
+     </fo:block>
+   <fox:alternative>
- </fox:alternative>[[BR]]
+   </fox:alternative>
+     <fo:block>
+       3 Line Message
+       3 Line Message
+       3 Line Message
+     </fo:block>
- <fo:block>[[BR]]
- 3 Line Message[[BR]]
- 3 Line Message[[BR]]
- 3 Line Message[[BR]]
- </fo:block>[[BR]]
- <fox:alternative>[[BR]]
- </fox:alternative>[[BR]]
+   </fox:alternative>
- <fox:alternative>[[BR]]
+   <fox:alternative>
- <fo:block>[[BR]]
- Long Message.[[BR]]
- Long Message.[[BR]]
- Long Message.[[BR]]
- Long Message.[[BR]]
- </fo:block>[[BR]]
+     <fo:block>
+       Long Message.
+       Long Message.
+       Long Message.
+       Long Message.
+     </fo:block>
- </fox:alternative>[[BR]]
+   </fox:alternative>
  </fox:best-fit>
+ }}}
  
  When the Renderer encounters a fox:best-fit element it analyses the available space in BPD
within the current page and selects the alternative which fits "best" within the remaining
BPD. By best fit, I mean the BPD of the alternative is less than remaining BPD but more than
the BPD of all other alternatives which are less than the remaining BPD.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message