This library helps to reverse numbers order OR change latin numbers to arabic in a .docx file
Project description
Reverse Latin Numbers Order || Change It To Arabic
By Using This Library You Can Change Latin Numbers Order From Left to Right or change them to Arabic and store them in new file.
Installation
pip install latin_to_arabic_number
How to use it?
There are two methods:
-
latin_to_arabic(file_to_read,file_to_save)
-
reverse_numbers_order(file_to_read,file_to_save)
- These methods receive two parameters:
- file_to_read: This is the target file which changes need to apply for.
- file_to_save: Directory To save result.
- These methods receive two parameters:
Example
from latin_to_arabic_number import reverse_numbers_order, latin_to_arabic
file_to_read= "/tmp/personal/target_file_name.docx"
file_to_save= "/tmp/personal/new_file_name.docx"
#returns 'A new file with reversed numbers'
#If we have 'I am 28 years old' the result would be 'I am 82 years old'
reverse_numbers_order(file_to_read=file_to_read,file_to_save=file_to_save)
#returns 'A new file with changed latin numbers to arabic'
#If you have a text like 'I am 28 years old' the result would be 'I am ۲۸ years old'
latin_to_arabic(file_to_read=file_to_read,file_to_save=file_to_save)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for latin_to_arabic_number-0.0.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc3b5577dadfc15bce9a54f97d941506470eddb9513caead2b9e8e4209414cd4 |
|
MD5 | afcd4f68b652838185deaf5fffa26abc |
|
BLAKE2b-256 | 4273a1da3056776cd07c47f9a3dc43cb92ef2853390f63c8e37bdf3798d88a5e |