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

List:       kfm-devel
Subject:    Re: Arabic Messages in KDE3
From:       Meni Livne <livne () kde ! org>
Date:       2001-12-26 20:25:58
[Download RAW message or body]

(CCing to kfm-devel...)

On Wed, 26 Dec 2001 21:34:21, Isam Bayazidi wrote:
> Now, I saw that in konqueror of KDE3 the messages are mostly in
> the html page rather than in popup messages, that is indeed more
> much better. But now Arabic messages are appering from left to right
> rather than right left..

This is indeed a problem, with Hebrew too.

> Should I add the HTML attributes needed to make the text Right to
> Left?
> such as :
> <p dir="rtl">blah blah</p>

I don't think this is such a great solution. There are other changes
that need to be done in the HTML file for this to work. Doing dir=rtl
isn't enough. We still have to change everytime we have align=left
somewhere to align=right and vice versa. We also need to do
changes to the stylesheet definition for the background images to
be aligned right, and this requires some images on the page to be
mirrored.

What I think should be done is add custom HTML files for RTL like
intro_rtl.html, specs_rtl.html, konq_rtl.css etc., and also mirror
the images that would otherwise appear wrong. Then we replace
the line in konq_aboutpage.cc:
QString res = loadFile( locate( "data", "konqueror/about/intro.html" ));

with something like:
QString res = loadFile( locate( "data", kapp->reverseLayout() ? \
"konqueror/about/intro_rtl.html" : "konqueror/about/intro.html"));

I think it should work. I hope I was clear...
Anyone has a better idea for solving this?

Regards.


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

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