Hi Philipp,
Thanks, I guess I wasn't clear enough. I had already begun reversing the
sort order in pdfiprocessor.cxx. This got the text order to appear
properly, but not the spacing, and not the margins. So I wasn't
finished. But if I understand properly, this is an unnecessarily
complicated way to go about things. Since when loading the file, Draw
calls the bidi layout code, changing the sort order in the PDF import
would mean to reverse the text, only to have it un-reversed in Draw.
Wouldn't it be simpler if the text was never reversed at all? Also, as
you point out, mixed-direction text is not solved, so all text which
consists of numbers would come out backwards. If the text is imported
visually, this will not be a problem. The text would be imported as is,
without calling the bidi layout code, and each glyph would be in its
proper place.
So what I'm looking for is a way to create the Draw text object so that
Draw will import RTL text exactly as it imports LTR text - a way for it
to not call the bidi algorithm, even for text in an RTL language. Maybe
this means the change should (also) be in Draw, and not (just) in PDF
import?
TIA,
Alan
Philipp Lohmann wrote:
Hi,
please find the pdf import extension in sdext/source/pdfimport. In
there you find tree/pdfiprocessor.cxx which contains
PDFIProcessor::sortElements. That one currently only as a sort method
for left-to-right, top-to-bottom. Adding a sort mechanism for other
case would be the first step. However as of yet there is no UI option
to use another sort conditionally, also mixed direction text is even
conceptionally unsupported yet.
Any help here is really welcome.
Kind regards, pl
Alan Yaniger wrote:
Hi list-members,
PDF import is causing right-to-left text to be reversed. This has
already been reported as Issue 90800, but I'm posting the problem
here too, for those who may not have been seen the issue there. I
would like to help fix this. As I wrote on Issue Tracker, the problem
seems to be that OOo thinks that the Hebrew glyphs are ordered
logically, but in fact they are ordered visually. I would appreciate
help from developers who could take a look at my comment on Issue
Tracker, and point me to the relevant code.
Thanks,
Alan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]