Created attachment 54652 [details] sample docx file with an RTL paragraph When generating a docx file with a RTL paragraph, the paragraph looks fine in LibreOffice. But when opening the file in MS Word (2007 / 2010) the paragraph appears as LTR.
This commit is relevant for this bug http://cgit.freedesktop.org/libreoffice/core/commit/?id=e9911f12d1e124d1910ac2310c224e66ab365ed4 docx: fdo#43093 fdo#44029 fix the alignment when the paragraph are RTL
It that the latest build still has the problem (tested using Build ID: cb14b1e56d2aab70d28afca8bf039a27f89671c8)
Hello Ophir Yoktan, I've tested Faisal's patch and it works for me, can you check again please?
Created attachment 89714 [details] RTL save bug (created with LO set to RTL locale) Hi Faisal, I found one more problem, with LO set to RTL locale (so the default paragraph direction is RTL right aligned): if you open a new document, write some text and save to docx, it will open in MS Word as RTL *left* aligned. Opening the docx in LO still shows RTL right aligned, so it both opening & saving bug. It's happening only at the beginning of a document, as changing direction\alignment to something else, and later changing back does open\save correctly. Looks like it caused by the locale where the original document is created, because opening this document in LO set to LTR locale and saving to docx, also shows the bug.
Faisal M. Al-Otaibi committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=4add062a1b1feb11f9b14d3a0593a8f9b27f2404 docx: fdo#44029 export the right alignment when locale are RTL. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Hi Faisal, Thank you for all your efforts in fixing docx direction bugs. I really appreciate your patience! I can confirm the fix with master build. But it's apply only when locale set to RTL. Problem is still there if you open & save using LO with LTR locale, a document previously created with RTL locale. (Isn't it easier to just force LO to always export the alignment regardless the default?) Also would be great if you could commit also to libreoffice-4-2 so all users could benefit your great work in the near future. To not clutter this bug, I opened Bug 72560 for one more problem. It's unfortunate that after all my intensive tests with real world documents, there are still issues! You might be also interested in Bug 72017. It's a document created using LO probably before your patches. Thank you again!
(In reply to comment #6) > Hi Faisal, > > Thank you for all your efforts in fixing docx direction bugs. I really > appreciate your patience! you are welcome :) and thank you for your test and verified the patches. > I can confirm the fix with master build. But it's apply only when locale set > to RTL. Problem is still there if you open & save using LO with LTR locale, > a document previously created with RTL locale. (Isn't it easier to just > force LO to always export the alignment regardless the default?) Also would > be great if you could commit also to libreoffice-4-2 so all users could > benefit your great work in the near future. hmmm i can't reproduce it with libreoffice Build ID: 6e6d0ef0b8fd5b89aeb292700cca3096a03681bf can you see if it is still there if yes please upload a test file. thanks.
(In reply to comment #7) > can you see if it is still there > if yes please upload a test file. It's reproducible with attachment 89714 [details]. Make sure to set LO to LTR locale. The result document will right aligned with LO, but left aligned with MS Word. Tested with Build ID: 4c539fac018dfd44cd8db52161a8cb930c627da7.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.