Home

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

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

KeyTypeValueDescription
allowDoubleConsonantBooleanTrue or False볡자음 μ„€μ •μ—¬λΆ€

섀정을 λΆ€μ—¬ν•˜λŠ” 방법은 μ•„λž˜μ˜ μ„Έ 가지 λ°©λ²•μœΌλ‘œ μ§€μ›ν•©λ‹ˆλ‹€.

  1. μΈμŠ€ν„΄μŠ€ 생성할 λ•Œ μƒμ„±μžμ˜ 인자둜 μ„€μ • λΆ€μ—¬
from inko import Inko
myInko = Inko(allowDoubleConsonant=True)
  1. config ν•¨μˆ˜λ‘œ μ„€μ • λΆ€μ—¬
myInko.config(allowDoubleConsonant=True)
  1. en2ko ν•¨μˆ˜μ˜ 인자둜 μ„€μ • λΆ€μ—¬
myInko.en2ko('rtrt', allowDoubleConsonant=True);
# output: γ„³γ„³
myInko.en2ko('rtrt', {allowDoubleConsonant=False);
# output: γ„±γ……γ„±γ……

Related

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