[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: UTF-8 with Konqueror and KHTMLPart
- To: Development Discussions <developer at arabeyes dot org>
- Subject: Re: UTF-8 with Konqueror and KHTMLPart
- From: "Abdalla S. Alothman" <abdalla at pheye dot net>
- Date: Sat, 30 Apr 2005 23:21:31 +0300
- Organization: Pheye Technologique, GT&C
- User-agent: KMail/1.8
Asalam alaikum,
I didn't come up with a fix, just a workaround. What I'm working
on are HTML reports generated from PostgreSQL tables and displayed
on a KHTMLPart; The KHTMLPart is initialized with the proper settings
to handle the files properly, and the HTML formating is taken care of.
However, to our luck, those reports rely on external CSS stylesheets.
I just added:
.ArFields /* fields containing arabic strings */
{
...
direction:rtl; /* right-to-left text flow */
}
in the CSS stylesheet. That took care of the text flow. Text alignment can
be handled with: text-align:right;
This is just a quick way to get over the problem. Since the program is
designed to use external CSS stylesheets, it is really not a fix, rather
just getting lucky. :)
If I open the report file with Kate, for example, for normal editing the
problem still persist. Unfortunately, I don't know what's causing the
problem--Inshallah I'll look into it in the weekend and post back if
there's anything positive.
A fix, IMHO would be to render the HTML properly and the CSS would be for
additional decoration. What I did was use CSS to fix simple UTF-8 rendering,
something an HTML engine should be able to handle without CSS. But since I
see the problem in Kate as well, I guess it's not only the KHTMLPart (and
Konqueror) that have that problem.
Wishing you and your family peace and good health.
Salam,
Abdalla