[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDK/GTK 1.2 with hebrew support



Alex Shnitman writes:

> I have a strange idea. The text and entry widgets are created by
> calling the appropriate GTK function by the application, right? So
> what if we make an .so library that overrides these functions and
> makes them create the Hebrew widgets instead, and then LD_PRELOAD that 
> library into any GTK application? Theoretically this should allow us
> to Hebrewfy any GTK application on the fly without recompilation. Is
> there anything that will stop this from working?

Nope. It certainly should work. I thought about doing it once but it somehow
slipped out of my mind. The problem is more an organizational one. If a new
version of Gtk is released one should update the reflected versions as well. If
someone takes upon himself the headache of keeping an updated site with rpm's
and tar files of the patched library., I'll write the code. Any volunteers?

Note that such a solution is less than perfect. E.g. in irc you'll 
have one big pain flipping the direction of the text widget the whole
time if you are trying to speak in Hebrew and English at the same time.

Also, such a solution isn't enough to insert the appropriate header's
and be able to quote appropriately for a mail agent.

Dov