From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mehran khajavi Newsgroups: gmane.emacs.devel Subject: Re: Persian RTL problem Date: Tue, 27 Sep 2011 15:49:07 +0330 Message-ID: References: <87sjnl8e9i.fsf@m17n.org> <83fwjk1opg.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0ce0275a68936404adeb4980 X-Trace: dough.gmane.org 1317126000 13851 80.91.229.12 (27 Sep 2011 12:20:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2011 12:20:00 +0000 (UTC) Cc: handa@m17n.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 27 14:19:53 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R8Wdc-0000g2-Lx for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2011 14:19:52 +0200 Original-Received: from localhost ([::1]:46144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8Wdc-0000rK-5j for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2011 08:19:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8WdU-0000rB-Ta for emacs-devel@gnu.org; Tue, 27 Sep 2011 08:19:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8WdL-00010L-Dv for emacs-devel@gnu.org; Tue, 27 Sep 2011 08:19:44 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:39913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8WdE-0000yz-Kv; Tue, 27 Sep 2011 08:19:28 -0400 Original-Received: by bkbzs2 with SMTP id zs2so7853038bkb.0 for ; Tue, 27 Sep 2011 05:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=2CTu322o58+ZXww9Srefhg5p+w1JUx0Kywzuff3x2OM=; b=kLY6m5ImsivwEE0+5GwGl2r76MmWCrxx03vDXcAmtTh3Wi5RlCsdWLs3v2CeH+P+Oz oFamEPCLr79iSorUXy4sUw5vMSAPuOhePX6Iwl3SJh0N/X30dmkQWxOO0Gp0M2oGsNi7 Iega/PEujc8DI8KD8a6CqwPhpS/Fwhw+lbm7s= Original-Received: by 10.204.156.129 with SMTP id x1mr4853891bkw.254.1317125967352; Tue, 27 Sep 2011 05:19:27 -0700 (PDT) Original-Received: by 10.204.118.2 with HTTP; Tue, 27 Sep 2011 05:19:07 -0700 (PDT) In-Reply-To: <83fwjk1opg.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144400 Archived-At: --000e0ce0275a68936404adeb4980 Content-Type: text/plain; charset=UTF-8 I searched a lot but couldn't find any terminal with this attribute I tested xterm but it doesn't work another problems: In some buffers for example ERC irc channels RTL doesn't work It aligned as Left , Is there any function to set buffer as RTL? or is there any option to set if most of the text is in Persian language set this line as RTL? 2.there is some bugs that I see in Emacs 24 pretest with RTL according to attachment , text that bordered with sign "1" should be in right of the buffer when I enter a blank line and enter the same line it will be aligned in the right way(signed as 4) after that I entered an English text without blank line (signed as 2),it aligned at right but it should be in left numbers of persian language will be aligned at left but it should aligned in right(signed as 3) On Sun, Sep 25, 2011 at 9:36 PM, Eli Zaretskii wrote: > > From: mehran khajavi > > Date: Sun, 25 Sep 2011 21:07:56 +0330 > > Cc: Kenichi Handa , emacs-devel@gnu.org > > > > wow great > > it solved > > but only with gtk+ screen, not from emacs -nw option! > > any solution to get it work in terminal?! > > To have Arabic shaping in "emacs -nw", you need a terminal that > supports Arabic shaping. Emacs cannot shape by itself when it works > on a TTY, because TTYs support only single-character writes. > > I have no idea which terminals support shaping, sorry. If you find > out, please post the information here, so we could include it in the > relevant documentation. > > -- ----- Mehran Khajavi http://mehran.khajavi.ir --000e0ce0275a68936404adeb4980 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I searched a lot=C2=A0but couldn't find any terminal w= ith this attribute
I tested xterm but it doesn't work
another problems:
In some buffers for example ERC irc channe= ls RTL doesn't work
It aligned as Left , Is there any functio= n to set buffer as RTL?
or is there any option to set if most of = the text is in Persian language set this line as RTL?

2.there is some bugs that I see in Emacs 24 pretest wit= h RTL
according to attachment , text that bordered with sign &quo= t;1" should be in right of the buffer
when I enter a blank l= ine and enter the same line it will be aligned in the right way(signed as 4= )
after that I entered an English text without blank line (signed as 2),= it aligned at right but it should be in left
numbers of persian l= anguage will be aligned at left but it should aligned in right(signed as 3)=

On Sun, Sep 25, 2011 at 9:36 PM, Eli Za= retskii <eliz@gnu.org> wrote:
> From: mehran khajavi <sinoohe.mkh@gmail.com>
> Date: Sun, 25 Sep 2011 21:07:56 +0330
> Cc: Kenichi Handa <handa@m17n.org>, emacs-devel@gnu.org
>
> wow great
> it solved
> but only =C2=A0with gtk+ screen, not from emacs -nw option!
> any solution to get it work in terminal?!

To have Arabic shaping in "emacs -nw", you need a terminal = that
supports Arabic shaping. =C2=A0Emacs cannot shape by itself when it works on a TTY, because TTYs support only single-character writes.

I have no idea which terminals support shaping, sorry. =C2=A0If you find out, please post the information here, so we could include it in the
relevant documentation.




--
-----
Mehran Khajavi
http://mehran.khajavi.ir

--000e0ce0275a68936404adeb4980--