Bug 68072

Summary: In KVocTrain arabic text not displayed correctly in some dialogs
Product: kvoctrain Reporter: Klaus Niederkrüger <kniederk>
Component: generalAssignee: Ewald Arnold <kvoctrain>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Klaus Niederkrüger 2003-11-12 22:39:54 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

I started with typing in some arabic words into KVocTrain.
They are displayed correctly in the table of the main window, but not anymore if I to start a test session e.g. by using Random Query. Instead I see small boxes for each character.

I believe the problem is that I set for the table the font "arabic-newspaper", but this is later not used in the QLabels in the test dialogs.
In fact, I believe it would be enough to add in files like ""RandomQueryDlg.cpp" something like

   timebar->setEnabled(showCounter);
   timelabel->setEnabled(showCounter);
   transField->setText ("");
   orgField->setText (org);
++   orgField->setFont(QFont("arabic-newspaper"));
   show_all->setDefault(true);
   QString s;
   s.setNum (q_cycle);

which I did for testing reasons, but which did not give the desired result.

Maybe something about my configuration is wrong, (but then it is also wrong in SuSE 8.2). Please if you find the time, try to repair this for KDE 3.2. My arabic course advances like hell, and I have really to start learning words or I am lost ;-(

You can download a test-file from 

http://www.mi.uni-koeln.de/~kniederk/meine_vokabeln.kvtml

Load this file and go to "Learning --> German --> Create Random Query".

Thanks a lot.

	Klaus
Comment 1 Klaus Niederkrüger 2003-11-20 00:52:59 UTC
After adding a lot of "setFont"-commands to kvoctrain, I upgraded from qt 3.2.0 to qt-3.2.3.
To my surprise now all TextFields display arabic correctly, also the ones, where I did not add the "setFont"-command, so I suspect very strongly that this was the real reason for the bug.

From qt-homepage:

Changes in qt 3.2.2:
...
 QFont
        Load the correct font for characters that have the 'Unicode'
        script assigned to them (e.g. the em-dash).
        Fix exact match for raw mode fonts.
        Fix conversion from Unicode to GB2312 to make Chinese appear
        correctly again when using xlfd fonts.


I will close this bug now.
Comment 2 Klaus Niederkrüger 2003-11-20 00:54:29 UTC
*** Bug has been marked as fixed ***.