Awesome
<h1 align="center"> <img height="250" src="https://github.com/738/inko/blob/master/images/inko_logo.png?raw=true" /> <br> Inko.py </h1> <p align="center"> <a href="https://github.com/JackCme/inko.py/actions?query=workflow%3A%22Publish+Python+%F0%9F%90%8D+distributions+%F0%9F%93%A6+to+PyPI+and+TestPyPI%22"> <img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/JackCme/inko.py/Publish Python π distributions π¦ to PyPI and TestPyPI?label=Action%20build&logo=Github"> </a> <a href="https://pypi.org/project/inko-py/"> <img alt="PyPI" src="https://img.shields.io/pypi/v/inko-py?logo=pypi&logoColor=%23e0e0e0"> </a> <img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/inko-py"> <a href="https://github.com/Jackcme/inko.py/blob/master/LICENSE"> <img alt="PyPI - License" src="https://img.shields.io/pypi/l/inko-py"> </a> </p> <p align="center"> <b>Open Source Library, Converting Misspelled English characters into Korean letters (& vice versa)</b></br> <b>Python implementation of <a href="https://github.com/738/inko">Inko.js</a></b></br> </p> <br />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