nylas-mail icon indicating copy to clipboard operation
nylas-mail copied to clipboard

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

Open liorkesos opened this issue 8 years ago • 35 comments

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.

liorkesos avatar Oct 22 '15 06:10 liorkesos

+1

alonisser avatar Oct 22 '15 16:10 alonisser

+1

Leonid99 avatar Oct 29 '15 03:10 Leonid99

+1

yasharne avatar Nov 03 '15 17:11 yasharne

+1

elado avatar Nov 30 '15 21:11 elado

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.

elado avatar Nov 30 '15 21:11 elado

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.

grinich avatar Nov 30 '15 22:11 grinich

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

elado avatar Nov 30 '15 22:11 elado

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.

grinich avatar Nov 30 '15 23:11 grinich

+1

royts avatar Dec 01 '15 15:12 royts

+1

mehrancodes avatar Dec 27 '15 22:12 mehrancodes

+1

rauchy avatar Jan 05 '16 07:01 rauchy

+1 on Linux

oyagev avatar Jan 16 '16 21:01 oyagev

+1

krugi avatar Jan 21 '16 08:01 krugi

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

hadifarnoud avatar Jan 26 '16 09:01 hadifarnoud

+1

obahareth avatar Feb 10 '16 13:02 obahareth

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

hadifarnoud avatar May 03 '16 13:05 hadifarnoud

+1

heyanlong avatar May 11 '16 01:05 heyanlong

+1

OhadRon avatar May 11 '16 05:05 OhadRon

+1

dortheimer avatar May 15 '16 19:05 dortheimer

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

argamanza avatar May 16 '16 18:05 argamanza

+1

amijafari avatar May 19 '16 04:05 amijafari

+1

hugoalmeidahh avatar May 19 '16 18:05 hugoalmeidahh

+1

sajadshokri avatar Jun 18 '16 07:06 sajadshokri

+1 !!!!

1001adi avatar Jun 18 '16 18:06 1001adi

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.

amig avatar Jun 27 '16 07:06 amig

+1

ronshoshani avatar Jul 07 '16 06:07 ronshoshani

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

msudgh avatar Oct 05 '16 14:10 msudgh

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

nournia avatar Oct 05 '16 14:10 nournia

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

msudgh avatar Oct 05 '16 15:10 msudgh

+1

eyalw avatar Apr 14 '17 17:04 eyalw

+1

mequ avatar Apr 23 '17 07:04 mequ

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

alono avatar May 15 '17 06:05 alono

@amig Thanks, this is a great little workaround! תודה אחי

clockworkpc avatar Sep 22 '17 06:09 clockworkpc

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

On 22 Sep 2017 at 09:48, Alexander Garber [email protected] 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 .

hadifarnoud avatar Sep 22 '17 06:09 hadifarnoud

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

moughxyz avatar Oct 29 '17 18:10 moughxyz