Well, I'm sorry to be a kill-joy, but in addition to being right-to-left, Urdu actually uses Arabic script. This means it does not use discrete, invariable symbols for each "letter" (like Hebrew does). Instead, the appearance of each letter depends on its position in the word: e.g. the symbol for "meem" (letter representing the "m" sound) will appear one way in word-initial (right-most) position, another way in word-final (left-most) position, and yet another way in medial position, and similarly for most letters. And then there's the matter of the ligatures joining the characters in the word -- if the letters of a word are not properly connected, people will probably still be able to read the word, but it will be a strain. Much more of a strain if all the characters are shown invariably in their "initial" or "isolated" forms rather than their correct contextual forms.

Obviously, there are ways of dealing with these issues; just bear in mind that it's more than just a simple matter of reversing the direction of text lines.

Hopefully, Gtk will have what you need (though I've never used it with perl, and am not sure about its merits or deficiencies for rendering Arabic script). Let me know if you get anywhere with that...


In reply to Re: right to left Tk text widget by graff
in thread right to left Tk text widget by davidj

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.