You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Gerry King <ge...@thomson.com> on 2007/11/06 18:52:59 UTC

RTF has exra line

Any one know why what appears to be an extra line would appear in an RTF but not
a PDF generated from the same FO? This is what it looks like in Notepad++. 

1) Line 1 <CR><LF>
2) Line 2 <CR><LF>

3) Line 3 <CR><LF>

In Word the <CR><LF> are all paragraph marks (no soft returns that you get with
<Shft><Return> in MS-Word). The text is japanese unicode.

TIA

Gerry 



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


Re: RTF has exra line

Posted by Gerry King <ge...@thomson.com>.
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:

> Can't you please just attach an FO file? 

Thanks Jeremias, I have emailed the FO and output to you. I deleted the
align-text-last attribute but that didn't have any affect.

regards,

Gerry




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


Re: RTF has exra line

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Can't you please just attach an FO file? There's all sorts of
uncertainty involved if want to reproduce this and I'd rather not waste
time. Thanks.

If the content is sensitive, you can also send it directly to me. I'll
take a look when I have time.

Jeremias Maerki



On 07.11.2007 16:42:24 Gerry King wrote:
> Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
> 
> > 
> > Without the XSL-FO to demonstrate the problem, there's not much that can
> > be done.
> 
> Here's the XSL-FO which I have edited down:
> 
> <fo:flow flow-name="xsl-region-body">
>   <fo:block font-family="sazanami-mincho, msmincho, Arial, sans serif"
>               font-size="10pt">
> 
>        ... Preceding blocks deleted for sake of brevity
> 
>     <fo:block font-size="10pt" 
>               font-family="sazanami-mincho, msmincho, Arial, sans serif"
>               space-before="1em" text-align="left" text-align-last="relative">
> 
>         (1)行為を etc...
>          <fo:block space-after="0.001mm"> </fo:block>
>         (2)新潟 etc...
>          <fo:block space-after="0.001mm"> </fo:block>
>         (3)将来  etc... This is the one that gets 10pt before
>     </fo:block>
> 
>   </fo:block>
>   
>   <fo:block text-align="center" space-after="1em">
>     <fo:inline>*******</fo:inline>
>   </fo:block>
> 
>    <fo:block/>
> 
> </fo:flow>
> 
> I suspect the source of the problem is the way FOP handles
>      
>     text-align-last="relative"
> 
> 
> > Please also note that the RTF output is not as mature or
> > complete as PDF output. Some features of XSL-FO can even not properly be
> > mapped to RTF so some compromises may be necessary.
> 
> I had been warned ... FWIW I see there is a current open issue "text-align and
> text-align-last only partially implemented"
> http://issues.apache.org/bugzilla/show_bug.cgi?id=20280 which may have some
> bearing on the problem...
> 
> regards,
> 
> Gerry
> 


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


Re: RTF has exra line

Posted by Gerry King <ge...@thomson.com>.
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:

> 
> Without the XSL-FO to demonstrate the problem, there's not much that can
> be done.

Here's the XSL-FO which I have edited down:

<fo:flow flow-name="xsl-region-body">
  <fo:block font-family="sazanami-mincho, msmincho, Arial, sans serif"
              font-size="10pt">

       ... Preceding blocks deleted for sake of brevity

    <fo:block font-size="10pt" 
              font-family="sazanami-mincho, msmincho, Arial, sans serif"
              space-before="1em" text-align="left" text-align-last="relative">

        (1)行為を etc...
         <fo:block space-after="0.001mm"> </fo:block>
        (2)新潟 etc...
         <fo:block space-after="0.001mm"> </fo:block>
        (3)将来  etc... This is the one that gets 10pt before
    </fo:block>

  </fo:block>
  
  <fo:block text-align="center" space-after="1em">
    <fo:inline>*******</fo:inline>
  </fo:block>

   <fo:block/>

</fo:flow>

I suspect the source of the problem is the way FOP handles
     
    text-align-last="relative"


> Please also note that the RTF output is not as mature or
> complete as PDF output. Some features of XSL-FO can even not properly be
> mapped to RTF so some compromises may be necessary.

I had been warned ... FWIW I see there is a current open issue "text-align and
text-align-last only partially implemented"
http://issues.apache.org/bugzilla/show_bug.cgi?id=20280 which may have some
bearing on the problem...

regards,

Gerry








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


Re: RTF has exra line

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Without the XSL-FO to demonstrate the problem, there's not much that can
be done. Please also note that the RTF output is not as mature or
complete as PDF output. Some features of XSL-FO can even not properly be
mapped to RTF so some compromises may be necessary.

Jeremias Maerki



On 06.11.2007 18:52:59 Gerry King wrote:
> Any one know why what appears to be an extra line would appear in an RTF but not
> a PDF generated from the same FO? This is what it looks like in Notepad++. 
> 
> 1) Line 1 <CR><LF>
> 2) Line 2 <CR><LF>
> 
> 3) Line 3 <CR><LF>
> 
> In Word the <CR><LF> are all paragraph marks (no soft returns that you get with
> <Shft><Return> in MS-Word). The text is japanese unicode.
> 
> TIA
> 
> Gerry 


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