[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: [ xchat-Bugs-956606 ] LANGUAGE=ar xchat bug





From: Munzir Taha <munzirtaha at newhorizons dot com dot sa>
> > please help by suggestions on this bug.
> > It seems to be very simple but you decide.
> >
> > ---------- Forwarded Message ----------
> >
> > Subject: [ xchat-Bugs-956606 ] LANGUAGE=ar xchat bug
> > Date: Wednesday 19 May 2004 09:37 am
> > From: "SourceForge.net" <noreply at sourceforge dot net>
> > To: noreply at sourceforge dot net
> >
> > Bugs item #956606, was opened at 2004-05-19 09:51
> > Message generated for change (Comment added) made by zed
> > You can respond by visiting:
> > https://sourceforge.net/tracker/?func=detail&atid=100239&aid=956606&group
> >_id= 239
> >
> > Category: None
> > Group: None
> > Status: Open
> > Resolution: None
> > Priority: 5
> > Submitted By: Munzir Taha (munzirtaha)
> > Assigned to: Nobody/Anonymous (nobody)
> > Summary: LANGUAGE=ar xchat bug
> >
> > Initial Comment:
> > If the LANGUAGE variable is set to ar (Arabic), the direction
> > of the English text typed would be left to right (LTR) which
> > would cause readability issues and display problems e.g.
> > typing:
> >
> > /help will aappear as help/
> > hi ;) will appear as (; hi
> > /join # will appear as # join/
> >

a better explanation to the bug is that, the bidi implementation (done by GTK/Pango as behdad noted) sets the paragraph level to '1' (odd) which means that this is an arabic line, regardless of the contents. thats why weak chars (like, / : ( ) ... ) appear as if they were on an arabic line. at some point (i think) the env var LANG influences the paragraph level. and that should not be the case. this is not XCHAT specific i think..

the solution for this problem is that the BIDI implementation needs to
set the paragraph level according to how the Bidi Algorithm says it
should be, which is look for the first strong char, and set accordingly.

a quick look at XCHAT's code or a post to their list, would reveal the
Bidi engine.


ak.


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail