Uwe Stöhr wrote:
Abdelrazak Younes schrieb:
Right easy. This can be put in a new GuiApplication::setGuiLanguage()
that will call setRcGuiLanguage() and the line above.
Could you please implement this?
OK, I did it, not so easy at the end. Please note that, now, the layouts
of all dialogs, not only the menubar, are reversed for RTL languages.
This looks like a natural thing to do but please confirm this. Please test.
Please test also for bug 5034 (http://bugzilla.lyx.org/show_bug.cgi?id=5034)
PS: Tell your friend that the above code can be shortened to:
bool is_rtl = FET_LANGUAGE=="ar" || FET_LANGUAGE=="he" ||
FET_LANGUAGE=="fa") ;
qapplication.setLayoutDirection(is_rtl ? Qt::RightToLeft :
Qt::LeftToRight);
Thanks. He just mailed me that also Urdu (code "ur") uses RTL. We
don't support Urdu yet as LaTeX also doesn't, but it wouldn't harm to
add it anyway in the above code.
I added Urdu to the list, we have now: Arabic, Hebrew, Persian (farsi)
and Urdi. Not sure the Persian one will work though, but we don't have
any translation for that AFAIK.
Btw. XeTeX becomes more and more popular and will provide support for
every existing language bit by bit. There's now also the babel for
XeTeX-package named "polyglossia" available. Now it's only a question
of time for native support for languages like Urdu.
What would it take for LyX to support XeteX natively?
Abdel.