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
wide

Project details


Download files

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

Source Distribution

jcconv-0.2.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

jcconv-0.2.2-py2.6.egg (10.9 kB view details)

Uploaded Source

File details

Details for the file jcconv-0.2.2.tar.gz.

File metadata

  • Download URL: jcconv-0.2.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jcconv-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5db4d566dfedaa2194efb8b27d16d03a94dca168279f2a54fc3f7534087b2d30
MD5 88b5fc6136acf51891580a0a7144867c
BLAKE2b-256 1669b8697e39147a8f91b7b503d2d2aff968c48253c0b6e21fd580e45a1d6b29

See more details on using hashes here.

File details

Details for the file jcconv-0.2.2-py2.6.egg.

File metadata

  • Download URL: jcconv-0.2.2-py2.6.egg
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jcconv-0.2.2-py2.6.egg
Algorithm Hash digest
SHA256 7dc4cd3c73b8decc7fa45e68a2074fb2f6d12e261a62632b53390f821239c95c
MD5 5dfc608be2576475be0b6bdfca415763
BLAKE2b-256 5680b37ccb30cd7b4d191a925c880fadb0da334e492139920b4abd254056e350

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page