Hi Alan,
On 09/05/07 18:37, Alan Yaniger wrote:
I tried importing a PPT presentation which has a text box with one
character: U+201C ("Left quote"). The text direction is RTL. When
imported into Impress, the quote mark has been changed to a right-quote,
U+201D, its "mirrored" char.
If in addition to the quote, there is also the letter "H", PPT displays
the text with quote on the left and the "H" on the right, while in
Impress the chars are switched, and the quote is on the right.
I would like to look at the code where this happens. Can anyone point me
in the right direction?
What does the character sequence look like if pasted to Writer? Is it
different there? In this case you should have a look at the EditEngine
code in svx/source/editeng, start with grepping for "bidi". It it looks
the same in Writer, that's a more general problem.
A single quotation mark in a RTL paragraph is considered to be RTL,
therefore the character is mirrored. The character ordering in OOo is
done using the Unicode Bidi Algorithm. What is different in Word is that
they seem to have something like a character attribute which determines
the directionality of the characters. The character attribute is set
according to the IME which has been used to enter the characters. Maybe
you remember the discussion we had here:
http://so-web.germany.sun.com/iBIS/servlet/edit.ControlPanel?tid=i18024
Sorry, but I don't know how to solve this issue.
Regards,
Frank
--
Frank Meies (fme) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]