[texworks] Making TeXWorks a real bidi editor

Mehdi Omidali mehdioa at gmail.com
Fri Sep 11 14:55:02 CEST 2009

After thinking about making texworks a real bidi editor I arrived at
the point that it is really hard. But it would be nice if there is a
shortcut like Ctrl+G->"changekeyboardlayout+put LRM" (for LTR
documents) and Ctrl+H->"Changekeyboardlayout+put RLM". Since I am not
an expert programmer I think I should put it in the
"CompletingEdit::keyPressEvent" function in ComletingEdit.cpp. Is that
Another thing is that when one use farsi or arabic layout of texworks,
left and right arrow keys works in opposite directions. Can it be
Best regards
Mehdi Omidali

On 9/8/09, Mehdi Omidali <mehdioa at gmail.com> wrote:
> On 9/7/09, Stefan Löffler <st.loeffler at gmail.com> wrote:
>> Hi again,
>> I just found that there is a way to determine the current keyboard
>> locale (which seems not to work in all cases) and - more importantly -
>> the current keyboard direction. See QApplication::isLeftToRight,
>> QApplication::isRightToLeft, QApplication::layoutDirection. I still have
>> no idea how to get notified about a change, though, and I haven't tested
>> if these functions actually do what you need.
> Hi,
> Thanks. I am going to look into it to see if there is any hope to do
> what I want.
> MO

More information about the texworks mailing list