This is a recent regression - I've been using OpenOffice and LibreOffice for years and writing RTL documents a lot (in Hebrew) and haven't seen this bug until a few weeks ago.
What I'm seeing is that in a mostly RTL document, with most (if not all) of its paragraphs having right-to-left directionality, when I edit the document and pass over paragraphs, "suddenly" a certain existing paragraph changes direction and becomes LTR (and all the consequences this entails, like its last line being aligned to the wrong end, etc.). I can easily fix this by changing the paragraph's direction to RTL again - but later I will have the same problem on another paragraph, and it's very annoying.
I am not exactly sure how to trigger this bug, although it is very reproducable (I've seen in in multiple unrelated Hebrew documents I'm editing). I *think* it has to do with selecting text with the mouse, although just selecting text doesn't seem to consistently trigger this bug.
I forgot to mention, I'm using LibreOffice 184.108.40.206 (from Fedora 25's package), so when I said this is a "recent" regression I mean it happened around 220.127.116.11 - not recent in the sense of the current master version.
I an easy way to reproduce this bug 100% of the time:
1. open a new empty writer document
2. mark the current paragraph as RTL (Format->Paragraph, Alignment, Text direction->right to left).
3. Write something. Even just "hello" in English. You'll see it on the right side, as expected.
4. Use the "shift write-arrow" key several times to select the entire word "hello".
5. Now press the "control" key (as if preparing to control-C - but just press "control" and nothing else).
6. As soon as you pressed the "control" key (it even need to depress it, it happens as soon as you press) the directionality of the paragraph "flips" to LTR, and the word "hello" jumps to the left.
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it.
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Created attachment 132752 [details]
Tiny example document with an RTL paragraph and can be used to demonstrate the bug
I just attached a document which can help you demonstrate the bug.
This document has one short paragraph, which is in English, but marked an "RTL" paragraph and accordingly is aligned to the right.
If you open this document, select the whole row by hitting Shift-LeftArrow multiple times, and then hit the "control" key, you'll see the paragraph suddenly jump to the left! With the "Format -> Paragraph" menu, you can see it mysteriously acquired the "left-to-right" text direction, which is what caused it to jump to the left. Of course, people don't expect that selecting text or hitting the "control" key changes a paragraph's direction....
You get this issue by simply pressing ctrl+shift, which is the same as bug 103158.
*** This bug has been marked as a duplicate of bug 103158 ***