all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* RE: Re: emacs + unicode + hebrew + bidi
@ 2008-11-04 15:15 Bourgneuf Francois
  2008-11-04 20:35 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Bourgneuf Francois @ 2008-11-04 15:15 UTC (permalink / raw)
  To: help-gnu-emacs

I just wanted to point that "english numbers" (i.e. arabic) numbers are in fact right to left.
We're used to use them so we think they are written left to right but it's wrong. Even though you don't
realize it, you read numbers from the right to the left.

I disagree with what's written in the Wikipedia article.
For example, in the number 1.234 how can you tell 1 represents one thousand ? Because there are
three digits on the right. You have to read the right part of the number first.

Other example, which of these calculations is the easiest to solve :

  12345
+23

Or

 12345
+     23

Regards
Bour9  

> -----Message d'origine-----
> De : 
> help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.fr@gnu.or
> g 
> [mailto:help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.f
> r@gnu.org] De la part de Jonathan Groll
> Envoyé : mardi 4 novembre 2008 15:56
> À : help-gnu-emacs@gnu.org
> Objet : Re: Re: emacs + unicode + hebrew + bidi
> 
> On Tue, Nov 04, 2008 at 02:06:09PM +0100, Bourgneuf Francois 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.
> > 
> 
> In all the Hebrew I've seen numbers were left to right:
> http://en.wikipedia.org/wiki/Hebrew_punctuation#Math
> 
> Regards,
> Jonathan
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: RE: Re: emacs + unicode + hebrew + bidi
@ 2008-11-04 15:13 cyberkm
  2008-11-04 21:04 ` James Cloos
  0 siblings, 1 reply; 9+ messages in thread
From: cyberkm @ 2008-11-04 15:13 UTC (permalink / raw)
  To: help-gnu-emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <mailman.2486.1225374867.25473.help-gnu-emacs@gnu.org>]
* emacs + unicode + hebrew + bidi
@ 2008-10-30  6:42 Pavel
  2008-10-30 15:56 ` Drew Adams
  2008-10-30 21:25 ` Eli Zaretskii
  0 siblings, 2 replies; 9+ messages in thread
From: Pavel @ 2008-10-30  6:42 UTC (permalink / raw)
  To: help-gnu-emacs

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

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

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-11-04 21:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2871.1225811718.25473.help-gnu-emacs@gnu.org>
2008-11-04 16:29 ` emacs + unicode + hebrew + bidi Richard Riley
2008-11-04 15:15 Bourgneuf Francois
2008-11-04 20:35 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2008-11-04 15:13 RE: " cyberkm
2008-11-04 21:04 ` James Cloos
2008-11-04 21:28   ` Eli Zaretskii
     [not found] <mailman.2486.1225374867.25473.help-gnu-emacs@gnu.org>
     [not found] ` <15mdnR00Q9IwKZLUnZ2dnUVZ_tudnZ2d@sysmatrix.net>
2008-11-04  2:55   ` B. T. Raven
2008-11-04  3:05     ` B. T. Raven
2008-10-30  6:42 Pavel
2008-10-30 15:56 ` Drew Adams
2008-10-30 21:25 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.