You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Regina Henschel <rb...@t-online.de> on 2012/07/11 00:57:25 UTC
Problem with page break in export to rtf
Hi,
I have looked at the issue
https://issues.apache.org/ooo/show_bug.cgi?id=120173 but cannot decide
whether it is something AOO should change.
The problem: In OOo3.3 page breaks are exported as special character
\page. In AOO 3.4 page breaks are exported as paragraph formatting
property \pagebb.
The reporter says, that the Sony E-Reader and the Samsung Galaxy II
Tablet does not recognize the new way of writing page breaks.
I have no such devices. Is it a problem with other devices too?
Does someone know the reason for the change?
Kind regards
Regina
RE: Problem with page break in export to rtf
Posted by "Dennis E. Hamilton" <de...@acm.org>.
>From the RTF Specification version 1.9.1 (published in 2008):
\pagebb is for "Break Page before the paragraph." It is a paragraph-formatting property. It can appear anywhere in the body of a paragraph, not just at the beginning. It is also inheritable onto subsequent paragraphs until a paragraph with \pard (reset of default properties) occurs.
\page is a special character (occurring as a <spec> in the character-text syntax). It signals a required page break. It is a companion of \column (required column break) and \line (required line break without paragraph break), \tab, etc.
- Dennis
PS: The specification is available here: <http://www.microsoft.com/en-us/download/details.aspx?id=10725>. This is considered the final specification for RTF. That's because there is a general extension mechanism for embedding XML. The handling of additional features (in Microsoft Office 2010, for example) is now by embedding the OOXML XML as necessary. RTF already has provision for graceful degradation when unknown up-level features are encountered by a down-level implementation.
-----Original Message-----
From: Lin Yuan [mailto:yuanlin.ibm@gmail.com]
Sent: Wednesday, July 11, 2012 23:48
To: ooo-dev@incubator.apache.org
Subject: Re: Problem with page break in export to rtf
[ ... ]
So I think the root cause of the issue is that in AOO there is only one
type of page break although there are different UI entry for it. But in RTF
there are two type of page breaks. I don't know exactly the difference
between \page and \pagebb. But seems AOO's "fo:break-before" is more
similar as "\pagebb". Both of them is a property of a paragraph style.
[ ... ]
Re: Problem with page break in export to rtf
Posted by Lin Yuan <yu...@gmail.com>.
I am not filter/format expert and I just did some tests as below:
(1) In AOO, insert a page break from menu "Insert->Manual Break->Page
Break".
(2) Change the Breaks properties for a paragraph from right-click menu
"Paragraph...->Text Flow->Breaks" and enable the checkbox for "Insert"
option
(3) Save the document as a ".odt" file.
Check the raw content.xml in the .odt file. We can found both of the
operations will set the paragraph to a style with fo:break-before="page"
properties. So the two operations have same result in AOO.
But if I create a similar document in MS Word 2010 as below
(1) Insert a page break from ribbon bar "Page Layout->Breaks->Page"
(2) Change the Breaks properties for a paragraph from right-click menu
"Paragraph...->Line and Page Breaks->Pagination" and enable the checkbox
for "Page Break Bofore" option
(3) Save the document as a ".rtf" file
Check the raw content in the .rtf file. We can found the first operation
will create a "\page" control word and the second operation will create a
"\pagebb" operation.
So I think the root cause of the issue is that in AOO there is only one
type of page break although there are different UI entry for it. But in RTF
there are two type of page breaks. I don't know exactly the difference
between \page and \pagebb. But seems AOO's "fo:break-before" is more
similar as "\pagebb". Both of them is a property of a paragraph style.
2012/7/11 Jürgen Schmidt <jo...@googlemail.com>
> On 7/11/12 12:57 AM, Regina Henschel wrote:
> > Hi,
> >
> > I have looked at the issue
> > https://issues.apache.org/ooo/show_bug.cgi?id=120173 but cannot decide
> > whether it is something AOO should change.
> >
> > The problem: In OOo3.3 page breaks are exported as special character
> > \page. In AOO 3.4 page breaks are exported as paragraph formatting
> > property \pagebb.
> >
> > The reporter says, that the Sony E-Reader and the Samsung Galaxy II
> > Tablet does not recognize the new way of writing page breaks.
> >
>
> the question is more if the new way is allowed and from the RTF spec ok.
>
> > I have no such devices. Is it a problem with other devices too?
> >
> > Does someone know the reason for the change?
>
> no but it would be important to know and to decide if the change
> can/should be reverted. If the change is fine according the RTF sepc I
> see no reason to change it back.
>
> Hopefully some filter/format experts can help here more.
>
> Juergen
>
Re: Problem with page break in export to rtf
Posted by Jürgen Schmidt <jo...@googlemail.com>.
On 7/11/12 12:57 AM, Regina Henschel wrote:
> Hi,
>
> I have looked at the issue
> https://issues.apache.org/ooo/show_bug.cgi?id=120173 but cannot decide
> whether it is something AOO should change.
>
> The problem: In OOo3.3 page breaks are exported as special character
> \page. In AOO 3.4 page breaks are exported as paragraph formatting
> property \pagebb.
>
> The reporter says, that the Sony E-Reader and the Samsung Galaxy II
> Tablet does not recognize the new way of writing page breaks.
>
the question is more if the new way is allowed and from the RTF spec ok.
> I have no such devices. Is it a problem with other devices too?
>
> Does someone know the reason for the change?
no but it would be important to know and to decide if the change
can/should be reverted. If the change is fine according the RTF sepc I
see no reason to change it back.
Hopefully some filter/format experts can help here more.
Juergen