heconvert

simple converter that converts hangul to english and vise versa


Keywords
hangul, converter
Licenses
Apache-2.0/libpng-2.0
Install
pip install heconvert==1.0.2

Documentation

heconvert

Build Status

heconvert is simple converter that convert hangul to english and vise-versa

Requirements

  • python 3

Installation

heconvert should be installed using pip3:

pip3 install heconvert

Use heconvert

  1. Hangul --> English:

    from heconv.converter import h2e
    
    h2e('μ‚¬λž‘ν•©λ‹ˆλ‹€')  # return 'tkfkdgkqslek'
    
  2. English --> Hangul:

    from heconvert.converter import e2h
    
    e2h('tkfkdgkqslek')  # return 'μ‚¬λž‘ν•©λ‹ˆλ‹€'
    
  3. Continuous Converting:

    from heconvert.converter import HangulToEnglishConverter, EnglishToHangulConverter
    
    # Hangul --> English
    h2e_builder = HangulToEnglishConverter()
    h2e_builder.update('ν•œμ˜νƒ€')  # just update internal state
    h2e_builder.convert()  # return 'gksdudxk'
    h2e_builder.update('λ³€ν™˜κΈ°', convert=True)  # return 'gksdudxkqusghksrl'
    
    # English --> Hangul
    e2h_builder = EnglishToHangulConverter()
    e2h_builder.update('gksdudxk')  # just update internal state
    e2h_builder.convert()  # return 'ν•œμ˜νƒ€'
    e2h_builder.update('qusghksrl', convert=True)  # return 'ν•œμ˜νƒ€λ³€ν™˜κΈ°'
    

Bug tracker

If you have any suggestions or bug reports, please report them to the issue tracker at https://github.com/makerj/heconvert/issues

Contributing

Contribution of heconvert available at github: https://github.com/makerj/heconvert To start a support for a new keyboard layout, use manage.py to create a new module directory structure (for more information, run manage.py with '--help' argument)

License

Licensed under The Apache License (Apache).

Copyright

Copyright (c) 2016 Junhui Lee (ohenwkgdj@gmail.com)