[Fribidi-discuss] Re: BiDi WINE status and fribidi
Behdad Esfahbod
behdad at bamdad.org
Sun Aug 25 00:03:02 EST 2002
On Sat, 24 Aug 2002, Dov Grobgeld wrote:
> On Sat, Aug 24, 2002 at 04:40:39AM +0430, Behdad Esfahbod wrote:
> >
> > Windows API, ans so WINE's uses UTF-16. And WINE people reject
> > to use a 32bit bidi library and convert back and forth all the
> > time, so they need UTF-16 support internally.
>
> I just looked at the fribidi source code and the only place which makes use of
> the encoding of the string is (the static) fribidi_analyse_string(). It would
> be quite easy to add an extra "encoding" parameter so that it would be easy to
> support both UTF-16 and UCS4 (I refuse to say UTF-32, as there is no boundry
> checks in fribidi. ;-). We could then enter the encoding as a property
> of the FribidiEnv. The runtime overhead should be very small to get a library
> that supports both encoding types.
You are a little wrong Dov, we are assuming
sizeof (FriBidiChar) == 4, at least the compiler is assuming this
when compiling, so its quite easy in compile time, but not so
easy in run-time. I prefer not to support it in run-time.
> Regards,
> Dov
--
Behdad Esfahbod 3 Shahrivar 1381, 2002 Aug 25
http://behdad.org/ [Finger for Geek Code]
#define is_persian_leap(y) ((((y)-474)%2820+2820)%2820*31%128<31)
More information about the FriBidi
mailing list