?

Log in

Tech Tip: Displaying Hebrew/Arabic/etc. Right-aligned in Kate - Shlomif's Technical Posts Community [entries|archive|friends|userinfo]
Shlomif's Technical Posts Community

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Links
[Links:| Shlomi Fish's Homepage Main Journal Homesite Blog Planet Linux-IL Amir Aharoni in Unicode open dot dot dot ]

Tech Tip: Displaying Hebrew/Arabic/etc. Right-aligned in Kate [May. 18th, 2011|05:42 am]
Shlomif's Technical Posts Community

shlomif_tech

[shlomifish]
[Tags|, , , , , , ]
[Current Location |Home]
[Current Mood |productive]
[Current Music |Christina Grimmie - Liar Liar (live)]

By default, the Kate editor of the KDE project displays Hebrew/Arabic text etc. left aligned in the window instead of aligned to the right edge of the window even after the "Enhanced support for languages written right-to-left" is checked in the qtconfig applet. To remedy this you need to invoke Kate, go to its configuration screen ("Settings → Configure Kate", not the KDE global systemsettings application) and then go to “Editor Component → Appearance → General → Dynamic Word Wrap” and toggle it on and after doing that the mostly Hebrew lines will be properly aligned.

(I don't know why the “Dynamic Word Wrap” should affect that, and it took a long time to realise this was the problem due to the web searches and the KDE developers on IRC being ignorant, but that seems to be the solution to this.)

LinkReply

Comments:
From: https://www.google.com/accounts/o8/id?id=AItOawkeH_yknivz2OltVyM7279bOZruITnMbsU
2011-05-18 07:12 pm (UTC)

It's an open bug for 2 years!

You even commented it yourself :)
http://bugs.kde.org/192458
(Reply) (Thread)
From: (Anonymous)
2011-05-21 06:39 pm (UTC)

Re: It's an open bug for 2 years!

... what? I cannot reproduce this on my machine. The last time I tested it, in kate I was able to text hebrew and it was right-aligned. I know this for a fact, as I wrote the code. I know it does not work on kwrite (? no idea why).

The code inside katepart does not look into those definitions of Qt. Sorry, this is pure "blabla" or your distribution is using a patch which modifies this. I might be wrong, as I did not look at kate's source for a long time, but please disproof me.

- diego
(Reply) (Parent) (Thread)
[User Picture]From: shlomif
2011-05-30 09:17 am (UTC)

Re: It's an open bug for 2 years!

Diego, next time please log-in using OpenID or something before commenting, and I had to unscreen your comment for some reason. In any case, what is your machine's configuration? What is its configuration? What exactly happens when you do the workaround I mentioned? What is your KDE version's configuration? Does it happen in a new UNIX user-account? Please comment all this on the bug.

(Reply) (Parent) (Thread)
[User Picture]From: shlomif
2011-05-30 09:11 am (UTC)

Re: It's an open bug for 2 years!


Oh, for fuck's sake, please preview the comment before submit. Here is the bug in question - in any case, I guess I found a workaround for it, at least here on Mandriva.

(Reply) (Parent) (Thread)
From: (Anonymous)
2011-09-19 12:00 pm (UTC)

arrows behaviour

thanks a lot for your tip, it worked for me for arabic. i am using ubuntu 11.04
however the arrows behaviour is very annoying when using kate to write in arabic, the right arrow lead the cursor to the left and vice versa.
any ideas?
thanks
heissam
(Reply) (Thread)
[User Picture]From: shlomif
2011-09-19 12:12 pm (UTC)

Re: arrows behaviour

Hi Heissam,

I'm glad my tip worked for you. Next time, please consider logging-in using OpenID because I had to unscreen your comment.

I don't know whether the arrow keys behaviour is a bug or a feature, but I never bothered to investigate and sort of got used to it. You can try asking that on Freenode on "#kde" or something like that, but I cannot help you further.
(Reply) (Parent) (Thread)