unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: cyberkm@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: Re: emacs + unicode + hebrew + bidi
Date: Tue, 04 Nov 2008 03:44:32 -0800	[thread overview]
Message-ID: <000e0cd25dc04f30c1045adb96df@google.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1660 bytes --]

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, "BT Raven" <nihil@nihilo.net> wrote:
> BT Raven wrote:
>
>
> BT 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 ;;
>
> ,fC xC 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 Mx  
reverse-region on it. It's still a kludge but it might work on multi-byte  
buffers.
>

[-- Attachment #2: Type: text/html, Size: 2309 bytes --]

             reply	other threads:[~2008-11-04 11:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04 11:44 cyberkm [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-11-04 13:06 Re: emacs + unicode + hebrew + bidi Bourgneuf Francois
2008-11-04 14:55 ` Jonathan Groll
2008-11-04 15:15 Bourgneuf Francois

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=000e0cd25dc04f30c1045adb96df@google.com \
    --to=cyberkm@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).