[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kplato
Subject:    Re: RTL documents in Koffice
From:       Thomas Zander <zander () kde ! org>
Date:       2009-09-22 12:14:30
Message-ID: 200909221414.30601.zander () kde ! org
[Download RAW message or body]

On Saturday 19. September 2009 21.07.28 ext Dotan Cohen wrote:
> > That sounds like a bug somewhere; RTL docs I have open just fine in
> > kword.
>
> I assume that these are documents originally created in Kword? Upon
> testing, I see that those display fine, it is OOo documents that are
> problematic.

After some research I found out the following;
* KWord didn't implement text direction for master pages. I added that. Will 
commit shortly.

* OOo saves documents incorrectly.  The text direction is saved correctly, the 
alignment of the text is not. So you'll see that paragraphs are right aligned 
in OOo and left in any other ODF app.
The bug is that OOo seems to unconditionally say that right-align equals 'end' 
alignment. Which is not true for RTL paragraphs.[1]

So I'm not sure how to handle that.  I think we have to follow the ODF spec 
and optionally add a hack when we know we are loading OOo files to correct 
their files.  But that gets really dirty if they fix it in the future.

*sigh*


1) XSL says;
end: Specifies that the content is to be aligned on the end-edge in the inline-
progression-direction.

-- 
Thomas Zander

Qt Developer Days 2009 | Early Bird Pricing - Save €200/$200!
Munich, Germany: October 12th - 14th
San Francisco, California: November 2nd - 4th
Register now! http://qt.nokia.com/qtdevdays2009
____________________________________
koffice mailing list
koffice@kde.org
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic