Skip to content

thencon python library source code

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

AnapatD/thencon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(thencon) A library that'll help you convert Thai to English / English to Thai(by Kedmanee keyboard layout)

PyPI: https://pypi.org/project/thencon

This library will help you convert Thai to English / English to Thai(by Kedmanee keyboard layout)

Have you ever type a long phrase and realised you forgot to change the language on the keyboard? Well, this library can help you out! By installing this package and run it with python, it can automatically convert English into Thai or even Thai to English.

btw. "thencon" stands for Thai English Converter in case you want to know :)

How to install:

Open CMD / Terminal and type this command

pip install thencon

Usage:

[STEP 1]

  • Open python IDLE and type...
from thencon import translate

[STEP 2]

thencon.translate(your_method(1 or 2), your text)

Methods:

  • (1): Convert English to Thai
  • (2): Convert Thai to English

[Example]

# -*- coding: utf-8 -*-

from thencon import translate

entext = ("l;ylfu") #Typing Thai with English keyboard
thtext = ("็ำสสน") #Typing English with Thai keyboard

converted_th = translate(1, entext) #Convert English to thai
converted_en = translate(2, thtext) #Convert Thai to English

print("The Thai text is: " + converted_th)
print("The English text is: " + converted_en)

Developed by: ADR

About

thencon python library source code

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

Languages