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

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

Re: emacs + unicode + hebrew + bidi


From: B. T. Raven
Subject: Re: emacs + unicode + hebrew + bidi
Date: Mon, 03 Nov 2008 20:34:55 -0600
User-agent: Thunderbird 2.0.0.17 (Windows/20080914)

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


reply via email to

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