On Yaum al-Ahad 02 Safar 1426 19:43, Matthias Ettrich wrote:
> On Saturday 12 March 2005 10:55, Munzir Taha wrote:
> > Now what would happen is that the window would appear on the top-left
> > corner of my screen which is ok for LTR languages but not for RTL
> > languages. The correct layout is to have it on the top-right corner for
> > RTL lanugages. The point is the same code should display on different
> > positions according the layoutDirection. Am I missing something obvious?
>
> You do. Positioning of windows on Unix/X11 isn't done by the application or
> the toolkit, but by the window manager.
Does this imply that there is a way to do it in MS Windows? How?
Matthias, you know better for sure but all I am asking for is to deal with RTL
and LTR adequately. Isn't setGeometry a function of Qt or is it related to
X11? I can now do:
QTextEdit *text = new QTextEdit;
text->setGeometry(200, 50, 500, 500); // Postive x,y For LTR
I want to be able to do something like
QTextEdit *text = new QTextEdit;
text->setGeometry(-200, -50, 500, 500); // Negative x,y for RTL
or something along this line. If it can be done _via Qt_ for LTR why not for
RTL?
Note: If you convinced me this is not a bug in Qt, you would be surprised that
you won't get rid of issue #26 since there is another issue *mistakenly*
titled Arabic issue #26: QTextBrowser crashes with some web pages. Deal with
it ;)
--
Munzir Taha PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821
Telecommunications and Electronics Engineer
Mandrake Club Member
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA
Qt 4.0.0-b2-snapshot-20050308
System: Linux 2.6.10-1mdk i686 AMD Athlon(tm) 64 Processor 3200+ GNU/Linux
CODE:
QApplication::setFont(QFont("Arabic Transparent", 72));
QTextEdit *text = new QTextEdit(trUtf8("بس"));
DESCRIPTION:
Nothing is displayed in QTextEdit though two characters are passed to the
constructor.
--
Munzir Taha PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821
Telecommunications and Electronics Engineer
Mandrake Club Member
Maintainer of the OpenBugs Wiki page at
http://arabic-fedora.org/
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA
OK .. I checked the status page and I thought we should be near complete.
But, what I saw was 4563 untranslated strings!!!
Did everyone on the list here took a dive somewhere?:)) Wake up we need
to go back on track.
Thanks
Sherif
Hi Cuters,
I have just checked your nice deform demo and noticed that using Arabic text
would introduce some gaps between the should-be connected letters. I traced
this to QPainterPath::addText and verified it by a small snippet.
--
Munzir Taha PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821
Telecommunications and Electronics Engineer
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Master CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA
Hi Cuters,
Hi Lars,
Using Qt version 4.0.0-rc1-snapshot-20050527
A shortcut (signified by preceding it with an ampersand in the text) won't be
underlined if the Arabic character contains a diacritic. For example
QPushButton tashkeel(QPushButton::trUtf8("&نُ"));
In this example the shortcut is Alt+ن, and the Arabic letter should be
underlined.
--
Munzir Taha PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821
Telecommunications and Electronics Engineer
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Master CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA
Hi Cuters,
Using Qt version 4.0.0-rc1-snapshot-20050527
Mandrakelinux release 10.2 (Limited Edition 2005) for i586
qapplication.html:
On system start-up, the default layout direction depends on the application's
language.
I used
qDebug() << QApplication::layoutDirection();
inside arabic.cpp
and launched it as
LC_ALL=ar_EG.UTF-8 ./arabic
to set the application's language. qDebug outputs 0 instead of 1.
--
Munzir Taha PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821
Telecommunications and Electronics Engineer
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Master CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA
On Thursday 03 February 2005 01:35, Munzir Taha wrote:
> On Yaum al-Arbi'a 22 Thu al-Hijjah 1425 5:10 pm, Lars Knoll wrote:
> > By default, text inherits the widgets direction, so when you start an app
> > with -reverse everything is right aligned. You can switch the direction
> > of a string using the Shift+Ctrl combination (if you enabled it in
> > qtconfig).
This doesn't seem to work. I tested like this:
QApplication::setLayoutDirection(Qt::RightToLeft);
QTextEdit *text = new QTextEdit(trUtf8("عربي ...");
and the text is still left aligned!
> > Please try it with tonights snapshot. I think it comes much closer to the
> > behaviour one would expect intuitively than the Qt 3 way.
Using Qt version 4.0.0-rc1-snapshot-20050523
--
Munzir Taha PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821
Telecommunications and Electronics Engineer
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Master CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA
Salaam,
Hope you are all OK with your vaccation ;)
In spite of being very busy as usual, I will devote some time to translation
starting from next Saturday Insahllah. I will try to commit in a daily basis
even if this turned to be a one word by day. Hope the others will follow
soon ...
If you have any translation not committed, please do it NOW.
--
Munzir Taha PGP Key available
gpg --recv-keys --keyserver www.mandrakesecure.net F0671821
Telecommunications and Electronics Engineer
Mandrake Club Member
Maintainer of the OpenBugs project page at
http://www.arabic-fedora.org/munzir/OpenBugs.html
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
Master CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA