https://bugs.documentfoundation.org/show_bug.cgi?id=98620
Justin L <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS|Windows (All) |All
Assignee|[email protected] |[email protected]
|desktop.org |
Version|5.1.1.3 release |Inherited From OOo
Status|NEW |ASSIGNED
--- Comment #27 from Justin L <[email protected]> ---
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._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs