[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Eyal Rozenberg changed: What|Removed |Added Resolution|--- |NOTABUG Status|UNCONFIRMED |RESOLVED --- Comment #19 from Eyal Rozenberg --- Like I said, if you wish to argue against the common, intentional behavior - you can make that argument; but probably a separate bug would be in order, discussing only the general question. You will need to provide motivation, refer to the relevant parts of the UBA, and explain why the benefits outweight the detriments of breaking the custom. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 خالد حسني changed: What|Removed |Added Assignee|kha...@aliftype.com |libreoffice-b...@lists.free ||desktop.org CC|kha...@aliftype.com | --- Comment #18 from خالد حسني --- There is no bug here, this is the standard Unicode Bidirectional Text algorithm behavior. If you copy the text to any other application (other than MS Word) you will get the same behavior. MS Word does something non-standard here, but I don’t know if the specifics are documented anywhere. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Eric Bright changed: What|Removed |Added Assignee|libreoffice-b...@lists.free |kha...@aliftype.com |desktop.org | --- Comment #17 from Eric Bright --- Khaled, do you mind if you kindly look into this issue whenever possible, please? I changed the assignee to you Khaled, but feel free to change it back to default if needed (since I don’t know the proper procedure for such assignment). -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #16 from Eyal Rozenberg --- (In reply to Eric Bright from comment #0) > Actual Results: > As soon as you type the punctuation mark at the end of the English sentence, > it jumps to the beginning of the English sentence (which is the end of the > Persian paragraph). > > Expected Results: > The punctuation mark must stay at the end of the English sentence within the > Persian paragraph. No, that's not expected. Unless you somehow indicated the exclamation mark belongs to something LTRish with the RTL paragraph - it belong at the end of the paragraph. You can, if you like, insert an LRM mark (https://en.wikipedia.org/wiki/Left-to-right_mark) after the exclamation mark; it will then be laid out as part of an LTR sequence - between an English character and another strongly-LTR character, the LRM. Now, you _could_ argue that the position of the cursor, and the current keyboard layout language (English) suggest that more strong-LTR characters will be added, and the layout should be made as though a "phantom LRM" were present at that position. But this is certainly not a bug, and such a suggestions has significant drawbacks. See also: https://www.unicode.org/reports/tr9/ and specifically the section about resolving embedding levels. It's a long and complicated document though. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Dieter changed: What|Removed |Added CC||eyalr...@gmx.com --- Comment #15 from Dieter --- (In reply to Dieter from comment #14) > Eyal, is is correct, that you agree with Eric, that it is a bug, but > developer advice is needed to figure out, why it happens? > In this case I think we can change status to NEW. Do you agree? cc: Eyal Rozenberg -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #14 from Dieter --- (In reply to Eyal Rozenberg from comment #13) > Hmm. I'm not an LO dev but, I wonder... perhaps it's the case that Microsoft > Word keeps an association of the typed characters to a keyboard layout or a > language based on the keyboard layout, which sticks after you've moved on to > type something else; while in LO, no such extra direction hinting > information is maintained. Eyal, is is correct, that you agree with Eric, that it is a bug, but developer advice is needed to figure out, why it happens? In this case I think we can change status to NEW. Do you agree? -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Eyal Rozenberg changed: What|Removed |Added Keywords||needsDevAdvice Whiteboard|needDevComment | -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Eyal Rozenberg changed: What|Removed |Added Whiteboard||needDevComment --- Comment #13 from Eyal Rozenberg --- (In reply to Eric Bright from comment #12) > Thank you for the reply. Even if that behaviour is the default, which seems > to be the case, that default behaviour is incorrect and must be corrected. > As you can clearly see in the attached images/documents, MS Word does it > correctly. An English sentence (LTR within a Persian sentence (RTL) must > still retain its correct arrangement. MS Word keeps the correct arrangement. > LO Writer does not. Hmm. I'm not an LO dev but, I wonder... perhaps it's the case that Microsoft Word keeps an association of the typed characters to a keyboard layout or a language based on the keyboard layout, which sticks after you've moved on to type something else; while in LO, no such extra direction hinting information is maintained. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Eric Bright changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID |--- --- Comment #12 from Eric Bright --- (In reply to Eyal Rozenberg from comment #11) > (In reply to Eric Bright from comment #0) > > Description: > > When writing a sentence that is left-to-right (LTR) inside a right-to-left > > (RTL) paragraph, any punctuation mark at the end of the LTR sentence jumps > > to the beginning of that LTR sentence, instead of staying at the end of the > > LTR sentence. > > This is intended behavior. If the paragraph is RTL, it is assumed that a > punctuation mark is part of the paragraph's flow, with the LTR text so far > having come to an end. A punctuation mark is direction-neutral, and there is > no way to know for certain whether you wanted it to be in the LTR run or > not. Once you write additional characters, LO can infer the direction with > more certainty. But if you _don't_ write any more characters, then your > punctuation mark (typically a period) should indeed be assumed to be RTL > again - since it's reasonable for you to want to finish your RTL sentence > with a punctuation mark. > > You can "force" the direction of the punctuation mark, by inserting a > Unicode control character, such as an RLM: > > https://en.wikipedia.org/wiki/Right-to-left_mark > > at the link, you'll notice how it is used for doing just this. > > > Everything I've said applies similarly to RTL text within LTR paragraphs > (with RLM marks). Thank you for the reply. Even if that behaviour is the default, which seems to be the case, that default behaviour is incorrect and must be corrected. As you can clearly see in the attached images/documents, MS Word does it correctly. An English sentence (LTR within a Persian sentence (RTL) must still retain its correct arrangement. MS Word keeps the correct arrangement. LO Writer does not. Fixing this incorrect behaviour should not be that difficult since MS Word has already figured it out and it is already known how that would work in HTML with proper tags. LO Writer must, at least, produce a document as correctly as a simple HTML page would do. As such, I am changing the status of the bug to 'unconfirmed' since you saw and verified that behaviour. This is a bug that is both annoying and unreasonable and must be looked into. The simple question is how MS Word and all browsers can correctly do what I just described but LO Writer believes it to be natural to scramble everything and think of it as normal. As I showed in the attached documents, this behaviour is not a feature; it is a bug. If one believes this bug is the intended behaviour and no one wants to fix it, then please change the status to " VERIFIES" and "WONTFIX." -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Eyal Rozenberg changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #11 from Eyal Rozenberg --- (In reply to Eric Bright from comment #0) > Description: > When writing a sentence that is left-to-right (LTR) inside a right-to-left > (RTL) paragraph, any punctuation mark at the end of the LTR sentence jumps > to the beginning of that LTR sentence, instead of staying at the end of the > LTR sentence. This is intended behavior. If the paragraph is RTL, it is assumed that a punctuation mark is part of the paragraph's flow, with the LTR text so far having come to an end. A punctuation mark is direction-neutral, and there is no way to know for certain whether you wanted it to be in the LTR run or not. Once you write additional characters, LO can infer the direction with more certainty. But if you _don't_ write any more characters, then your punctuation mark (typically a period) should indeed be assumed to be RTL again - since it's reasonable for you to want to finish your RTL sentence with a punctuation mark. You can "force" the direction of the punctuation mark, by inserting a Unicode control character, such as an RLM: https://en.wikipedia.org/wiki/Right-to-left_mark at the link, you'll notice how it is used for doing just this. Everything I've said applies similarly to RTL text within LTR paragraphs (with RLM marks). -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Dieter changed: What|Removed |Added Blocks||43808 Referenced Bugs: https://bugs.documentfoundation.org/show_bug.cgi?id=43808 [Bug 43808] [META] Right-To-Left and Complex Text Layout language issues (RTL/CTL) -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Eric Bright changed: What|Removed |Added Status|NEEDINFO|UNCONFIRMED Ever confirmed|1 |0 -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #10 from Eric Bright --- Created attachment 175764 --> https://bugs.documentfoundation.org/attachment.cgi?id=175764=edit A screenshot of test sample 3 This is a screenshot of test sample 3, made inside MS Word, in case the document does not show properly on your screen. This is how the punctuation of the nested English sentence (LTR), ought to look inside a Persian paragraph (RTL). -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #9 from Eric Bright --- Created attachment 175763 --> https://bugs.documentfoundation.org/attachment.cgi?id=175763=edit A screenshot of test sample 1 This is a screenshot of test sample 1, in case it does not appear as it should on your screen. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #8 from Eric Bright --- Comment on attachment 175762 --> https://bugs.documentfoundation.org/attachment.cgi?id=175762 Test sample 3 This is how the same paragraph should have looked like in the first place. In this sample, I typed it from scratch inside MS Word 365 as one normally would. As you can see, the nested English sentence is correctly punctuated inside the Persian sentence. That is how the nesting of languages within other languages should be treated. The Persian language is an RTL language. A LTR sentence within a paragraph that itself is RTL must be treated as an LTR section, perhaps the same way that HTML treats within divs or within a . The whole English sentence must be enclosed within its own or or whatever tag that LO uses. So, it can be given the right LTR and 'left-aligned' tags or treatments, regardless of the larger in which it is nested. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #7 from Eric Bright --- Comment on attachment 175761 --> https://bugs.documentfoundation.org/attachment.cgi?id=175761 Test sample 2 This sample shows how the mixed text will look like if you copy the typed text in test sample 1 and then paste it into an MS Word document. Now, not only the question mark at the end of the nested English sentence is in a wrong place, but also the whole English sentence is now backward. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #6 from Eric Bright --- Comment on attachment 175760 --> https://bugs.documentfoundation.org/attachment.cgi?id=175760 Test sample 1 This sample shows how the mixed text will look like if you type it inside LO 7.2.2.2. The question mark at the end of the nested English sentence is in a wrong place. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #5 from Eric Bright --- Hi Dieter. I tested the issue in LO v.7.2.2.2 today and the results were the same. I created a simpler version of my test text that I attach above this comment. Test sample 1: Made in LO 7.2.2.2 - How it looks as of now. Test sample 2: Made with MS Word - Copy-pasted from LO 7.2.2.2 - broken even worse Test sample 3: Made with MS Word - Typed, from scratch Word -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #4 from Eric Bright --- Created attachment 175762 --> https://bugs.documentfoundation.org/attachment.cgi?id=175762=edit Test sample 3 -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #3 from Eric Bright --- Created attachment 175761 --> https://bugs.documentfoundation.org/attachment.cgi?id=175761=edit Test sample 2 -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 --- Comment #2 from Eric Bright --- Created attachment 175760 --> https://bugs.documentfoundation.org/attachment.cgi?id=175760=edit Test sample 1 -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Dieter changed: What|Removed |Added Ever confirmed|0 |1 Whiteboard| QA:needsComment| Status|UNCONFIRMED |NEEDINFO CC||dgp-m...@gmx.de --- Comment #1 from Dieter --- Eric, unfortunately nobody could confirm this bug report during the last months. So I'd like to ask, if it is still valid. 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. -- You are receiving this mail because: You are the assignee for the bug.
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 QA Administrators changed: What|Removed |Added Whiteboard|| QA:needsComment -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
[Libreoffice-bugs] [Bug 141663] Punctuation issue with nested LTR sentences in an RTL paragraph
https://bugs.documentfoundation.org/show_bug.cgi?id=141663 Eric Bright changed: What|Removed |Added Summary|Punctuation issues with |Punctuation issue with |nested LTR sentences in a |nested LTR sentences in an |RTL paragraph |RTL paragraph -- You are receiving this mail because: You are the assignee for the bug.___ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs