Skip to main content
https://travis-ci.org/meyt/neviseh.svg?branch=master https://coveralls.io/repos/github/meyt/neviseh/badge.svg?branch=master

Simple text processing tools in persian.

Features

  • Text normalization

  • Keyboard layout mapping translation

  • Calendar translation

Usage

Currently we have two base modules for English and Persian texts, each of these modules contains chaining-methods that apply on initial value.

Example:

from neviseh import PersianText
print(str(
    PersianText('123').translate_latin_numbers()
))
# output: ۱۲۳

print(str(
    PersianText('123.45').replace_decimal_dots().translate_latin_numbers()
))
# output: ۱۲۳٫۴۵

for complete samples look tests.

TODO:

  • Affix spacing (more)

  • Calendar month names translation

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neviseh-0.1.3.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file neviseh-0.1.3.tar.gz.

File metadata

  • Download URL: neviseh-0.1.3.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for neviseh-0.1.3.tar.gz
Algorithm Hash digest
SHA256 94fbf55444c832c0f8ce55850ac98c1e6e9a1c827c563d0f75bef9798ca39571
MD5 83d794efcfd9137aef6b9e9a7316b1c8
BLAKE2b-256 0e8b28fbbf66f0f107cfae078a5716a3992b945a28e0aa77154e6f0ba6517b77

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 file

0.1.2

1 file

0.1.0

1 file

Supported by

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