Skip to main content

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

Project description

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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jcconv, version 0.2.3
Filename, size & hash File type Python version Upload date
jcconv-0.2.3.tar.gz (4.9 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page