Issue 102002 - Wrong autogrow direction for RTL after PDF import
Summary: Wrong autogrow direction for RTL after PDF import
Status: CONFIRMED
Alias: None
Product: extensions
Classification: Extensions
Component: pdfimport (show other issues)
Version: OOO310m1
Hardware: PC All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: wolframgarten
URL:
Keywords: BIDI
Depends on:
Blocks: 114236
  Show dependency tree
 
Reported: 2009-05-17 17:30 UTC by alan
Modified: 2013-01-23 01:35 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
How it looks when the RTL text boxes are left-aligned (116.17 KB, image/jpeg)
2009-05-17 17:31 UTC, alan
no flags Details
How it looks when the RTL text boxes are right-aligned (121.66 KB, image/jpeg)
2009-05-17 17:32 UTC, alan
no flags Details
Macro to right-align all text objects containg any RTL text (1022 bytes, text/plain)
2009-05-17 17:36 UTC, alan
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description alan 2009-05-17 17:30:18 UTC
This is a follow-up to issue 90800. After applying the patch there, RTL
documents look ok in Draw. However, when editing the text object, RTL objects
autogrow to the right, instead of to the left. 

Setting the "draw:textarea-horizontal-align" property to "right" for RTL text
objects fixes the autogrow problem, but causes the text to be mispositioned,
apparently because of some manipulation of RTL text that takes place in the Draw
UI code. Compare the attached screenshots, and note how with right-alignment,
the lines are no longer even against the right margin. 

If after import, the text object's alignment is set to the right, then there's
no problem. I'm attaching a macro which does this for all text objects in an RTL
document. However, this is only a workaround, and ideally, PDF import and should
be able to both position the text correctly and set the autogrow correctly.
Comment 1 alan 2009-05-17 17:31:29 UTC
Created attachment 62327 [details]
How it looks when the RTL text boxes are left-aligned
Comment 2 alan 2009-05-17 17:32:03 UTC
Created attachment 62328 [details]
How it looks when the RTL text boxes are right-aligned
Comment 3 alan 2009-05-17 17:36:58 UTC
Created attachment 62329 [details]
Macro to right-align all text objects containg any RTL text
Comment 4 wolframgarten 2009-05-18 07:37:36 UTC
Reassigned.