Alignment Inconsistencies on Arabic and Hebrew scripts on Windows and Android

Maybe this is a bit low-priority for now, but I guess I should address this as well. I personally don’t know which one is the more “proper” way in handling RTL scripts, I just want to point out the inconsistencies. Or is this maybe a system thing and not Anytype?

Describe the bug

When writing in Right-to-Left writing systems like Arabic or Hebrew, the text block appears different on Windows and Android regarding the text alignment option. On Windows, the text is aligned accordingly as the alignment option (see Windows screenshot, all lines are aligned left because the alignment option is Align Left). However, on Android the text blocks that start with RTL scripts are aligned right (as the more “usual” way) on Align Left option and vice versa.

To Reproduce

Steps to reproduce the behavior:

    1. Make some text blocks with RTL scripts, notably Arabic and Hebrew, and change their alignment option. The texts I use for this test are:

`اهلان وسهلان، اسمي حسن.

שלום!

Mix of scripts, gibberish: منشستيبنمشسمش hgjhgj

نمشستيبمنش and after that, Latin. اتلتال`

    1. Look at the different alignment showing between Windows and Android.

Expected behavior

Since Anytype is one app for multiple operating systems, it would be nice to make this consistent on all OSes.

Desktop (please complete the following information):

  • OS: Android 10; Windows 10
  • Version: Android 0.1.5; Windows 0.17.2

Additional context


1 Like

@Has Hi! Does it still reproduce for you?

@Kirill_Lem Yes, it does

@Has Thank you for your notice! It has been added to the bug tracker.