lin-club  

RE: Shlomif's R2L version 0.2.0

Pol Muaddib
Sun, 22 Jul 2001 08:58:11 -0700

Hi, i have a newbie question.
If i understand correctly, the hebrew support mechanisms which the biditext
change when running
are in the Xlib. Why go arround the problem and not fix it altogether by
changing the Xlib?
Or was it already done in unsatisfactory way?

* - * - *
Tzahi Fadida
[EMAIL PROTECTED]
Fax (+1 Outside the US) 240-597-3213
* - * - * - * - * - *


-----Original Message-----
From: mulix [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 22, 2001 10:52 AM
To: Shlomi Fish
Cc: [EMAIL PROTECTED]
Subject: Re: Shlomif's R2L version 0.2.0


On Sun, 22 Jul 2001, Shlomi Fish wrote:

>
> What I forgot to do in this release is have the property of the file size
> present. What size was decided to be the boundary between either active
> state? And what are those states?

r2llib/base_biditext_state.c

BIDITEXT_BASE_STATE
get_biditext_base_state(const char* file_name)
{
     int sz;

     if (!file_name)
          return BT_ERROR;

/* file_size returns the file size in bytes, or -1 on error */
     sz = file_size(file_name);
     if (sz <= 0)
          return BT_BASE_NEUTRAL;

     /* (sz % 2) == (sz & 0x0001) */

/* if size is odd, direction is LTR */
     if (sz & 0x0001)
          return BT_BASE_LTR;

/* if size is even, direction ir RTL */
     return BT_BASE_RTL;
}


> Can anybody write an updated SPEC of what the r2l implmentation has to do?

tzafrir's mails are probably your best guide, or their implementation in
r2llib.


--
mulix
http://www.advogato.com/person/mulix

linux/reboot.h: #define LINUX_REBOOT_MAGIC1 0xfee1dead