Python pip module of Inko.js
Project description
Inko.py
Open Source Library, Converting Misspelled English characters into Korean letters (& vice versa)
Python implementation of Inko.js
Getting Started
Requirements
- Python >= 3.6
Installation
python -m pip install inko-py
Usage
import inko
myInko = inko.Inko()
or
from inko import Inko
myInko = Inko()
영어(en) -> 한글(ko)
print(myInko.ko2en('ㅗ디ㅣㅐ 재깅!'))
# output: hello world!
한글(ko) -> 영어(en)
print(myInko.en2ko('dkssudgktpdy tptkd!'))
# output: 안녕하세요 세상!
Optional parameter
Key | Type | Value | Description |
---|---|---|---|
allowDoubleConsonant | Boolean | True or False | 복자음 설정여부 |
설정을 부여하는 방법은 아래의 세 가지 방법으로 지원합니다.
- 인스턴스 생성할 때 생성자의 인자로 설정 부여
from inko import Inko
myInko = Inko(allowDoubleConsonant=True)
config
함수로 설정 부여
myInko.config(allowDoubleConsonant=True)
en2ko
함수의 인자로 설정 부여
myInko.en2ko('rtrt', allowDoubleConsonant=True);
# output: ㄳㄳ
myInko.en2ko('rtrt', {allowDoubleConsonant=False);
# output: ㄱㅅㄱㅅ
Related
- inko-js - Inko javascript library
- inko-cli - Use inko on the command line
- inko-web - Inko official website
- inko-chrome-extension - Inko chrome extension
- alfred-inko - Alfred 3 workflow to convert misspelled English characters into Korean letters (& vice versa)
Contributing
이 오픈소스 프로젝트에 누구나 기여할 수 있습니다. 기여하고 싶은 분들은 이 레포지토리를 포크한 후 풀리퀘스트 요청해주세요!
License
Inko.py is released under the MIT License. See LICENSE file for details.
Credits
Thanks to Jon Jee(738), the original author of Inko.js
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inko-py-1.0.0.tar.gz
(5.0 kB
view hashes)