[kde-edu]: KHangMan and Arabic Script
Anne-Marie Mahfouf
annemarie.mahfouf at free.fr
Sun Nov 29 21:20:41 CET 2009
On Sunday 29 November 2009 18:45:27 Sabine Emmy Eller wrote:
> Hi, today I prepared some other KHangMan files: for Sorani Kurdish (with
> Arabic Script) and hints are in English.
>
> The package can be downloaded here:
> http://www.voxhumanitatis.org/content/khangmanckbeng-100
>
> I opened the file (animals) with KHangMan and the number of characters
> shown is indeed the number of characters the word has in Sorani Kurdish.
> Then I tried to enter some chars (with Keyboard setting on Persian and on
> Arabic): it was not possible to write any char. I then tried to add the
> chars by copying and pasting them: no way.
>
> Could someone else please try out? Maybe we have some people who deal with
> Arabic Script on a daily basis in one of these two lists?
>
> Thank you!
>
> Sabine
>
In KHangMan code I use Regular Expressions to filter input so it cannot be
possible to enter numbers for example.
I think this prevents Right-to-Left languages input, I am not totally sure
where the problem is but the line
QRegExp regExp("[A-Za-
z\\x0080-\\x00FF\\x0100-\\x017E\\x0370-\\x03FF\\x0400-\\x04FF]");
in khangmanview.cpp is what I use.
Maybe it's a bad idea to try to filter the user input (I am open to any
suggestions). Maybe the above line just misses something. I don't know more at
that point and I would need to refine this (by making tests probably).
I'll follow this tomorrow, I just came back after a week-end away!
Cheers,
Anne-Marie
PS: we need to test all KDE-Edu apps in RTL languages and write down problems!
More information about the kde-edu
mailing list