项目作者: kompasim

项目描述 :
This is a Uyghur language text convert tool to display the text in gui programs ...
高级语言: Python
项目地址: git://github.com/kompasim/elkatip.git
创建时间: 2020-06-06T10:54:24Z
项目社区:https://github.com/kompasim/elkatip

开源协议:MIT License

下载


Elkaptip

0. Description

This is a Uyghur text convert tool for gui. sometimes u want to display uyghur language in graphic softwares like photoshop or game engines like cocos2dx and unity3d, and u may find chat the characters displayed is not connecting each other. this time u will neet this tool to convert the common uyghur language text and display the converted language.

1. Installing

  1. pip install elkatip # python3

2. Use of graphical interface

if u only want to convert some texts to show in graphic softwares like ps , u can use the gui program to do that. u can start the gui program by python elkatip comand in root directory or create your own script and show it like this:

  1. from elkatip inport Elkatip
  2. ktp = Elkatip()
  3. ktp.showGui()

ui

3. Use of program interface

if u want to display lots of text in your game or watemark in a photo, then u can use the the string converted by this tool.

  1. from elkatip inport Elkatip
  2. ktp = Elkatip()
  3. uyghurqa1 = "" # the common unicode base area string
  4. uighurche1 = ktp.toExt(uyghurqa1) # the unicode extended area string
  5. uighurche2 = "" # the unicode extended area string
  6. uyghurqa2 = ktp.toBase(uighurche2) # the common unicode base area string

note: uyghurqa1 and uyghurqa2 are the common text typed by modern input method. and uighurche1 and uighurche2 are the extended area string which u can dislay normally in a graphic program

4. others

5. At the end

honestly, this tool is a java utils when i found it, and i need a python version. so i had to implement the python version myself, and i dont want u to do the same thing i did. hope it is helpful for u.