Noto icon indicating copy to clipboard operation
Noto copied to clipboard

Reverse (orientation, alignment) of the text

Open AI-IMED opened this issue 2 years ago • 31 comments

Great application, but it needs more professionalism in dealing with bidirectional texts, please include the feature of manual alignment control as well as correcting the direction of the Arabic text when it begins with a Latin word, the attached image explains everything I said:

Screenshot_٢٠٢٢٠٧١١_٠٧٥٢٢٧

The direction of the text in the notes and words counter also needs to be corrected:

Screenshot_٢٠٢٢٠٧١١_٠٨٠٦١٣

AI-IMED avatar Jul 11 '22 05:07 AI-IMED

Thanks for reporting these issues.

I managed to fix the issue in the first image by setting the text and layout direction to match the app locale.

As for the second image, it's a bug in a library I'm using, and I don't think it's going to be fixed anytime soon. The only way to fix it is by disabling the animation when language is Arabic, which is probably what I'm going to do.

alialbaali avatar Jul 12 '22 14:07 alialbaali

I managed to fix the issue in the first image by setting the text and layout direction to match the app locale.

OK, but you must be sure that the note written in Latin only must not lose its left alignment.

Screenshot_٢٠٢٢٠٧١٢_١٩٥٤٥٦

AI-IMED avatar Jul 12 '22 17:07 AI-IMED

Of course!

alialbaali avatar Jul 12 '22 18:07 alialbaali

I mean by that, if the application language is Arabic, Regards

AI-IMED avatar Jul 12 '22 18:07 AI-IMED

Are you asking for a text alignment feature, or are you reporting a bug?

Because currently, there's no issue with the text alignment. Meaning, if you start the text in Arabic, it's going to start from the right regardless if it has English or not after that. And, if you start the text in English, it's going to start from the left regardless if it has Arabic or not after that.

alialbaali avatar Jul 12 '22 19:07 alialbaali

Are you asking for a text alignment feature, or are you reporting a bug?

both together

And, if you start the text in English, it's going to start from the left regardless if it has Arabic or not after that.

This is not accurate if the application works with the Arabic interface, yes, some people may need the current situation sometimes, so I suggested that you include the feature of controlling the direction and alignment of the text for more flexibility and greater professionalism.

As for the correct one, it is that the direction of writing is from right to left and alignment to the right as soon as you enter or have at least one Arabic letter in the note

I have an application installed on my phone that deals with the cases that I mentioned, but it is not open source, if you want to take a look at it, I will send you the link to it on the Play Store to your email

AI-IMED avatar Jul 13 '22 06:07 AI-IMED

IMAGE 2022-07-13 14:13:58 IMAGE 2022-07-13 14:14:03

I attached two images, one with English language being set and the other with Arabic language being set. As you can see, It works exactly how I described it. Are you sure it doesn't work like that for you?

If you're asking for a feature, then that's a different thing, and probably will be supported when Markdown editor becomes available.

alialbaali avatar Jul 13 '22 11:07 alialbaali

IMG_20220713_165004_968

AI-IMED avatar Jul 13 '22 13:07 AI-IMED

The text marked with "X" can be fixed by always aligning the text to the right when the language is Arabic, even if the text is only English. Is that what you want?

alialbaali avatar Jul 17 '22 22:07 alialbaali

It seems that you do not want to add an option to manually control the direction and alignment of text in the application 😔 Well..if that's the case, you can try the following app and see how it handles text alignment: https://github.com/maltaisn/another-notes-app

You can benefit from the following discussion and beyond that I had with the app developer previously to resolve the issue:

https://github.com/maltaisn/another-notes-app/issues/30#issuecomment-882098165

AI-IMED avatar Jul 18 '22 04:07 AI-IMED

Manual text alignment will be supported when Markdown is supported. You can track this issue #19 issue for any updates.

For now, I could do it like this, if you want.

alialbaali avatar Jul 18 '22 10:07 alialbaali

For now, I could do it like https://github.com/maltaisn/another-notes-app/issues/30#issuecomment-882119526, if you want.

Sure, I want it.

AI-IMED avatar Jul 18 '22 10:07 AI-IMED

Thank you very much for the fixes that you have included in version 2.1.3

Regarding the word counter and notes, can you make the correction automatically depend when on the system language Arabic as well?

AI-IMED avatar Jul 25 '22 06:07 AI-IMED

You're welcome.

Could you please elaborate more about what you're asking?

