Bug 207915 - OOo-created RTL ODT files displayed with wrong directionality
Summary: OOo-created RTL ODT files displayed with wrong directionality
Status: RESOLVED NOT A BUG
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: 2.0
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2009-09-19 20:56 UTC by Dotan Cohen
Modified: 2015-05-03 11:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Document with RTL text created in Kword (3.60 KB, application/vnd.oasis.opendocument.text)
2009-09-19 20:58 UTC, Dotan Cohen
Details
Document with RTL text created in OOo, with the text set as LTR (7.39 KB, application/vnd.oasis.opendocument.text)
2009-09-19 20:59 UTC, Dotan Cohen
Details
Document with RTL text created in OOo, with the text set as RTL (7.48 KB, application/vnd.oasis.opendocument.text)
2009-09-19 20:59 UTC, Dotan Cohen
Details
Document with RTL text created in MS Office 2007, with the text set as RTL (11.10 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2009-09-20 11:28 UTC, Dotan Cohen
Details
Document with RTL text created in MS Office 2007, with the text set as LTR (11.13 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2009-09-20 11:29 UTC, Dotan Cohen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dotan Cohen 2009-09-19 20:56:33 UTC
Version:            (using KDE 4.3.1)
Installed from:    Ubuntu Packages

Right-to-Left ODF documents created in Open Office 3.1 display with wrong directionality in Kword 2.1 beta. It appears that Kword automatically determines paragraph directionality. In contrast, Open Office relies on the user to set directionality. I have created three test documents and come to these conclusions:


1) Documents created in Kword (Kword has no option for the user to set directionality)
- Kword correctly sets directionality for RTL text written in Kword.
- Open Office displays RTL text written in Kword as LTR. I cannot comment if this is correct or not as I do not know if Kword is setting the RTL marker in the file or relying on it's own automatic setting should the document be opened in Kword.


2) Documents created in OOo with directionality set to RTL
- Kword incorrectly sets directionality to LTR for RTL text written in Open Office that is marked as RTL.


3) Documents created in OOo with directionality set to LTR
- Kword incorrectly sets directionality to RTL for RTL text written in Open Office that is marked as LTR.
Comment 1 Dotan Cohen 2009-09-19 20:58:57 UTC
Created attachment 37073 [details]
Document with RTL text created in Kword
Comment 2 Dotan Cohen 2009-09-19 20:59:35 UTC
Created attachment 37074 [details]
Document with RTL text created in OOo, with the text set as LTR
Comment 3 Dotan Cohen 2009-09-19 20:59:53 UTC
Created attachment 37075 [details]
Document with RTL text created in OOo, with the text set as RTL
Comment 4 Dotan Cohen 2009-09-20 11:28:38 UTC
Created attachment 37080 [details]
Document with RTL text created in MS Office 2007, with the text set as RTL

This is a .docx MSO2007 file with the RTL text set as RTL. I have not tested it in Kword yet as this is a university windows computer, but I am attaching it to the bug so that I could test it later. Note that the version of MS Office on this machine does not support ODF, so I could not test the Kword-generated file here.
Comment 5 Dotan Cohen 2009-09-20 11:29:47 UTC
Created attachment 37081 [details]
Document with RTL text created in MS Office 2007, with the text set as LTR

Same as above, but with RTL text set to LTR.
Comment 6 Thomas Zander 2009-09-22 14:34:05 UTC
SVN commit 1026738 by zander:

Fix loading RTL properties

Make the page style aware of directionality allowing the loading
of documents that have directionality in the master style
CCBUG:207915

 M  +5 -1      kword/part/KWPage.cpp  
 M  +1 -1      kword/part/KWPageManager_p.h  
 M  +15 -0     kword/part/KWPageStyle.cpp  
 M  +4 -0      kword/part/KWPageStyle.h  
 M  +2 -0      kword/part/KWPageStyle_p.h  
 M  +2 -0      plugins/textshape/Layout.cpp  
 M  +1 -0      plugins/textshape/dialogs/SimpleStyleWidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1026738
Comment 7 Thomas Zander 2009-09-22 15:40:30 UTC
This is not our bug; this is a bug in OOo, reported here; http://www.openoffice.org/issues/show_bug.cgi?id=105270
Comment 8 Dotan Cohen 2015-05-03 11:51:34 UTC
Related OOo link rotted when OOo bugtracker was moved. Here is the link on archive.org:
https://web.archive.org/web/20110301055910/http://openoffice.org/bugzilla/show_bug.cgi?id=105270