rezkam / persian Goto Github PK
View Code? Open in Web Editor NEWSimple Python tool for Persian language localization.
License: MIT License
Simple Python tool for Persian language localization.
License: MIT License
Code doesn't work
-> python2.7 test.py
Traceback (most recent call last):
File "test.py", line 4, in
print enToPersianNumb('شماره کلاس 312')
File "persian.py/persian.py", line 12, in enToPersianNumb
return replaceing(numEnglish, numPersian, number)
File "persian.py/persian.py", line 36, in replaceing
for i in list(unicode(input)):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 0: ordinal not in range(128)
Hi,
I think doctest is a nicer solution to write test for this project, follow this instruction if you intrested in doctest instead of unittest:
http://docs.python.org/2/library/doctest.html
Hi. first tanx for this package. i would use it but return this error for me:
module 'persian' has no attribute 'convert_fa_numbers'
installed version : 0.0.4
Salam
Mohandes shoma inja hame chizo update kardi ama tu pypi package hanooz in baste ba noskhe ghabli hastesh
Hi, I wonder if there is any Persian number to word converter? What I mean is as follows:
۳۵ --> سی و پنج
۱۲۳۴ --> هزار و دویست و پنجاه و چهار
The equivalent English number to word converter is the inflect
in replacing() function Isn't it more speedy to replace the characters by replace() function?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.