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

Re: Katoob and pending gtk+ patches



Hi,
sorry for my late reply.

On Fri, Feb 27, 2004 at 03:09:56PM +0200, dov at imagic dot weizmann dot ac dot il wrote:
> Salaam,
> 
> I hope this is the right mailing list for writing about katoob.
> 
> I have a while ago written some BiDi related patches to gtk+, that
> are currently awaiting approval from the project leader Owen Taylor.
> The major idea of the changes is that the paragraph direction will
> no longer be controlled by the widget direction property nor by
> the paragraph direction property, but will be calculated separately 
> for each paragraph according its contents.  In short, the first 
> strong (in the meaning of the unicode BiDi algorithm) character will 
> determine the base direction and the alignment of the paragraph. 
> Neutral paragraphs (that don't contain any strong characters) inherit
> the direction of the previous paragraph, and if it is the first
> paragraph in the file, it inherits the direction of its following
> paragraph.
> 
Thanks for letting us know, This is a really needed feature, though i
neither have enough time to have a look at it nor do I understand gtk+
and pango internals enough.
Does this mean that the text direction can't be set to RTL/LTR anymore
?
applying Bidi when editing HTML for example is bad.

> I realize that this patch somewhat breaks the way that katoob currently
> works, though I believe it is for the better. I think that the 
> heuristics implemented is more intuitive than manual setting of
> the paragraph direction. In case of ambiguity, it is always possible
> to add a zerowidth unicode control character in the beginning of
> the paragraph in order to force its direction.
> 
The latest katoob allign paragraphs acc. to the bidi algorithm, Maybe
it's not perfect but it works, U can also set the direction manually
and disable the bidi allignment.
there is a gtk API call to set the direction of the widgets: 
 gtk_widget_set_direction() 
won't this work anymore for gtktextview ?
this'd be bad, But I'll have to do a work arround it. Actually, I hate
applying the bidi direction to text I'm editing or reading

> You may find the discussion as well as patches on the issue at:
> 
>     http://bugzilla.gnome.org/show_bug.cgi?id=70451
> 
> as well as bugs 118540, 118541, 118543 .
> 
had a look at the first bug, I'll look at the rest today ISA, and>
follow up.

> I'm now subscribed to this mailing list, so if you see any problems
> with this approach, let's discuss it here.
> 
hope I'll have enough time today as we are moving to another place at
work.
Any ideas when will it be included ?

-- 
----------------
-- Katoob Main Developer
Linux registered user #224950, ICQ #58475622
--
Don't send me any attachment in Micro$oft (.DOC, .PPT) format please
Read http://www.fsf.org/philosophy/no-word-attachments.html
Preferable attachments: .PDF, .HTML, .TXT
Thanx for adding this text to Your signature
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT d-(++)@ s+(++):->+++ a-- C+++$>++++ UL+++$>++++ P+++$>+++++
L+++(++++)$>+++++ E>+++ W++?>$ N+>+++ o? K-? !w++ !O !M !V !PS@ !PE@ Y+ PGP=+++
t? 5? !X R? tv-- b+@ DI D+ G-- e++>+++ h-->++ !r y?
------END GEEK CODE BLOCK------

Attachment: pgp00001.pgp
Description: PGP signature