[Libreoffice-bugs] [Bug 98620] FILESAVE: DOCX - Error in paragraph orientation after converting in a RTL user locale
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 12 17:04:53 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=98620
Justin L <jluth at mail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS|Windows (All) |All
Assignee|libreoffice-bugs at lists.free |jluth at mail.com
|desktop.org |
Version|5.1.1.3 release |Inherited From OOo
Status|NEW |ASSIGNED
--- Comment #27 from Justin L <jluth at mail.com> ---
The easy fix for this example document would be to set the default paragraph
style to a specific format instead of "use superordinate object settings".
For DOCX, I think the RTL problem is because it is taking the locale
(environment) setting and applying it to each paragraph:
> If a given para is using the FRMDIR_ENVIRONMENT direction we
> cannot export that, its its ltr then that's ok as thats word's
> default. Otherwise we must add a RTL attribute to our export list
added pre-docx format in 2002.
https://cgit.freedesktop.org/libreoffice/core/commit/?id=2165e74081cd71d862b922546da8af96fc04b12c
Also, the ParaAdjust() function takes it's cue from the environment:
> if ( nDir == FRMDIR_ENVIRONMENT )
> nDir = GetExport( ).GetDefaultFrameDirection( );
from original 2010 commit "Some fixes for exporting OOXML docx files"
https://cgit.freedesktop.org/libreoffice/core/commit/?id=27b1a18b92366ace12bb54c3e21904e2eb380a18
and this detail-less 2007 commit also looks important:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=51099bf6493a7f24990da534c41f314c4624b0a8
So, a potential "fix" to make this act more like the .doc format is
https://gerrit.libreoffice.org/57356 tdf#98620 RTL: reduce environment effect
on loading docx/rtf
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180712/fd94ba37/attachment.html>
More information about the Libreoffice-bugs
mailing list