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: Re: emacs + unicode + hebrew + bidi
Date: Tue, 04 Nov 2008 07:13:58 -0800	[thread overview]
Message-ID: <000e0cd2984440f972045ade8320@google.com> (raw)

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

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, "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: 4475 bytes --]

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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04 15:13 cyberkm [this message]
2008-11-04 21:04 ` emacs + unicode + hebrew + bidi James Cloos
2008-11-04 21:28   ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2008-11-04 15:36 RE: " cyberkm

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=000e0cd2984440f972045ade8320@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).