Skip to main content
jTransliterate - [Hirag/Katak]ana to Latin/English & Back
===========================================================================
Sometimes you may want to convert from Hiragana to Katakana, or back again, or...
I dunno, maybe you wanna get the English pronunciation of these words. I'll
be honest and say it's of no concern or interest to me, but I needed this in
Python and so I ported it, figured I'd release it.

It's MIT licensed. Credit for much of this also belongs to Kim Ahlström and
his linguistics/etc work on **[Ve](https://github.com/Kimtaro/ve/blob/master/lib/providers/japanese_transliterators.rb)**.


Installation
---------------------------------------------------------------------------
pip install jTransliterate


Examples && Documentation
---------------------------------------------------------------------------
``` python
# -*- coding: utf-8 -*-

from jTransliterate import JapaneseTransliterator

# Transliterate from Latin/English to [Hirag/Katak]ana
x = JapaneseTransliterator(u'kanazawa')
print x.transliterate_from_latn_to_hrkt()
# Should print "かなざわ"

# Transliterate from Hiragana to Latin/English
b = JapaneseTransliterator(u'かなざわ')
print b.transliterate_from_hira_to_latn()
# Should print "kanazawa"

# Transliterate from either Hiragana or Katakana to Latin/English
print b.transliterate_from_hrkt_to_latn(text = u'カナザワ')
# Should print "kanazawa"

# Transliterate from Katakan to Hiragana (You... probably never need to do this)
print b.transliterate_from_kana_to_hira(text = u'キットカート')
# Should print "きっとかーと"

# Transliterate from Hiragana to Katakana
print b.transliterate_from_hira_to_kana(text = u'かなざわ')
# Should print "カナザワ"

# If you want to convert between half/full width kana, you can use the following
# functions. I didn't care enough to do demos here. ;|
b.transliterate_from_halfwidth_to_fullwidth()
b.transliterate_from_fullwidth_to_halfwidth()
```

Questions, Comments, Complaints and/or etc
---------------------------------------------------------------------------
Hit me up on them Twitters or find me on them internets at the links below.

Twitter: **[@ryanmcgrath](http://twitter.com/ryanmcgrath/)**
Web: **[Veno Designs](http://venodesigns.net/)**

Release files for jTransliterate 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jTransliterate 1.0.3
File Size Uploaded
jTransliterate-1.0.3.tar.gz 9.0 kB Details

Release files / jTransliterate-1.0.3.tar.gz

Download URL jTransliterate-1.0.3.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2e9393b11c1184c7b6e5bb7cedb8b4d6a9a83cc812dc5a82d2fdd60e34950267
BLAKE2b-256 checksum
How to use checksums
77c1424fed26eb18cbfd36bfb97984c3b945a7d82cf05d4f1684f36c5ad7afab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page