Skip to main content

Thai-English keyboard converter(Keyboard layout) by ADR

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thencon-0.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file thencon-0.1.tar.gz.

File metadata

  • Download URL: thencon-0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for thencon-0.1.tar.gz
Algorithm Hash digest
SHA256 e734cd1e837ca6b49102bc8b5db7442efd88631f4bd32aafcc305a53d1a79860
MD5 4332228905498da761b6e1615e75e910
BLAKE2b-256 4fc2d476e19642fb0e5aafd4a88940e2addacecee69de9424fdb45626376fad1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page