Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Right-to-Left Email

I'm trying to generate email from my code that will read correctly for people using right-to-left-reading languages such as Arabic. My question is: what are my options for acheiving this?

I am aware that I can create a multipart email and encode the message body as "text/html", then specify a text direction in the <html> tag (e.g. <html dir="rtl">), but ideally I would like use plain-text email and not have to rely on HTML formatting, because not all users will have HTML support in their email client.

On the plain-text front, I have managed to encode Arabic text in UTF-8 using the "Content-Type" header as follows:

Content-Type: text/plain;charset=UTF-8

But as for the overall direction of the text, I am unsure how to explicitly specify this in the email, or even if this is necessary. How would an Arabic speaker typically work with plain-text email? Would they usually rely on the global text direction setting in their email client, or is there some other, generally accepted way of forcing the text direction in the email itself?

Any suggestions or general advice regarding right-to-left email would be much appreciated.

like image 784
frimkron Avatar asked Sep 30 '09 08:09

frimkron


People also ask

What is right text left?

RTL (right-to-left) refers to scripts, or writing systems, that start on the right and continue to the left. This includes Arabic, Hebrew, Farsi, Urdu, and more. Bidirectional (bidi) text refers to text containing both RTL and LTR (left-to-right) scripts, or writing systems.


1 Answers

I am unsure how to explicitly specify this in the email, or even if this is necessary.

For plain-text unicode, you can add a right-to left mark inline, but it's not really needed.

I'd say why not add the RTL mark, but it's not really necessary

How would an Arabic speaker typically work with plain-text email?Would they usually rely on the global text direction setting in their email client, or is there some other, generally accepted way of forcing the text direction in the email itself?

Most users would be able to either switch the text direction to get a correct padding of the lines, or are used to a jagged-right Arabic text (the text itself will appear correctly if it doesn't contain any inline English characters, and users are used to reading it in chunks even if it does).

like image 81
Osama Al-Maadeed Avatar answered Sep 19 '22 23:09

Osama Al-Maadeed