Bug 92024 - Text Alignment is Changed when we change language
Summary: Text Alignment is Changed when we change language
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.3.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-12 08:41 UTC by muthu
Modified: 2018-07-03 14:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screen shot of the test (70.29 KB, image/png)
2015-09-23 15:50 UTC, Ve. Elanjelian
Details
Check this attachment for Tamil and German (14.72 KB, application/vnd.oasis.opendocument.text)
2016-06-06 05:54 UTC, muthu
Details
Before and After Ctrl+A and Ctrl+B (11.78 KB, application/vnd.oasis.opendocument.text)
2016-06-07 05:04 UTC, muthu
Details
With Ctrl+A and Ctrl+B (11.66 KB, application/vnd.oasis.opendocument.text)
2016-06-07 05:04 UTC, muthu
Details
Without Ctrl+a and Ctrl+b justified (11.85 KB, application/vnd.oasis.opendocument.text)
2016-06-07 09:16 UTC, muthu
Details
With Ctrl+A and Ctrl+B Justified (11.73 KB, application/vnd.oasis.opendocument.text)
2016-06-07 09:17 UTC, muthu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muthu 2015-06-12 08:41:20 UTC
Steps To Reproduce:
1. Open LibreOffice Writer 4.4.3.2
2. Type a few paragraphs in English.
3. Select the content and Select 'Justify' alignment.  
4. Verify that the text is aligned to Justify
5. Type a few more paragraphs in English and verify the alignment
6. It stays as Justify.  
7. Now change typing language to any other than English.  
(I used 'ekalappai' a Free Software for Tamil typing)
8.  Start typing in non english language (Eg. Tamil)
9.  Verify the alignment
Expected: Should be Justify
Actual: This is automatically changed to Left Alignment

Env. LibreOffice 4.4.3.2, Windows 8.1
Comment 1 Buovjaga 2015-06-13 14:17:35 UTC
Not reproduced.

Win 7 Pro 64-bit, Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
Locale: fi_FI
Comment 2 Ve. Elanjelian 2015-09-23 15:50:29 UTC
Created attachment 118972 [details]
Screen shot of the test

Shows the document alignment remain justified.
Comment 3 Ve. Elanjelian 2015-09-23 15:51:46 UTC
I did the above test with LO 4.4.5.2 running on Win 10. Works fine.
Comment 4 Buovjaga 2015-09-23 16:55:46 UTC
muthu1809: are you still having this problem? Have you upgraded to LibreOffice 5 yet?
Comment 5 muthu 2015-09-24 08:46:13 UTC
I still have the issue.  I have 4.4.5.2 in hand with Windows 8.1 as OS
Comment 6 Aron Budea 2016-06-04 03:20:57 UTC
Muthu, can you try if the issue remains if you use different non-English languages, maybe those that don't require the mentioned eKalappai software to see if it's related to the interaction between LibreOffice and eKalappai?

