Skip to content
forked from taichino/jcconv

jcconv "JapaneseCharacterCONVerter", interconvert hiragana, katakana, halfwidth kana'

Notifications You must be signed in to change notification settings

morenosan/jcconv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jcconv, Japanese Characters CONVerter

jcconv, Japanese Characters CONVerter, interconvert hiragana, katakana, half-width kana. This module also treat 'half/wide number', 'half/wide alphabet'.

Since 0.2.0, check_hira, check_kata, check_half functions were added. you can check if string consists of characters you specified.

IMPOTANT: In current version, this works only with utf-8 encoding.

Simple example of usage is followings

>>> from jcconv import *
>>> print hira2kata('あいうえお')   # hiragana to katakana
アイウエオ
>>> print kata2hira('カタカナ')     # katakana to hiragana
かたかな
>>> print half2hira('ハンカクカタカナ')      # half-width kana to hiragana
はんかくかたかな
>>> print half2wide('hello jcconv') # half-width alphabet to wide-width
hello jcconv
>>> print wide2half('WIDE')     # wide-width alphabet to half-width
wide

About

jcconv "JapaneseCharacterCONVerter", interconvert hiragana, katakana, halfwidth kana'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%