[kde-china] 繁体中文翻译快速移植到简体中文的方法

Mingxi Wu fengshenx在gmail.com
星期日 二月 17 09:55:24 CET 2008


FYI

---------- Forwarded message ----------
From: Xie Yanbo <xieyanbo at gmail.com>
Date: 2008-1-11 18:34
Subject: [CPyUG:38184] ÖÐÎÄ·±¼òת»»
To: python-cn <python-cn at googlegroups.com>, python-chinese at lists.python.cn

×î½üÔÚ¿ª·¢ÖÐÎÄ·±¼òת»»µÄpythonÄ£¿é£¬ÒѾ­³õ²½Íê³ÉÁËÒ»¸ö´¿pythonµÄÔ­ÐÍ[1]£¬
¿ÉÒÔʵÏÖunicode×Ö·û´®×ª»»³É¼òÌå»ò·±ÌåµÄ¹¦ÄÜ¡£·±¼òÓ³Éä±íÀ´×ÔÓÚά»ù°Ù¿ÆµÄ
mediawiki´úÂë¡£

[1] http://pyswim.googlecode.com/files/langconv-0.0.1dev.tgz

Ò»¸öʹÓõÄÀý×Ó£º
>>> from langconv import *
>>> c=Converter('zh-hant')
>>> c.convert(u'ºº×Ö')
u'\u6f22\u5b57'
>>> print c.convert(u'ºº×Ö')
h×Ö
>>> print c.convert(u'ÖÐÎÄ·±¼òת»»')
ÖÐÎÄ·±º†ÞD“Q
>>> print Converter('zh-hans').convert(u'ÖÐÎÄ·±º†ÞD“Q')
ÖÐÎÄ·±¼òת»»

´úÂëºËÐÄÊÇÒ»¸ö״̬»ú£¬»ùÓÚ×î´ó³¤¶ÈÆ¥ÅäµÄËã·¨¡£

¿ÉÒÔÓÅ»¯µÄµØ·½»¹Óкܶ࣬ÏîÄ¿Ä¿±êÊÇÄÜÌṩһ¸öcÓïÑÔµÄlib£¬ÒÔ¼°¶ÔÓ¦µÄpython¡¢
phpµÈ°ü×°¡£µ«ÓÉÓÚ×î½ü˽ÈËÊÂÇé±È½Ï¶à£¬ÔÝʱÎÞ·¨¼ÌÐø£¬ÏȷųöÀ´Çë´ó¼ÒÖ¸µã£¬
»¶Ó­¸÷ÖÖÌÖÂÛ¡£

--~--~---------~--~----~------------~-------~--~----~
'''ÓʼþÀ´×ÔGroups "python-cn"--China Py User Group
ÏêÇé: http://groups-beta.google.com/group/python-cn
·¢ÑÔ: python-cn at googlegroups.com
Í˶©: python-cn-unsubscribe at googlegroups.com
ά»ù: http://wiki.woodpecker.org.cn/moin/CPUG
Öé½­ÊÂÎñ: http://groups.google.com/group/zpug
¶«ÄÏÊÂÎñ: http://groups.google.com/group/cpug-eastchina
±±¾©ÊÂÎñ: http://groups.google.com/group/bpug
ÖйúÊÂÎñ: http://groups.google.com/group/CPUG
ͬÖÊÁбí: http://python.cn/mailman/listinfo/python-chinese
'''
-~----------~----~----~----~------~----~------~--~---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-china/attachments/20080217/aa0b7864/attachment.html 


关于邮件列表 kde-china 的更多信息