Issue 105347

Summary: Right to Left bullets paragraph direction incorrect
Product: Impress Reporter: shacharsh <shachar>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, maand
Version: OOo 3.1.1Keywords: Arabic, Hebrew
Target Milestone: ---   
Hardware: PC (x86_64)   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description shacharsh 2009-09-25 08:16:40 UTC
The Unicode (TR#9) standard dictates that the paragraph direction be determined
by the first strongly directional character on the paragraph, unless an external
mechanism exists for determining the paragraph direction. Since OpenOffice has
the "RTL paragraph" and "LTR paragraph" buttons, the correct behavior is for
these buttons to be the sole source for the decision of what the paragraph
direction is.

In impress, if you work in bullet mode, the buttons do dictate whether the
bullet is displayed on the right or on the left of the presentation, but the
actual paragraph direction is determined by the first directional character,
with strange rendering while at it.

To reproduce - open a new presentation, open a new bullet, and hit the RTL
paragraph button. Next type an English word, followed by a dash and a Hebrew or
Arabic word.

Expected behavior:
                                       WERBEH - english *
Actual behavior:
                                       -WERBEH  english *
Expected behavior if paragraph is English:
* english - WERBEH

Adding an RLM as the first character of the line makes the display as expected.

Shachar
Comment 1 katyhoffman 2010-02-07 04:21:02 UTC
I was unable to reproduce this bug using DEV300m70 on a 32bit, 2.4 GHz machine
with 3GB RAM running Vista SP2. 

I performed the following steps:

1. Open a new presentation

2. Select text

3. Select bullet button 

4. Select "paragraph direction" button, right to left. This is button that looks
like a large P with an arrow. Note that this is only available if enhanced
language support is enabled. This is done by selecting 	-> tools  -> options ->
language settings -> languages -> enabled for complex text layout

5. Type the word "english - "
	result is:    - English* 
	the cursor is to the left of the hyphen

6. repeatedly select Insert -> Special characters -> any Arabic or Hebrew letter
	these will appear in right to left order, to the left of the dash

The hyphen is between the words regardless of spacing around the hyphen -
whether or not you put a space before or after the hyphen, the dash is always
between the English and Hebrew (or Arabic) letters.



Comment 2 maand 2010-05-01 18:46:01 UTC
I can confirm this issue with OOo 3.2.0 on openSuSE 11.1-x64 with keyboard
layout Hebrew and German.