Issue 19358 - Bidi text alignment lost when embedding calc table in a writer document
Summary: Bidi text alignment lost when embedding calc table in a writer document
Status: CLOSED FIXED
Alias: None
Product: Internationalization
Classification: Code
Component: BiDi (show other issues)
Version: OOo 1.1 RC4
Hardware: PC Linux, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: oc
QA Contact: issues@l10n
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-10 07:04 UTC by chenlevy
Modified: 2013-08-07 15:00 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description chenlevy 2003-09-10 07:04:56 UTC
A well formed RTL table in Calc, becomes un-preventable (on screen and in print) when it is 
copied and pasted into Writer. 
 
 
*** Steps to reproduce: *** 
 
-1) you will need to have a Hebrew (or other bidi language) enabled keyboard support on your 
OS. 
 
0) Tools -> Options... -> Language Settings -> Languages -> Complex text layout (CTL) 
support -> Enabled (check the box); so you will have the 
  __ 
> ||   [left-to-right] 
 
and 
__ 
 || <  [right-to-left] 
 
tools on your toolbar. 
 
1) Open Calc 
 
2) Create a small Hebrew table with some Hebrew text aligned to the right (both with the [Align 
Right] tool and the [Left-to-right] tool (on the tool bar) 
 
<monotype text figure> 
+------------+------------+ 
|  B NMULOC  |  A NMULOC  | 
+------------+------------+ 
|       456  |       123  | 
+------------+------------+ 
</monotype text figure> 
(RTL text is written visually with ALL CAPS) 
 
3) Format the cell: add borders to the cells (this will make the problem more 
visible later) 
 
4) Copy the table. 
 
5) Open Writer 
 
6) Paste the table. 
 
7) Select all (Ctrl-A) and use the [right-to-left] tool on the toolbar. 
 
 
*** What Happens: *** 
 
Before using the [Left-to-right] tool, number and alignment is correct, but Hebrew text is written 
backwards (e.g. NMULOC is written as COLUMN - not the visually this is wrong in Hebrew). 
 
<monotype text figure> 
+------------+------------+ 
|  COLUMN B  |  COLUMN A  | 
+------------+------------+ 
|       456  |       123  | 
+------------+------------+ 
</monotype text figure> 
(Note that ALL-CAPS represents RTL lettest but this test is written LTR) 
 
After using the [Left-to-right] tool, alignment lost. Text may drift to the next cell (to the left). The 
test on the left is out of view. The digits are swapped (e.g. 123 becomes 321). 
 
<monotype text figure> 
+------------+------------+ 
|OC        A |NMULOC      | 
+------------+------------+ 
|    654     |    321     | 
+------------+------------+ 
</monotype text figure> 
 
 
*** What should happen: *** 
 
After using the [Right-to-left] tool, the text should be formatted as in Calc. Numbers should stay 
unchanged. IMHO, this should be the case before using the [Right-to-left] tool, because the 
table in calc is already in RTL-ed. 
In short the table in writher should look like this: 
 
<monotype text figure> 
+------------+------------+ 
|  B NMULOC  |  A NMULOC  | 
+------------+------------+ 
|       456  |       123  | 
+------------+------------+ 
</monotype text figure>
Comment 1 Dieter.Loeschky 2003-09-12 14:12:53 UTC
DL->NN: Would you please takeover?
Comment 2 niklas.nebel 2003-09-16 13:13:17 UTC
Reproduced, and it seems to happen only with spreadsheet objects.
Maybe the LayoutMode isn't set. I'll have to look at it.
Comment 3 niklas.nebel 2004-04-14 17:37:14 UTC
Fixed in CWS nn02. Changed: sc/source/ui/docshell/docsh4.cxx 1.33.34.1
Comment 4 niklas.nebel 2004-04-14 19:58:49 UTC
reassigning to QA for verification.
Comment 5 oc 2004-04-19 15:46:26 UTC
reset resolution to fixed
Comment 6 oc 2004-04-19 15:48:11 UTC
verified in internal build cws_nn02
Comment 7 oc 2004-06-07 14:18:50 UTC
fix available in OOo680m40