Right-to-Left text appears Left-to-Right in the widget
Hello There,
I use Persian (Farsi) to write tasks, but I'd like to use English for the app itself. Please add the option to use direction for the widget separately. Also, it would be nice to see the widget use direction based on context, meaning the text of the task appearing in Right-to-Left (when appropriate) and the due date, etc. appearing Left-to-Right. Thanks for creating what I've been looking for for a long time.
To clarify you would like to configure the widget and the app to use different layout directions?
Can you explain the other request in more detail I'm not quite sure I understand it correctly?
Do you want to use the app in English because its poorly translated to Farsi? If that is the reason you can modify the translations or add a new dialect at getlocalization
Yes. I'd like to use separate layout directions for the app and the widget.
In short, all the layouts (in the app and widget) should intelligently adapt to context. This means if I have a task in Persian, the title and description should appear R-t-L, while the time stamp (which is in English), showing the due date, etc., should be showed L-t-R.
I hope I could make myself clear this time. I also attached two images for further clarification. The first one is a screenshot of Keep's widget and the second one of Tasks' widget.

There appears to be a magic rule which gets things right for Keep: If the first letter of a paragraph is in Persian (or any other R-t-L language) the whole paragraph is R-t-L; If the first letter is in English then the whole paragraph appears L-t-R. And this goes for everything: Titles, descriptions, time stamps, check boxes, etc. Hope this helps.
For both the app and widget I intentionally lined up text according to the device/app locale. I assumed this was preferable when there was mixed content, especially when it came to languages where the app was only partially translated. However I didn't have anyone to consult on this so I was just winging it.
When showing mixed LTR and RTL content would you say it is universally preferable (for all RTL languages) to determine the layout direction based on the first word or character in a string?
It's not a matter of language, because RTL would be RTL in any language. However, you should pay attention to a couple of situations (consider each sitation happens in one piece of content): 1- When there are some paragraphs but each of them is consistently RTL or LTR. Here there's no problem. You just need to set direction according to the first letter (not character). 2- When in any given paragraph there is mixed content but the paragraph starts with an RTL letter. Here paragraph should be RTL. Note that I'm saying letter, not character, because we need to have
1- سلام. حال شما چه طوره؟
stay so and not turn into
1- سلام. حال شما چه طوره؟
3- When in any given paragraph there is mixed content but the paragraph starts with an LTR letter. Here's where even Keep gets it wrong. I don't know if there is, technically, a way of determining the correct direction, but I'd say one casual way is to count the letters/words in the paragraph and set the layout democratically! Don't worry though. Like I said, almost every app gets this one wrong.
Hope this is of any help. Let me know if you need any more help.
Best,
S. Sajjad Moosavi +98 938 5566 070 [email protected]
On Wed, Oct 5, 2016 at 5:55 PM, Alex Baker [email protected] wrote:
For both the app and widget I intentionally lined up text according to the device/app locale. I assumed this was preferable when there was mixed content, especially when it came to languages where the app was only partially translated. However I didn't have anyone to consult on this so I was just winging it.
When showing mixed LTR and RTL content would you say it is universally preferable (for all RTL languages) to determine the layout direction based on the first word or character in a string?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tasks/tasks/issues/445#issuecomment-251690021, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKksnWDNglYaoIbG1S0A7J-S3422Jlzks5qw7NKgaJpZM4KOP65 .
I find this topic extremely fascinating. Growing up in a L-to-R language, this came to my attention very late. Thank you for bringing it forward and for taking the time to respond to questions.
It's my pleasure.
On Oct 5, 2016 6:27 PM, "Claudius Coenen" [email protected] wrote:
I find this topic extremely fascinating. Growing up in a L-to-R language, this came to my attention very late. Thank you for bringing it forward and for taking the time to respond to questions.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tasks/tasks/issues/445#issuecomment-251699751, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKksmQclCVl5aYM_M4m6Q81fe0vfBf2ks5qw7rUgaJpZM4KOP65 .
I just found out, even GitHub doesn't support mixed content direction. I cannot give the example I gave in THIS POST the proper formatting in terms of layout direction. I need to explain what I meant.
The correct version of the example would appear like this (flushed right, towards left) "1" then "-" then "the RTL text" The incorrect version would be (flushed left, towards right) "1" then "-" then "the RTL text"
my browser apparently knows nothing about directions:
(screenshot in Windows with Firefox)
I may not be able to (easily) determine whether a given string is RTL or LTR, so the checkbox may just have to be on the right or left depending on the widget locale.
I can alter the layout settings so that LTR text is left aligned and RTL text is right aligned. Do you think this would be the behavior that most RTL users would prefer?
I'd think so. Let's try and see if it does it.
On Oct 5, 2016 11:17 PM, "Alex Baker" [email protected] wrote:
I may not be able to (easily) determine whether a given string is RTL or LTR, so the checkbox may just have to be on the right or left depending on the widget locale.
I can alter the layout settings so that LTR text is left aligned and RTL text is right aligned. Do you think this would be the behavior that most RTL users would prefer?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/tasks/tasks/issues/445#issuecomment-251779225, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKkso1lZXd0Cd1Yf5uTbfTAAdHSVdb_ks5qw_7igaJpZM4KOP65 .
