从右到左的电子邮件 [英] Right-to-Left Email

查看:148
本文介绍了从右到左的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从我的代码生成电子邮件,这些电子邮件将正确阅读使用从右到左阅读的语言(如阿拉伯语)的人。我的问题是:我有什么选择来实现这个?



我知道我可以创建一个多部分电子邮件,并将消息体编码为text / html,然后在< html> 标签中指定文字方向(例如< html dir =rtl> ) ,但理想情况下,我希望使用纯文本电子邮件,而不必依赖HTML格式,因为并非所有用户都将在其电子邮件客户端中支持HTML。



纯文本前端,我已经设法使用Content-Type标头在UTF-8中编码阿拉伯文本,如下所示:

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

但是,文本中,我不确定如何在电子邮件中明确指定这一点,或者即使这是必要的。阿拉伯语的演讲者通常如何使用纯文本电子邮件?他们通常会依靠电子邮件客户端中的全局文本方向设置,还是还有其他一些普遍接受的强制电子邮件本身文本方向的方式?



任何关于右至左电子邮件的建议或一般建议将非常感谢。

解决方案


我是不确定如何在电子邮件中明确指定这一点,或者即使这是必要的。


对于纯文本unicode,您可以添加从右到左标记内联,但不是真的需要。



我想说为什么不添加RTL标记,但这不是真的必要



一个阿拉伯语的演讲者通常使用纯文本电子邮件?他们通常会依靠电子邮件客户端中的全局文本方向设置,还是还有一些其他普遍接受的强制方式电子邮件本身的文本方向?


大多数用户将能够切换文本方向以获得正确的行填充,或者用于锯齿形的阿拉伯语文本(如果不包含任何内联英文字符,则文本本身将正确显示,并且用户习惯于以块形式阅读它)。


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.

解决方案

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).

这篇关于从右到左的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