Also, Ctrl-L is not pressed when switching languages, right? (this might be obvious, but who knows)
Comment 7 muthu 2016-06-05 07:16:04 UTC
Hi, 
The issue is not related with Ekalappai.  I tried copying Unicode Tamil text from some websites as well.  After copying, when I bolded them, the issue exists.
Comment 8 muthu 2016-06-05 07:16:34 UTC
One more: I tried with latest Version: 5.1.3.2 as well and issue still exists.
Comment 9 Aron Budea 2016-06-05 23:47:45 UTC
Hi, thanks for the reply.
So it works with copy+pasting as well. Can you give specific reproduction steps for a simple example, similarly to the initial description? (including details from which site you're pasting which piece of text)

Some questions:
-Does it occur if you save the document after copy+pasting, but before bolding the text, then reopen the document, and make the text bold then? (that would be very lucky, because then you could upload the saved text as attachment)
-Have you tried/Could you try with a different language other than Tamil? (something "simple" like German or French)
Comment 10 muthu 2016-06-06 05:52:31 UTC
Sure. 

Steps: 
1. Open LibreOffice Writer latest version
2. Go to any Tamil website eg. https://ta.wikipedia.org/wiki/%E0%AE%85%E0%AE%A9%E0%AF%8D%E0%AE%A9%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AF%8A%E0%AE%9F%E0%AE%BF_%E0%AE%B5%E0%AE%BF%E0%AE%B4%E0%AE%BE%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AF%82%E0%AE%A4%E0%AF%8D%E0%AE%A4%E0%AF%81
3. Copy any content from the above page
4. Paste it in Writer
5. Select all (Ctrl + A) or select any line in the paragraph
6. Now click Ctrl +B or click bold in libreoffice writer.  

Env. LibreOffice Writer 5.1.3.2, Windows 7 64 Bit 

I tried German but as the alphabets are similar to English, it works fine there.  I will attach the document here
Comment 11 muthu 2016-06-06 05:54:33 UTC
Created attachment 125504 [details]
Check this attachment for Tamil and German

Attached how Tamil font is shown after making bold in the latest LibreOffice Writer  5.1.3.2
Comment 12 Aron Budea 2016-06-06 09:52:25 UTC
Thanks for the details. I tried reproducing the issue, but unfortunately couldn't, even with those steps. This seems to have some very specific requirements, or is closely tied to the locale environment. Not sure what else I can try, but let's return to the questions I had before.

A bit of correction based on what I said earlier:
-Does the issue occur if you save and reload the document _before_ pressing Ctrl + A and Ctrl + B (so before making it bold)? If so, can you upload the document in that state, when it's still justified, and not bold?
-With my second question last time, I meant if it occurred when both parts of the document weren't Tamil (English + German for example). Can you check that as well?
Comment 13 muthu 2016-06-07 05:04:00 UTC
Created attachment 125525 [details]
Before and After Ctrl+A and Ctrl+B

Without Ctrl+A and Ctrl+B - Steps mentioned in the attachment itself
Comment 14 muthu 2016-06-07 05:04:47 UTC
Created attachment 125526 [details]
With Ctrl+A and Ctrl+B

With Ctrl+A and Ctrl+B - Steps mentioned in the attachment itself
Comment 15 muthu 2016-06-07 05:06:45 UTC
Hi, 
With English + German combination, i did not face any issue.  It works fine.  If needed, I will attach the document for that.
Comment 16 Aron Budea 2016-06-07 08:20:50 UTC
(In reply to muthu from comment #13)
> Created attachment 125525 [details]
> Before and After Ctrl+A and Ctrl+B
> 
> Without Ctrl+A and Ctrl+B - Steps mentioned in the attachment itself

I opened this, and the text wasn't justified in the first place.
Can you do this again, and verify that when you save it, it's still justified, and then what happens on your end if you reopen the document?
Comment 17 muthu 2016-06-07 09:16:30 UTC
Created attachment 125535 [details]
Without Ctrl+a and Ctrl+b justified

Added Justified content.
Comment 18 muthu 2016-06-07 09:17:08 UTC
Created attachment 125536 [details]
With Ctrl+A and Ctrl+B Justified

Check the second line in the attachment.
Comment 19 Aron Budea 2016-06-07 10:06:27 UTC
(In reply to muthu from comment #17)
> Created attachment 125535 [details]
> Without Ctrl+a and Ctrl+b justified
> 
> Added Justified content.

(In reply to muthu from comment #18)
> Created attachment 125536 [details]
> With Ctrl+A and Ctrl+B Justified
> 
> Check the second line in the attachment.

What I see on my end is that both documents have the same alignment:
first part is left-aligned, second part is justified.

The difference is that in the "With Ctrl+A and Ctrl+B Justified" document there's an extra line feed before the link in the first part, and only the second part is bold. (btw, was it made bold after select all/Ctrl+A? I assume the first part would also get bold in that case)
Comment 20 webberalessandro 2017-05-29 12:45:25 UTC
On this version works fine:
Version: 5.0.6.2
Comment 21 Ljiljan 2017-06-02 06:01:08 UTC
I was trying to reproduce the bug, but I wasn' able with Libre Office 5.3.3.2.
Comment 22 Xisco Faulí 2017-11-15 10:26:45 UTC
Dear Muthu,
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 23 QA Administrators 2018-05-30 16:39:54 UTC Comment hidden (obsolete)
Comment 24 QA Administrators 2018-07-03 14:19:54 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20180703