From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dotan Cohen Subject: Re: BIDI and org-mime-htmlize Date: Sat, 14 Mar 2015 10:58:30 +0200 Message-ID: References: <87egot6qnl.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWhtw-00008M-NS for emacs-orgmode@gnu.org; Sat, 14 Mar 2015 04:58:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YWhtv-00032r-Fx for emacs-orgmode@gnu.org; Sat, 14 Mar 2015 04:58:32 -0400 Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]:38536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWhtv-00031q-Bw for emacs-orgmode@gnu.org; Sat, 14 Mar 2015 04:58:31 -0400 Received: by igbue6 with SMTP id ue6so4554759igb.1 for ; Sat, 14 Mar 2015 01:58:30 -0700 (PDT) In-Reply-To: <87egot6qnl.fsf@mat.ucm.es> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Fri, Mar 13, 2015 at 2:14 PM, Uwe Brauer wrote: > > > Hello > > GNU emacs 24 has BIDI support, for languages such as Hebrew and Arabic. > > However when I write an email, and send it via say gnus, the mail text > received it is displayed correctly with one restriction: The text is > displayed in most mail agents, at the left margin instead of the right > margin (I cannot write this here, since it would not displayed > correctly) > > Thunderbird offers BIDI email support via HTML. The relevant HTML > elements seem to be > > > So the question is could org-mime-htmlize support this element (on > demand as well for example via (defvar org-mime-htmlize-rtl t)?? > The responsibility for determining if the paragraph is RTL or LTR depends on the client rading the email, not the author. Since most clients are not RTL aware (Thunderbird needs an addon to make it RTL aware) the email author can use HTML which allows one to mark the paragraphs or entire mail as RTL. If HTML mail is not an option, you can precede the mail (or every paragraph, again this is reading-client dependent) with the non-printing RLE (Right-to-Left Embedding) character. More info here, including RLE character and other characters that you can copy and paste into your emails: http://dotancohen.com/howto/rtl_right_to_left.html -- Dotan Cohen http://gibberish.co.il http://what-is-what.com