Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.83k stars 558 forks source link

RTL mixed writing changes alignment of sentence #2511

Open rezzap opened 3 years ago

rezzap commented 3 years ago

Expected

I expected that when typing an English word in the middle of a sentence using RTL language like Arabic, the content would respect the RTL order of sentence. When switching from English back to RTL

Observed

When switching from English back to RTL in the middle of the sentence, the next word is in the wrong order.

Reproduced

  1. Go to Simplenote in the web app and start typing in a sentence with a mix of English and Arabic (Any RTL language).
  2. I used come copy-pasted content to try and reproduce the issue.
  3. Notice instead of keeping the order 1,2,3,4,5 it goes in the order 1,2,3,5,4 (#3 being the English word)

There is also some issues with where the cursor lands between each word but that's reported here: https://github.com/Automattic/simplenote-electron/issues/2363

User has provided a screen recording of how this should work using 'Libre Office'.

Screen Recording 2020-12-08 at 12 56 14 pm

Here's how it shows up in Simplenote:

Screen Recording 2020-12-08 at 01 00 36 pm

Where did you see the bug

user-report in 3522477-zen

Simplenote 2.0.0 web on Firefox v83.0 64bit on Manjaro Linux Simplenote electron desktop app v2.2.0 on Manjaro Linux

mx202 commented 3 years ago

Yes, this bug must be fixed.

Where did you see the bug? OS: Windows 10, Android, Web App, Linux. Simplenote app version: 2.3.0

pachlava commented 3 years ago

+1 coming from here: z-3619659

Desktop OS version: Linux Mint 20 Simplenote desktop app version: 2.3.0

aderchox commented 3 years ago

Thanks a lot for making this issue! Yes this is an irritating bug. I see this both on my Windows 10 and on my Android devices. This can also be observed when creating a bullet list, or a checklist, the symbols go to the left of the lines, even though the line has begun with an RTL character. I hope the dev will fix it.

eduardozulian commented 3 years ago

Also reported in 3895230-zen:

mdrockwell commented 3 years ago

Possibly related in #3942097-zen:

But now, the app considers everything left-to-right. As a result, all the periods, commas and other punctuations appear on the wrong side.

Simplenote version 2.9.0, they're experiencing the issue on Windows 10 and Windows 8.

thabotswana commented 3 years ago

Possible related issue reported in 3986297-zen.

I use a Windows 10 desktop PC. (Windows 10 Pro 20H2)
I use Simplenote latest version.

Sample text:

استفان آر ریچر، حسن ابوالحاجیه و ولادلن کولتن، کارشناسان لابراتوار اینتل نتایج بسیار جالب و قابل توجهی را به‌دست آوردند.
شباهت غیرقابل انکار اتمسفر محیط بازی به عکس‌های عادی و واقع‌گرایانه‌ چیزی است که توجه شما را در این ویدیو به خود جلب می‌کند.
در پایان شما هم می‌توانید نظرات خود را با زومجی و سایر کاربران در میان بگذارید.

Also I noticed that simplenote can't correctly display texts that are a mixture of Perisan and English words.