Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-04

Bidi TextOut in GTK2

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello,

I'm working on adding BiDi support for TextOut in GTK2, and you can see the result.
The text align itself according to the strong letters rather then the effect of bdRightToLeft and bdLeftToRight when Pango is in use.

I still have few tests to make, and then I'll send a patch to mantis on this subject.
I also added to FPC's mantis (and not only to the extra file of gtk) the missing functions for supporting what I've made, so I hope it will be included as well in FPC.

Any comments so far on what was made here ?

Ido

http://ik.homelinux.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100414/2af46239/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: bidi-textout.png
Type: image/png
Size: 16506 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100414/2af46239/attachment-0001.png>

Reply by email

ik
to ik

I've added the code (after making sure I do not brake anything) here: http://bugs.freepascal.org/view.php?id=16271

Ido

http://ik.homelinux.org/

ik wrote 19 lines
Hello, I'm working on adding BiDi support for TextOut in GTK2, and you can see the result. The text align itself according to the strong letters rather then the effect of bdRightToLeft and bdLeftToRight when Pango is in use. I still have few tests to make, and then I'll send a patch to mantis on this subject. I also added to FPC's mantis (and not only to the extra file of gtk) the missing functions for supporting what I've made, so I hope it will be included as well in FPC. Any comments so far on what was made here ? Ido http://ik.homelinux.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100414/23b0dcaa/attachment.html>

Reply by email

Zaher Dirkey
to ik: I'm working on adding BiDi support for TextOut in GTK2, and you can see the result. The…

2010/4/14 ik :

Show quoted text 15 lines
Hello, I'm working on adding BiDi support for TextOut in GTK2, and you can see the result. The text align itself according to the strong letters rather then the effect of bdRightToLeft and bdLeftToRight when Pango is in use. I still have few tests to make, and then I'll send a patch to mantis on this subject. I also added to FPC's mantis (and not only to the extra file of gtk) the missing functions for supporting what I've made, so I hope it will be included as well in FPC. Any comments so far on what was made here ?

Thank you Ido, for me it is step to jump to Linux system, GTK it is very strange for me.

Zaher Dirkey

Reply by email

ik
to Zaher Dirkey

http://ik.homelinux.org/

Zaher Dirkey wrote 23 lines
2010/4/14 ik : > Hello, > > I'm working on adding BiDi support for TextOut in GTK2, and you can see the > result. > The text align itself according to the strong letters rather then the effect > of bdRightToLeft and bdLeftToRight when Pango is in use. > > I still have few tests to make, and then I'll send a patch to mantis on this > subject. > I also added to FPC's mantis (and not only to the extra file of gtk) the > missing functions for supporting what I've made, so I hope it will be > included as well in FPC. > > Any comments so far on what was made here ? > Thank you Ido, for me it is step to jump to Linux system, GTK it is very strange for me.

No Problem, it strange for everyone (programming it) not only for you :P There are a lot more work to be done in order to make it full BiDi support (including the visible components). Some of the work I made are not working well and require changes. I'll find some time next month (I hope) to work on it.
But I do not want to fall again over the dependencies hell, like this patch have, or my older work for BiDi suffered.

I also added in 2008 support for BiDi detection in the TApplication side (like with Delphi), but there is a lot of work there as well (for all widgets -> I do not know regarding winapi though).

Show quoted text 10 lines
-- Zaher Dirkey -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100415/0a321eb1/attachment.html>

Reply by email

Marc Weustink
to ik: I'm working on adding BiDi support for TextOut in GTK2, and you can see the result. The…
ik wrote 7 lines
Hello, I still have few tests to make, and then I'll send a patch to mantis on this subject. I also added to FPC's mantis (and not only to the extra file of gtk) the missing functions for supporting what I've made, so I hope it will be included as well in FPC.

To be able to work with lazarus and a release compiler, those missing gtk functions can be added to the gtk2extra unit.

Marc

Reply by email

ik
to Marc Weustink

http://ik.homelinux.org/

Marc Weustink wrote 15 lines
ik wrote: > Hello, > > > I still have few tests to make, and then I'll send a patch to mantis on > this subject. > I also added to FPC's mantis (and not only to the extra file of gtk) the > missing functions for supporting what I've made, so I hope it will be > included as well in FPC. > To be able to work with lazarus and a release compiler, those missing gtk functions can be added to the gtk2extra unit.

I've added them to there, and also to FPC itself (it's already in the svn since yesterday) .

Show quoted text 12 lines
Marc -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Ido
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100415/cba3043e/attachment-0001.html>

Reply by email