Nylas-mail: Feature Request: Add RTL (right to left language) support

Created on 22 Oct 2015  ยท  35Comments  ยท  Source: nylas/nylas-mail

RTL is an important (and shuold be easy feature) for mideast languages (hebrew, persian, arabic)
This issue was closed in a previous bug and is a seperate issue from language translation.

enhancement-request i18n

Most helpful comment

Until a good working solution is available, I would like to suggest the following workaround:
Enable the "Quick Replies" plug-in. The templates are saved in ~/.nylas/templates

Create a file: RTL.html and paste into it:
<div style="direction:rtl;text-align:right;"><div>RTL</div></div>

Now, the first thing you do when creating a new email, select the RTL quick reply and wallah.

All 35 comments

+1

+1

+1

+1

Text inputs on Mac apps have this ability in the context menu:

screen shot 2015-11-30 at 1 13 56 pm

But seems like N1 overrides this menu

screen shot 2015-11-30 at 1 14 48 pm

It would be great just to bring it back until a more permanent solution is introduced.

Hi @elado. N1 isn't a normal Mac App -- under the hood it's running Chromium and JavaScript. This means we don't use the Cocoa text boxes which come with regular contextual menus, so the fix isn't so simple.

Is it a limitation of Electron?
The screenshot was taken from Safari, and Chrome has it on all inputs too.

As far as I know, yes. Electron is pretty minimal. It uses the Chromium Embedded Framework which is essentially just the view rendering code underneath Chrome and not the native OS integration.

+1

+1

+1

+1 on Linux

+1

It's a good idea to do what Gmail does for text direction. they switch the direction based on characters typed.

you can find an example here: http://codepen.io/siamak/pen/rAmBb

UPDATE: this one is actually supports all RTL languages https://github.com/hasenj/bidiweb

+1

can we get an ETA on this? This is the only blocking issue for me to fully switch to N1

+1

+1

+1

+1
Writing a mail which involves both English and Hebrew is just a nightmare.

+1

+1

+1

+1 !!!!

Until a good working solution is available, I would like to suggest the following workaround:
Enable the "Quick Replies" plug-in. The templates are saved in ~/.nylas/templates

Create a file: RTL.html and paste into it:
<div style="direction:rtl;text-align:right;"><div>RTL</div></div>

Now, the first thing you do when creating a new email, select the RTL quick reply and wallah.

+1

To add this feature just you need to detect Mideast ASCII, after that if it was Mideast, ok, add dir="rtl" to div.
like this => http://codepen.io/siamak/pen/rAmBb

Using dir=auto may helps. You can check out its documentation:
https://html.spec.whatwg.org/multipage/dom.html#the-dir-attribute

@nournia yeah, it's possible and maybe better choice to fix this issue

+1

+1

+1
Just started using it, but RTL will make me remove thunderbird :)

@amig Thanks, this is a great little workaround!
ืชื•ื“ื” ืื—ื™

I wrote an example here
https://codepen.io/hadifarnoud/pen/rmdxWe

On 22 Sep 2017 at 09:48, Alexander Garber notifications@github.com wrote:

@amig https://github.com/amig Thanks, this is a great little workaround!
ืชื•ื“ื” ืื—ื™

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nylas/nylas-mail/issues/124#issuecomment-331360351,
or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAj_8BIpqk50hjy9WtjMhHl0q5KD-3DPks5sk1ExgaJpZM4GTimm
.

@nournia dir=auto works wonderfully. Added it to the Standard Notes web client https://github.com/standardnotes/web

Was this page helpful?
0 / 5 - 0 ratings

Related issues

winks picture winks  ยท  4Comments

hfossli picture hfossli  ยท  3Comments

PhillipTaylor picture PhillipTaylor  ยท  3Comments

JeroenBoersma picture JeroenBoersma  ยท  4Comments

petrk94 picture petrk94  ยท  4Comments