Skip to main content

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:

  1. latin_to_arabic(file_to_read,file_to_save)

  2. 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.

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


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

latin_to_arabic_number-0.0.3-py2-none-any.whl (4.1 kB view details)

Uploaded Python 2

File details

Details for the file latin_to_arabic_number-0.0.3-py2-none-any.whl.

File metadata

  • Download URL: latin_to_arabic_number-0.0.3-py2-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for latin_to_arabic_number-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 fc3b5577dadfc15bce9a54f97d941506470eddb9513caead2b9e8e4209414cd4
MD5 afcd4f68b652838185deaf5fffa26abc
BLAKE2b-256 4273a1da3056776cd07c47f9a3dc43cb92ef2853390f63c8e37bdf3798d88a5e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page