alialbaali avatar Jul 25 '22 06:07 alialbaali

Screenshot_٢٠٢٢٠٧٢٥_١٠٠٨٤٦

Regarding the error shown in the image, it is fixed by simply selecting the Arabic language manually from within the application. I am wondering if you can make this be done automatically depending on the system language when it is Arabic as well.

AI-IMED avatar Jul 25 '22 07:07 AI-IMED

Understood.

alialbaali avatar Jul 25 '22 07:07 alialbaali

@alialbaali I just found out that recent RTL patches are not implemented on the editor window when in landscape mode.

AI-IMED avatar Jul 26 '22 15:07 AI-IMED

I see that setting the creation date line and getting to italics has cut off part of its edge

Screenshot_٢٠٢٢٠٧٢٧_١٠٠١٢٦

AI-IMED avatar Jul 27 '22 07:07 AI-IMED

@alialbaali I just found out that recent RTL patches are not implemented on the editor window when in landscape mode.

I can't reproduce the issue, could you share a screenshot?

alialbaali avatar Jul 30 '22 17:07 alialbaali

I see that setting the creation date line and getting to italics has cut off part of its edge

Screenshot_٢٠٢٢٠٧٢٧_١٠٠١٢٦

The solution for this, is to make the font regular instead of italics.

alialbaali avatar Jul 30 '22 17:07 alialbaali

The solution for this, is to make the font regular instead of italics.

Yes. Or keep the font italic, shifting it slightly off the edge

AI-IMED avatar Jul 31 '22 04:07 AI-IMED

I can't reproduce the issue, could you share a screenshot?

Of course

Screenshot_٢٠٢٢٠٧٣١_١٥٥٠٤١

AI-IMED avatar Jul 31 '22 13:07 AI-IMED

I can't reproduce the issue, could you share a screenshot?

Of course

Screenshot_٢٠٢٢٠٧٣١_١٥٥٠٤١

I don't think that would be possible, since this text editor screen is configured by the system, and not by the app.

alialbaali avatar Jul 31 '22 18:07 alialbaali

I don't think that would be possible, since this text editor screen is configured by the system, and not by the app.

Do you mean that the white screen is the one that is configured by the system? If that's the case, it's okay to turn a blind eye to it What matters to me is the dark screen, which appears when I click the Create New Note button, this screen is the one I want to get the corrections for, if it's not configured by the system

AI-IMED avatar Aug 01 '22 18:08 AI-IMED

Unfortunately, both screens (white and dark) in landscape mode are controlled by the system.

alialbaali avatar Aug 01 '22 18:08 alialbaali

Unfortunately, both screens (white and dark) in landscape mode are controlled by the system.

So, it is necessary to create an editor screen for the application, because the current editor screen, which is configured by the system, lacks all the elements in the vertical position, such as the note title field, Undo / Redo buttons, etc. .

AI-IMED avatar Aug 02 '22 08:08 AI-IMED

The solution for this, is to make the font regular instead of italics.

Yes. Or keep the font italic, shifting it slightly off the edge

The text is now set to regular instead of italics. I tried to shift it a bit or add spacing but it didn't work.

alialbaali avatar Aug 02 '22 20:08 alialbaali

Unfortunately, both screens (white and dark) in landscape mode are controlled by the system.

So, it is necessary to create an editor screen for the application, because the current editor screen, which is configured by the system, lacks all the elements in the vertical position, such as the note title field, Undo / Redo buttons, etc. .

I managed to find a way to disable this screen. However, there won't be any space to type. Check this image: IMAGE 2022-08-02 23:44:45

alialbaali avatar Aug 02 '22 20:08 alialbaali

I managed to find a way to disable this screen. However, there won't be any space to type. Check this image: IMAGE 2022-08-02 23:44:45

I think the problem is caused by the keyboard that fills the screen, it hides the text input field behind it.

AI-IMED avatar Aug 03 '22 14:08 AI-IMED

Something strange and wonderful! . The application uses its own editor screen in landscape mode, rather than the editor screen that is configured by the system, when using a keyboard that supports floating mode in landscape mode, such as Samsung keyboard, Gboard

Screenshot_٢٠٢٢٠٨٠٨-٠٩٥٢٣٧_Noto

The next topic may bring you closer to a solution:

https://stackoverflow.com/questions/15523372/keyboard-opens-as-full-screen-in-landscape-mode

AI-IMED avatar Aug 08 '22 07:08 AI-IMED