Skip to main content

Simple text processing tools in persian

Project description

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

Project details


Release history Release notifications

This version
History Node

0.1.3

History Node

0.1.2

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
neviseh-0.1.3.tar.gz (6.7 kB) Copy SHA256 hash SHA256 Source None Feb 28, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page