New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl-navigation works in opposite direction in right-to-left text #229

Open
mehdisadeghi opened this Issue Nov 14, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@mehdisadeghi

mehdisadeghi commented Nov 14, 2017

When writing right-to-left text in Zim (Pesian, Arabic, Hebrew) the behavior of cursor word-by-word movement (by holding down Ctrl and pressing arrow keys) is wrong. This was a well known and very old bug in GTK. Any GUI based on GTKTextView and GTKSourceView was affected, such as gedit. The good news is, however, this bug is fixed, more than six months ago. Programs based on recent GTK releases work properly, including gedit.

Zim, however, still has this problem, even though it is fixed in GTK.

I looked at the source code in order to figure out how Zim uses GTK but was lost in the code. I appreciate any comments on this problem and I am ready to help fix it.

Here are some debug information:

This is zim 0.67
Platform: posix (Archlinux)
Locale: en_US UTF-8
FS encoding: UTF-8
Python: (2, 7, 14, 'final', 0)
Gtk: (2, 24, 31)
Pygtk: (2, 24, 0)
No bzr version-info found

For more information on the fixed GTK bug see: https://bugzilla.gnome.org/show_bug.cgi?id=136059

I had initially opened this bug on Launchpad: https://bugs.launchpad.net/zim/+bug/1731771

P.S. I fixed that bug with help from GNOME people.

@mehdisadeghi

This comment has been minimized.

Show comment
Hide comment
@mehdisadeghi

mehdisadeghi Nov 14, 2017

Most probably the bug is within pygtk toolkit. I opened a bug report there too.

mehdisadeghi commented Nov 14, 2017

Most probably the bug is within pygtk toolkit. I opened a bug report there too.

@jaap-karssenberg

This comment has been minimized.

Show comment
Hide comment
@jaap-karssenberg

jaap-karssenberg Dec 11, 2017

Owner

The issue is that zim is still on Gtk2 - the fix you refer to is probably in Gtk3.

Either way, pygtk is no longer maintained and limitted to older versions of Gtk2. Zim is being ported to Gtk3, work in progress.

Owner

jaap-karssenberg commented Dec 11, 2017

The issue is that zim is still on Gtk2 - the fix you refer to is probably in Gtk3.

Either way, pygtk is no longer maintained and limitted to older versions of Gtk2. Zim is being ported to Gtk3, work in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment