Elazar Leibovich wrote:
Hi,
Hello Elazar, Looks like RTL people are waking up! Welcome in any case :-)
There's an obnoxious bug described in bugzilla bug #1820, where the cursor movement is wrong in a math inset inside a RTL paragraph. Can you please point me to a documentation or portion of the code where I can check whether or not the cursor is located inside a math inset.
Cursor::inMathed() should give you the answer.
I believe the fix should be in the file 'text.cpp' somewhere. Extra documentation for cursor flow functions would also be appriceated, I could find no such thing in the website and the source tree.
Did you have a look at Cursor.h? I remember some old doc in the Wiki extracted from a Mail from Andre' but I could not find it again. Anyway, I don't think you need to understand the internal of Cursor to fix this problem.
I guess you should have a look at the 'Paragraph' class. The current language is defined here. I guess embedded insets do not inherit correctly the paragraph language.
Abdel.
