in reply to Tk Characters

I'm very sorry, but to the best of my knowledge, Tk is not really capable of displaying Arabic strings coherently. (Oh I wish it could -- my life would be so much easier! But alas...)

The things Arabic needs that Tk doesn't provide are:

There's an appreciable set of applications that can work fairly well without worrying about bidi text -- they just happen to never mix Arabic words with Latin-based words or digit strings on the same line in a display, and they generally don't encounter things like bracketing characters (parens, etc). But without a working method for context-sensitive character rendering you've got a non-starter.

So, either get up to speed on Qt or Gtk, or else configure your app to use HTML and browsers as the GUI. (update: or, knuckle down and build the parts for Tk that are missing...)

Replies are listed 'Best First'.
Re^2: Tk Characters
by Anonymous Monk on May 12, 2009 at 10:22 UTC
    Great , thank you very much .. Today I came across the problem of text direction , I can display Arabic words but it in the reverse order ! As you mentioned maybe it doesn't worth all this headache simply I can use HTML output.. But the thing is why I can't find books about Perl and QT, GTK, and the rest of GUI's ?
    regards Swalif
      Search here at the monastery for stuff about Gtk. Our own zentara has posted a variety of very helpful information about it, including some sample apps. Between that and the online documentation for Gtk, you should have enough to get started (after you get both the Gtk libraries and the CPAN module installed).