Bug 52609 - rtf exporting loses some of the formattings
Summary: rtf exporting loses some of the formattings
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: filters (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Ariya Hidayat
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-04 22:28 UTC by Yossi Natanson
Modified: 2003-01-05 18:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
the original file (3.61 KB, application/octet-stream)
2003-01-04 22:29 UTC, Yossi Natanson
Details
the same file, saved as rtf (857 bytes, application/octet-stream)
2003-01-04 22:30 UTC, Yossi Natanson
Details
Your document exported by the developement version of the filter (1.43 KB, text/rtf)
2003-01-05 17:13 UTC, Nicolas Goutte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yossi Natanson 2003-01-04 22:28:19 UTC
Version:           1.21 (using KDE KDE 3.0.3)
Installed from:    Mandrake RPMs

when I save a file in RTF format, some of the formatings are lost:
font is lost
spacing between lines is lost
ruler (margins for a particular line) is lost
I'll attach example
Comment 1 Yossi Natanson 2003-01-04 22:29:13 UTC
Created attachment 697 [details]
the original file
Comment 2 Yossi Natanson 2003-01-04 22:30:17 UTC
Created attachment 698 [details]
the same file, saved as rtf
Comment 3 Nicolas Goutte 2003-01-05 15:17:55 UTC
At first glance, I would tell that the RTF export filter in KOffice 1.2 cannot 
do any of those. However, I think that the new developement filter is able to 
handle it correctly. 
 
Have a nice day/evening/night! 
Comment 4 Nicolas Goutte 2003-01-05 17:05:35 UTC
Subject: koffice/filters/kword/rtf/oldexport

CVS commit by goutte: 

No space between font name and ;
CCMAIL: 52609@bugs.kde.org


  M +1 -1      rtfexport.cc   1.3


--- koffice/filters/kword/rtf/oldexport/rtfexport.cc  #1.2:1.3
@@ -800,5 +800,5 @@ QString fontTableMarkup(QString fontName
    fontHeader += "\\fcharset0\\fprq2 "; // font definition
    fontHeader += fontName;
-   fontHeader += " ;}"; // end font table entry
+   fontHeader += ";}"; // end font table entry
    return font;  // this is the font selection markup
 


Comment 5 Nicolas Goutte 2003-01-05 17:09:56 UTC
I think that I have found the problem for the font name. In RTF font names are finished with a ; However the export filter adds an extra space.  As for line spacings and indents, it is not support by the filter of KOffice 1.2.x. However the new filter of the development version of KOffice is handling them correctly.  Have a nice day/evening/night! 
Comment 6 Nicolas Goutte 2003-01-05 17:13:15 UTC
Created attachment 701 [details]
Your document exported by the developement version of the filter
Comment 7 Yossi Natanson 2003-01-05 18:04:40 UTC
can you please translate it for simple users?
is there anything I need to do, or just wait for the new release of koffice (1.22)
or maybe there is a patch or fix ?
as for now, I simply can't use kword...
Comment 8 Nicolas Goutte 2003-01-06 20:52:10 UTC
Subject: Re:  rtf exporting loses some of the formattings

As I suppose that you do not want to compile KOffice yourself, you need to 
wait on a new version. However, I do not know when your distribution will 
have a version with the new changes for KOffice 1.2.x. (A KOffice 1.2.2 is 
not scheduled for now.)

As for the new filter, it will only be for KOffice 1.3, which will be released 
probably in late Summer 2003.

I am sorry that you cannot use KWord but the problem is that the RTF export 
filter for KOffice 1.2.x is in bad shape, as its maintainer was lost. So 
technically it is still more a KOffice 1.1 filter. (Therefore it cannot do 
linespacing, indents, pictures, tables...)

Some people have had good result with exporting as HTML. However, I do not 
know if it is also true for right-to-left languages. The problem of using 
HTML is that KWord cannot import HTML correctly. Therefore you have to keep a 
KWord document beside the HTML version. But otherwise, it might work by using 
HTML from KWord to the other word processor and RTF from the other word 
processor to KWord. (In the HTML export filter dialog, you should choose 
"enhanced". If you have problems with it, then choose "basic".)

That is unfortunately the situation. As we have very few manpower for 
developing the filters, it goes only very slowly.

Have a nice day/evening/night!

On Sunday 05 January 2003 18:04, Yossi Natanson wrote:
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
> http://bugs.kde.org/show_bug.cgi?id=52609
>
>
>
>
> ------- Additional Comments From yossin@yossin.com  2003-01-05 18:04
> ------- can you please translate it for simple users?
> is there anything I need to do, or just wait for the new release of koffice
> (1.22) or maybe there is a patch or fix ?
> as for now, I simply can't use kword...