[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-bidi] Emacs for Arabic
- To: Tzafrir Cohen <tzafrir at technion dot ac dot il>
- Subject: Re: [emacs-bidi] Emacs for Arabic
- From: Nadim Shaikli <shaikli at yahoo dot com>
- Date: Wed, 3 Jul 2002 10:01:01 -0700 (PDT)
- Cc: TAKAHASHI Naoto <ntakahas at m17n dot org>, developer at arabeyes dot org, emacs-bidi at gnu dot org
--- Tzafrir Cohen wrote:
> On Tue, 2 Jul 2002, Nadim Shaikli wrote:
>
> > 2. Regarding the "simplified" Bidi, could I suggest the following
> > rather simple addition. Pseudo-code would get the point across
> > simpler.
> >
> > if ( first_char_is_RTL )
> > Assume entire line is Right-To-Left
> > else
> > /* default */
> > Assume entire line is Left-To-Right
>
> Generally, it would be best to reorder paragraphs rather than lines.
> Reordering lines wil give some strange results in case a line in the
> middle of a paragraph happens to start with a character of the "other"
> directionality (e.g: a number or english letter in the middle of a hebrew
> paragraph).
>
> Also note that you should generally scan the {line|paragraph|whatever} for
> the first char that has strong "directionality".
That would take it outside the realm of simplicity :-) For what its worth,
personally I'd be willing to live with the "oddity" of have a line within a
paragraph orient itself in the other direction.
My $0.02's worth.
- Nadim
__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com