Bug 49137 - Right-to-Left mode doesn't work properly for certain kind of sentences
Summary: Right-to-Left mode doesn't work properly for certain kind of sentences
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.4 Daily
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-25 03:54 UTC by MehranNZ
Modified: 2012-11-11 14:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Image of libreoffice and the wrong way it behaves in RTL mode (128.16 KB, image/jpeg)
2012-04-27 00:11 UTC, MehranNZ
Details
Image of microsoft office and the right way it behaves in RTL mode (94.86 KB, image/jpeg)
2012-04-27 00:12 UTC, MehranNZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MehranNZ 2012-04-25 03:54:16 UTC
I use persian langauge but i tried and have seen that this bug happens in arabic  too! it is a very basic and critical bug for everyone who wants to use libreoffice for writing in persian, arabic and probably hebrew languages.
for seeing this bug one should enable RTL first follow this direction
Tools/Options/Language Setting/Languages/Enabled for complex text layout
and in CTL choose farsi
now RTL buttons appear in Toolbar when we are in right-to-left mode we can't write properly in English, it means one can't combine English with natural numbers in this mode and if he does the sequence of sentence don't show correctly 
for instance if we want to write "1-first 2-seconce" in english when we are in RTL mode it writes "1-second 2-first" 

NOTICE:you shouldn't be a native persian or arabic speaker to see this bug, just enable RTL and try to write in English with a combinition of numbers and see everything is upside down :(
Comment 1 Urmas 2012-04-26 18:19:17 UTC
Attach a screenshot showing both the actual and expected behavior.
Comment 2 MehranNZ 2012-04-27 00:11:32 UTC
Created attachment 60649 [details]
Image of libreoffice and the wrong way it behaves in RTL mode
Comment 3 MehranNZ 2012-04-27 00:12:56 UTC
Created attachment 60650 [details]
Image of microsoft office and the right way it behaves in RTL mode
Comment 4 MehranNZ 2012-04-27 00:22:34 UTC
(In reply to comment #1)
> Attach a screenshot showing both the actual and expected behavior.

thanks for your response-i have attached two images of LibreOffice and microsoft office, MS Office shows the right way it has to behave! in MS Office when it is working with numbers it differentiates between numbers which are written in English or not and depend on that gives us two right results (as we can see in the picture) but libreoffice doesn't differentiate if numbers are in English or not and gives us only one result which is upside down and wrong. 
(Everytime when i say Persian it includes arabic and probably Hebrew too so fixing one probably would fix all of them)
Comment 5 Ahmad Harthi 2012-05-22 01:40:55 UTC
I confirm this bug using LibreOffice 3.5.3.2 on Ubuntu 12.04 Windows7 and OSX10.7.3
Comment 6 Lior Kaplan 2012-11-11 13:49:17 UTC
I think this is by design of the bidi algorithm. You can add an LRM before the English part to force its directionality to RTL.