Japanese Numerals to Arabic Numerals converter in Python
Question: Is there an open source library in Python which does Kanji Numeral to Arabic
Numeral conversion/translation?

Input : 10億2千9百万  
Output: 1,029,000,000

Input : 1億6,717万2,600  
Output: 167,172,600

Input : 3,139百万  
Output: 3,139,000,000

Japanese Numeral Systems : <http://en.wikipedia.org/wiki/Japanese_numerals>

Web Based Converter : <http://www.sljfaq.org/cgi/kanjinumbers.cgi>


Answer: This should work:

    
    
    import kanjinums
    kanjinums.kanji2num("五百十一")
    

After downloading and installing
[kanjinums](http://ginstrom.com/scribbles/2009/04/28/converting-kanji-numbers-
to-integers-with-python/), which is unfortunately not available through pip.

**EDIT:** This will only work for basic numbers, not the complex cases like
mentioned.

With minor modifications this will actually work, for instance:

    
    
    3139*kanjinums.kanji2num("百万")
    3139000000
    

