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 jcconv3 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

jcconv3-1.2.3.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file jcconv3-1.2.3.tar.gz.

File metadata

  • Download URL: jcconv3-1.2.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for jcconv3-1.2.3.tar.gz
Algorithm Hash digest
SHA256 b030623a0b4c8e3dea52305e4749dff62b20752e5bbe27815293a8081381b0cf
MD5 65a90cd5b1d880ff43185f3132f5368c
BLAKE2b-256 f7ded51918b87c816a70c4746835b854ab48fde8128b53b5c22027744ec064ca

See more details on using hashes here.

Supported by

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