2

I am working on a project that is based on Urdu language in Ubuntu platform. I'm using Python language and have almost achieved my task.

The problem is that, the Urdu text is rendered in reverse order.

For example, consider the word کام (which means work) consisting of the three letters: ک ,
ا , and م

The output is rendered in reverse order as ماک consisting of the three letters: م,
ا, and ک

When copying this text to Open Office or opening the generated XML file in Firefox, the generated result is absolutely desired.

I Am using Python 2.6 IDLE, its working perfect with Windows platform, which clearly shows its not the problem of IDLE. Am working on TKINTER GUI library.

How can this problem be solved?

4

2 回答 2

0

我对阿拉伯语也有类似的问题。Tkinter 是 Tk GUI 工具包的 Python 接口,遗憾的是它不支持双向语言

我的解决方案是改用wxPython。wxPython 也很不错,因为您的应用程序在它使用的任何平台上都看起来是原生的。

这里有更多关于 Tk 缺乏 bidi 支持的信息:http: //easygui.wordpress.com/2010/02/03/easygui-and-unicode/

于 2013-04-06T21:05:59.947 回答
-1

使用不那么糟糕的工具包,例如 PyQt、PyGTK 或 wxPython。

于 2011-01-12T13:40:52.603 回答