You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Christopher R. Maden" <cr...@exemplary.net> on 1999/12/02 13:02:09 UTC
wrap-option="no-wrap" test file
When I format the file below, the Y coordinates of every word in the
non-wrapped block are the same. Can anyone tell me why?
-Chris
<?xml version="1.0" encoding="utf-8"?>
<fo:root
font-family="'Times Roman', 'Times New Roman', serif"
font-size="12pt" text-align="justified"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
><fo:layout-master-set
><fo:simple-page-master
page-master-name="right"
margin-top="75pt"
margin-bottom="25pt"
margin-left="100pt"
margin-right="50pt"
><fo:region-body
margin-bottom="50pt"
/><fo:region-after
extent="25pt"
/></fo:simple-page-master
><fo:simple-page-master
page-master-name="left"
margin-top="75pt"
margin-bottom="25pt"
margin-left="50pt"
margin-right="100pt"
><fo:region-body margin-bottom="50pt"
/><fo:region-after
extent="25pt"
/></fo:simple-page-master
></fo:layout-master-set
><fo:page-sequence
id="N2526"
><fo:sequence-specification
><fo:sequence-specifier-alternating
page-master-first="right"
page-master-odd="right"
page-master-even="left"
/></fo:sequence-specification
><fo:flow
><fo:block
wrap-option="no-wrap"
text-align="start"
whitespace-treatment="preserve"
font-family="monospace"
space-before.minimum="0.8em"
space-before.optimum="1em"
space-before.maximum="1.2em"
>Perl invocation
Strict syntax checking
Generate Output
</fo:block
></fo:flow
></fo:page-sequence
></fo:root>
Re: wrap-option="no-wrap" test file
Posted by James Tauber <jt...@jtauber.com>.
> When I format the file below, the Y coordinates of every word in the
> non-wrapped block are the same. Can anyone tell me why?
Aha! I finally worked it out. FOP currently uses white-space-treatment, not
whitespace-treatment. From memory the XSL spec is currently inconsistent (it
uses both). I can't recall which one was chosen in the end.
James
PS Note that FOP doesn't yet support font family lists so I suspect the
font-family on root would cause problems as is. You would have to make it
just "serif" for now.
> <?xml version="1.0" encoding="utf-8"?>
> <fo:root
> font-family="'Times Roman', 'Times New Roman', serif"
> font-size="12pt" text-align="justified"
> xmlns:fo="http://www.w3.org/1999/XSL/Format"
> ><fo:layout-master-set
> ><fo:simple-page-master
> page-master-name="right"
> margin-top="75pt"
> margin-bottom="25pt"
> margin-left="100pt"
> margin-right="50pt"
> ><fo:region-body
> margin-bottom="50pt"
> /><fo:region-after
> extent="25pt"
> /></fo:simple-page-master
> ><fo:simple-page-master
> page-master-name="left"
> margin-top="75pt"
> margin-bottom="25pt"
> margin-left="50pt"
> margin-right="100pt"
> ><fo:region-body margin-bottom="50pt"
> /><fo:region-after
> extent="25pt"
> /></fo:simple-page-master
> ></fo:layout-master-set
> ><fo:page-sequence
> id="N2526"
> ><fo:sequence-specification
> ><fo:sequence-specifier-alternating
> page-master-first="right"
> page-master-odd="right"
> page-master-even="left"
> /></fo:sequence-specification
> ><fo:flow
> ><fo:block
> wrap-option="no-wrap"
> text-align="start"
> whitespace-treatment="preserve"
> font-family="monospace"
> space-before.minimum="0.8em"
> space-before.optimum="1em"
> space-before.maximum="1.2em"
> >Perl invocation
> Strict syntax checking
> Generate Output
> </fo:block
> ></fo:flow
> ></fo:page-sequence
> ></fo:root>
>
>