help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE: Re: emacs + unicode + hebrew + bidi


From: cyberkm
Subject: Re: RE: Re: emacs + unicode + hebrew + bidi
Date: Tue, 04 Nov 2008 07:13:58 -0800

The numbers are from left to right
Here is some example of hebrew (it look correctly in gmail/firefox)
זאת הודעה בעברית
המספרים נכתבים משמאל לימון לדוגמה: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 150, 123456789

On Nov 4, 2008 3:06pm, Bourgneuf Francois <francois.bourgneuf@groupe-mma.fr> wrote:
>
> Just a precision, in
> arabic and hebrew both text and numbers are written right to
> left.
>
> In western languages text
> is written left to right and numbers right to left.
>
> You can't tell the value
> of the left digit of a number if you havent read how many digit are at his
> right.
>
> We solve additions from the right to the
> left.
>
>  
>
> Bour9
>
>  
>
>
>
>
>
> De :
> help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.fr@gnu.org
> [mailto:help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.fr@gnu.org] De
> la part de cyberkm@gmail.com
> Envoyé : mardi 4 novembre 2008
> 12:45
> À : help-gnu-emacs@gnu.org
> Objet : Re: Re:
> emacs + unicode + hebrew + bidi
>
>
>
>
> Thank you, but unforunatly, it is not a solution -
> Hebrew is not
> simple right to left
> its a BI-Directional. Then text is written from rtl
> the number ltr, what
> about the punctuation signs, spaces and etc..
> the
> bi-di code is very complex
>
> On Nov 4, 2008 5:05am, "B. T. Raven"
> nihil@nihilo.net> wrote:
> > B. T. Raven wrote:
> >
> >
>
> > B. T. Raven wrote:
> >
> >
> > Pavel wrote:
> >
>
> >
> > Hi everybody, i would like to know if the combination i
> mentioned in the
> >
> > subject is possible.
> >
> > I
> would like to write Hebrew latex documents in emacs, but unfortunately
> the
> >
> > Hebrew is reversed.
> >
> > Thanx
> >
>
> >
> >
> >
> >
> >
> > As a kludge you could
> type everything left to right and then apply this function to the whole
> buffer:
> >
> >
> >
> > (defun reverse-bstring
> (str)
> >
> >  (apply #'string (nreverse (string-to-list
> (buffer-string))))
> >
> >
> >
> > There is something
> perverse about it since it doesn't seem to need to be passed a string but,
> anyway, evaluating it in *Scratch* produces this:
> >
> >
> >
>
> > "
> >
> > ))))gnirts-reffub( tsil-ot-gnirts( esrevern(
> gnirts'# ylppa(
> >
> > )rts( gnirtsb-esrever nufed(
> >
> >
>
> >
> > ..reffub nwo s'elif taht ni txet eht retne neht ;;
> >
>
> > ,f-C x-C htiw elif taht tisiv ,elif a etaerc ot tnaw uoy fI
> ;;
> >
> > ..noitaulave psiL rof dna ,evas ot tnaw t'nod uoy seton
> rof si reffub sihT ;;"
> >
> >
> >
> > Ed
> >
> >
>
> >
> >
> > Of course you want to do this line by line, not to
> the whole buffer, since in Hebrew and Arabic you start at the back of the book
> but not at the bottom of the page. O well, back to the drawing board.
> >
>
> >
> >
> >
> > You could then demarcate the above text as
> a region and then run M-x reverse-region on it. It's still a kludge but it
> might work on multi-byte buffers.
> >
>
reply via email to

[Prev in Thread] Current Thread [Next in Thread]