How to use the jaconv.jaconv.hira2kata function in jaconv

To help you get started, we’ve selected a few jaconv examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ikegami-yukino / jaconv / jaconv / __init__.py View on Github external
jaconv.kata2hira(text, [ignore]) # 全角カタカナをひらがなに変換
    jaconv.h2z(text, [ignore, kana, ascii, digit]) # 半角文字を全角文字に変換
    jaconv.z2h(text, [ignore, kana, ascii, digit]) # 全角文字を半角文字に変換
    jaconv.han2zen(text, [ignore, kana, ascii, digit]) # 半角文字を全角文字に変換
    jaconv.zen2han(text, [ignore, kana, ascii, digit]) # 全角文字を半角文字に変換
    jaconv.normalize(text, [nomalizemode]) # 半角カナを全角カナへ、全角英数字を半角英数字に変換
    jaconv.kana2alphabet(text) # かなをヘボン式アルファベットに変換
    jaconv.alphabet2kana(text) # アルファベットをかなに変換
"""

VERSION = (0, 2, 4)
__version__ = '0.2.4'
__all__ = ['hira2kata', 'hira2hkata', 'kata2hira', 'h2z', 'z2h', 'normalize',
           'kana2alphabet', 'alphabet2kana']

hira2kata = jaconv.hira2kata
hira2hkata = jaconv.hira2hkata
kata2hira = jaconv.kata2hira
h2z = jaconv.h2z
z2h = jaconv.z2h
han2zen = jaconv.h2z  # an alias of h2z
zen2han = jaconv.z2h  # an alias of z2h
hankaku2zenkaku = jaconv.h2z  # an alias of h2z
zenkaku2hankaku = jaconv.z2h  # an alias of z2h
normalize = jaconv.normalize
kana2alphabet = jaconv.kana2alphabet
alphabet2kana = jaconv.alphabet2kana