arabic-reshaper


Namearabic-reshaper JSON
Version 3.0.0 PyPI version JSON
download
home_pagehttps://github.com/mpcabd/python-arabic-reshaper/
SummaryReconstruct Arabic sentences to be used in applications that do not support Arabic
upload_time2023-01-10 14:40:00
maintainerAbdullah Diab
docs_urlNone
authorAbdullah Diab
requires_python
licenseMIT
keywords arabic shaping reshaping reshaper
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            ## Python Arabic Reshaper

[![Build Status](https://app.travis-ci.com/mpcabd/python-arabic-reshaper.svg?branch=master)](https://app.travis-ci.com/mpcabd/python-arabic-reshaper)

Reconstruct Arabic sentences to be used in applications that don't support
Arabic script.

Works with Python 3.x

## Description

Arabic script is very special with two essential features:

1. It is written from right to left.
2. The characters change shape according to their surrounding characters.

So when you try to print text written in Arabic script in an application
– or a library – that doesn’t support Arabic you’re pretty likely to end up
with something that looks like this:

![Arabic text written from left to right with no reshaping](http://mpcabd.xyz/wp-content/uploads/2012/05/arabic-1.png)

We have two problems here, first, the characters are in the isolated form,
which means that every character is rendered regardless of its surroundings,
and second is that the text is written from left to right.

To solve the latter issue all we have to do is to use the
[Unicode bidirectional algorithm](http://unicode.org/reports/tr9/), which is
implemented purely in Python in
[python-bidi](https://github.com/MeirKriheli/python-bidi).
If you use it you’ll end up with something that looks like this:

![Arabic text written from right to left with no reshaping](http://mpcabd.xyz/wp-content/uploads/2012/05/arabic-6.png)

The only issue left to solve is to reshape those characters and replace them
with their correct shapes according to their surroundings. Using this library
helps with the reshaping so we can get the proper result like this:

![Arabic text written from right to left with reshaping](http://mpcabd.xyz/wp-content/uploads/2012/05/arabic-3.png)

## Installation

    pip install --upgrade arabic-reshaper

If you're using Anaconda you can use

    conda install -c mpcabd arabic-reshaper

## Usage

```python
import arabic_reshaper

text_to_be_reshaped = 'اللغة العربية رائعة'
reshaped_text = arabic_reshaper.reshape(text_to_be_reshaped)
```

### Example using PIL Image

PIL Image does not support reshaping out of the box, so to draw Arabic text on an `Image` instance you would need to reshape
the text for sure.

For this example to work you need to run `pip install --upgrade arabic-reshaper python-bidi pillow`

```python

import arabic_reshaper

text_to_be_reshaped = 'اللغة العربية رائعة'
reshaped_text = arabic_reshaper.reshape(text_to_be_reshaped)

# At this stage the text is reshaped, all letters are in their correct form
# based on their surroundings, but if you are going to print the text in a
# left-to-right context, which usually happens in libraries/apps that do not
# support Arabic and/or right-to-left text rendering, then you need to use
# get_display from python-bidi.
# Note that this is optional and depends on your usage of the reshaped text.

from bidi.algorithm import get_display
bidi_text = get_display(reshaped_text)

# At this stage the text in bidi_text can be easily rendered in any library
# that doesn't support Arabic and/or right-to-left, so use it as you'd use
# any other string. For example if you're using PIL.ImageDraw.text to draw
# text over an image you'd just use it like this...

from PIL import Image, ImageDraw, ImageFont

# We load Arial since it's a well known font that supports Arabic Unicode
font = ImageFont.truetype('Arial', 40)

image = Image.new('RGBA', (800, 600), (255,255,255,0))
image_draw = ImageDraw.Draw(image)
image_draw.text((10,10), bidi_text, fill=(255,255,255,128), font=font)

# Now the text is rendered properly on the image, you can save it to a file or just call `show` to see it working
image.show()

# For more details on PIL.Image and PIL.ImageDraw check the documentation
# See http://pillow.readthedocs.io/en/5.1.x/reference/ImageDraw.html?#PIL.ImageDraw.PIL.ImageDraw.Draw.text

```

## Settings

You can configure the reshaper to your preferences, it has the following
settings defined:

* `language` (Default: `'Arabic'`): Ignored, the reshaper works with Arabic,
Farsi, and Urdu, and most probably all other languages that use Arabic script.
* `support_ligatures` (Default: `True`): When this is set to `False`, the
reshaper will not replace any ligatures, otherwise it will replace enabled
ligatures.
* `delete_harakat` (Default: `True`): When this is set to `False` the reshaper
will not delete the harakat from the text, this will result in them showing up
in the reshaped text, you should enable this option if you are going to pass
the reshaped text to `bidi.algorithm.get_display` because it will reverse the
text and you'd end up with harakat applied to the next letter instead of the
previous letter.
* `delete_tatweel` (Default `False`): When this is set to `True` the reshaper
will delete the Tatweel character (U+0640) from the text before reshaping, this
can be useful when you want to support ligatures and don't care about Tatweel
getting deleted.
* `shift_harakat_position` (Default `False`): Whether to shift the Harakat
(Tashkeel) one position so they appear correctly when string is reversed, this
might solve the problem of Tashkeel in some systems, although for `PIL.Image`
for example, this is not needed.
* `support_zwj` (Default `True`): Whether to support ZWJ (`U+200D`) or not.
* `use_unshaped_instead_of_isolated` (Default `False`): Use unshaped form
instead of isolated form, useful in some fonts that are missing the isolated
form of letters.

Besides the settings above, you can enable/disable supported ligatures. For a
full list of supported ligatures and their default status check the file
[default-config.ini](https://github.com/mpcabd/python-arabic-reshaper/blob/32f7497aa24a68ab880d0248b21715928f0ce212/arabic_reshaper/default-config.ini).

There are multiple ways that you can configure the reshaper in, choose the one
that suits your deployment:

### Via ArabicReshaper instance `configuration`

Instead of directly using `arabic_reshaper.reshape` function, define an
instance of `arabic_reshaper.ArabicReshaper`, and pass your config dictionary
to its constructor's `configuration` parameter like this:

```python
from arabic_reshaper import ArabicReshaper
configuration = {
    'delete_harakat': False,
    'support_ligatures': True,
    'RIAL SIGN': True,  # Replace ر ي ا ل with ﷼
}
reshaper = ArabicReshaper(configuration=configuration)
text_to_be_reshaped = 'سعر المنتج ١٥٠ ر' + 'يال'  # had to split the string for display
reshaped_text = reshaper.reshape(text_to_be_reshaped)
```

### Via ArabicReshaper instance `configuration_file`

You can separte the configuration from your code, by copying the file
[default-config.ini](default-config.ini) and change its settings,
then save it somewhere in your project, and then you can tell the reshaper
to use your new config file, just pass the path to your config file to its
constructor's `configuration_file` parameter like this:

```python
from arabic_reshaper import ArabicReshaper
reshaper = ArabicReshaper(configuration_file='/path/to/your/config.ini')
text_to_be_reshaped = 'سعر المنتج ١٥٠ ر' + 'يال'  # had to split the string for display
reshaped_text = reshaper.reshape(text_to_be_reshaped)
```

Where in you `config.ini` you can have something like this:

```
[ArabicReshaper]
delete_harakat = no
support_ligatures = yes
RIAL SIGN = yes
```

### Via `PYTHON_ARABIC_RESHAPER_CONFIGURATION_FILE` environment variable

Instead of having to rewrite your old code to configure it like above, you can
define an environment variable with the name
`PYTHON_ARABIC_RESHAPER_CONFIGURATION_FILE` and in its value put the full path
to the configuration file. This way the reshape function will pick it
automatically, and you won't have to change your old code.

## Settings based on a TrueType® font

If you intend to render the text in a TrueType® font, you can tell the library
to generate its configuration by reading the font file to figure out what's
supported in the font and what's not.

To use this feature you need to install the library with an extra option
(not necessary when you install it with conda):

    pip install --upgrade arabic-reshaper[with-fonttools]

Then you can use the reshaper like this:

```python
import arabic_reshaper

reshaper = arabic_reshaper.ArabicReshaper(
    arabic_reshaper.config_for_true_type_font(
        '/path/to/true-type-font.ttf',
        arabic_reshaper.ENABLE_ALL_LIGATURES
    )
)
```

This will parse the font file, and figure out what ligatures it supports and enable them,
as well as whether it has isolated forms or `use_unshaped_instead_of_isolated` should be
enabled.

The second parameter to `config_for_true_type_font` can be one of

- `ENABLE_NO_LIGATURES`
- `ENABLE_SENTENCES_LIGATURES`
- `ENABLE_WORDS_LIGATURES`
- `ENABLE_LETTERS_LIGATURES`
- `ENABLE_ALL_LIGATURES` (default)

which controls what ligatures to look for, depending on your usage,
see [default-config.ini](default-config.ini) to know what ligatures are there.

## Tashkeel/Harakat issue

[Harakat or Tashkeel](http://en.wikipedia.org/wiki/Arabic_diacritics#Tashkil_.28marks_used_as_phonetic_guides.29)
might not show up properly in their correct place, depending on the application
or the library that is doing the rendering for you, so you might want to enable
the `shift_harakat_position` option if you face this problem.

## License

This work is licensed under
[MIT License](https://opensource.org/licenses/MIT).

## Demo

Online Arabic Reshaper: http://pydj.mpcabd.xyz/arabic-reshaper/

## Download

https://github.com/mpcabd/python-arabic-reshaper/tarball/master

## Version History

### 3.0.0
* Stop supporting Python 2.7
* Remove dependency on `future`. See #88.

### 2.1.4

* Fix unparseable version bound for `fonttools` under Python 2

### 2.1.3

* Remove dependency on `__version__.py` and `default-config.ini` files, as they were causing problems for people who package their apps using pyinstaller or buildozer.

### 2.1.1

* Fix a warning. See #57. Thanks @fbernhart

### 2.1.0

* Added support for settings based on a TrueType® font

### 2.0.14

* New option `use_unshaped_instead_of_isolated` to get around some fonts missing the isolated form for letters.

### 2.0.13

**BROKEN** please make sure not to use this version.

### 2.0.12

* Updated letters and ligatures
* New option `shift_harakat_position` to try to get around the Tashkeel problem

### 2.0.11

* Proper support for ZWJ

### 2.0.10

* Fix Shadda ligatures

### 2.0.9

* Added support for ZWJ (Zero-width Joiner) (U+200D)

### 2.0.8

* Added `delete_tatweel`
* Added more test cases

### 2.0.7

* Fix tests for Python 2.7

### 2.0.6

* Fixed a bug with Harakat breaking the reshaping
* Wrote two small unit tests, more to come
* Moved letters and ligatures to separate files for readability/maintainability
* Moved package to its own folder for readability/maintainability

### 2.0.5

Fix error message formatting

### 2.0.4

Fix error message formatting

### 2.0.3

Use `Exception` instead of `Error`.

### 2.0.2

Use `pkg_resources.resource_filename` instead of depending on `__file__` to access `default-config.ini`.

### 2.0.1

Include default-config.ini in setup.py

### 2.0.0

* Totally rewrote the code;
* Faster and better performance;
* Added the ability to configure and customise the reshaper.

### 1.0.1

* New glyphs for Farsi;
* Added setup.py;
* Bugfixes.

### 1.0

* Ported [Better Arabic Reshaper](https://github.com/agawish/Better-Arabic-Reshaper/)
to Python.

## Contact

Abdullah Diab (mpcabd)
Email:  mpcabd@gmail.com
Blog:   http://mpcabd.xyz

For more info visit my blog
[post here](http://mpcabd.xyz/python-arabic-text-reshaper/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mpcabd/python-arabic-reshaper/",
    "name": "arabic-reshaper",
    "maintainer": "Abdullah Diab",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "mpcabd@gmail.com",
    "keywords": "arabic shaping reshaping reshaper",
    "author": "Abdullah Diab",
    "author_email": "mpcabd@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/29/27/9f488e21f87fd8b7ff3b52c372b9510c619ecf1398e4ba30d5f4becc7d86/arabic_reshaper-3.0.0.tar.gz",
    "platform": "ALL",
    "description": "## Python Arabic Reshaper\n\n[![Build Status](https://app.travis-ci.com/mpcabd/python-arabic-reshaper.svg?branch=master)](https://app.travis-ci.com/mpcabd/python-arabic-reshaper)\n\nReconstruct Arabic sentences to be used in applications that don't support\nArabic script.\n\nWorks with Python 3.x\n\n## Description\n\nArabic script is very special with two essential features:\n\n1. It is written from right to left.\n2. The characters change shape according to their surrounding characters.\n\nSo when you try to print text written in Arabic script in an application\n\u2013 or a library \u2013 that doesn\u2019t support Arabic you\u2019re pretty likely to end up\nwith something that looks like this:\n\n![Arabic text written from left to right with no reshaping](http://mpcabd.xyz/wp-content/uploads/2012/05/arabic-1.png)\n\nWe have two problems here, first, the characters are in the isolated form,\nwhich means that every character is rendered regardless of its surroundings,\nand second is that the text is written from left to right.\n\nTo solve the latter issue all we have to do is to use the\n[Unicode bidirectional algorithm](http://unicode.org/reports/tr9/), which is\nimplemented purely in Python in\n[python-bidi](https://github.com/MeirKriheli/python-bidi).\nIf you use it you\u2019ll end up with something that looks like this:\n\n![Arabic text written from right to left with no reshaping](http://mpcabd.xyz/wp-content/uploads/2012/05/arabic-6.png)\n\nThe only issue left to solve is to reshape those characters and replace them\nwith their correct shapes according to their surroundings. Using this library\nhelps with the reshaping so we can get the proper result like this:\n\n![Arabic text written from right to left with reshaping](http://mpcabd.xyz/wp-content/uploads/2012/05/arabic-3.png)\n\n## Installation\n\n    pip install --upgrade arabic-reshaper\n\nIf you're using Anaconda you can use\n\n    conda install -c mpcabd arabic-reshaper\n\n## Usage\n\n```python\nimport arabic_reshaper\n\ntext_to_be_reshaped = '\u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0631\u0627\u0626\u0639\u0629'\nreshaped_text = arabic_reshaper.reshape(text_to_be_reshaped)\n```\n\n### Example using PIL Image\n\nPIL Image does not support reshaping out of the box, so to draw Arabic text on an `Image` instance you would need to reshape\nthe text for sure.\n\nFor this example to work you need to run `pip install --upgrade arabic-reshaper python-bidi pillow`\n\n```python\n\nimport arabic_reshaper\n\ntext_to_be_reshaped = '\u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0631\u0627\u0626\u0639\u0629'\nreshaped_text = arabic_reshaper.reshape(text_to_be_reshaped)\n\n# At this stage the text is reshaped, all letters are in their correct form\n# based on their surroundings, but if you are going to print the text in a\n# left-to-right context, which usually happens in libraries/apps that do not\n# support Arabic and/or right-to-left text rendering, then you need to use\n# get_display from python-bidi.\n# Note that this is optional and depends on your usage of the reshaped text.\n\nfrom bidi.algorithm import get_display\nbidi_text = get_display(reshaped_text)\n\n# At this stage the text in bidi_text can be easily rendered in any library\n# that doesn't support Arabic and/or right-to-left, so use it as you'd use\n# any other string. For example if you're using PIL.ImageDraw.text to draw\n# text over an image you'd just use it like this...\n\nfrom PIL import Image, ImageDraw, ImageFont\n\n# We load Arial since it's a well known font that supports Arabic Unicode\nfont = ImageFont.truetype('Arial', 40)\n\nimage = Image.new('RGBA', (800, 600), (255,255,255,0))\nimage_draw = ImageDraw.Draw(image)\nimage_draw.text((10,10), bidi_text, fill=(255,255,255,128), font=font)\n\n# Now the text is rendered properly on the image, you can save it to a file or just call `show` to see it working\nimage.show()\n\n# For more details on PIL.Image and PIL.ImageDraw check the documentation\n# See http://pillow.readthedocs.io/en/5.1.x/reference/ImageDraw.html?#PIL.ImageDraw.PIL.ImageDraw.Draw.text\n\n```\n\n## Settings\n\nYou can configure the reshaper to your preferences, it has the following\nsettings defined:\n\n* `language` (Default: `'Arabic'`): Ignored, the reshaper works with Arabic,\nFarsi, and Urdu, and most probably all other languages that use Arabic script.\n* `support_ligatures` (Default: `True`): When this is set to `False`, the\nreshaper will not replace any ligatures, otherwise it will replace enabled\nligatures.\n* `delete_harakat` (Default: `True`): When this is set to `False` the reshaper\nwill not delete the harakat from the text, this will result in them showing up\nin the reshaped text, you should enable this option if you are going to pass\nthe reshaped text to `bidi.algorithm.get_display` because it will reverse the\ntext and you'd end up with harakat applied to the next letter instead of the\nprevious letter.\n* `delete_tatweel` (Default `False`): When this is set to `True` the reshaper\nwill delete the Tatweel character (U+0640) from the text before reshaping, this\ncan be useful when you want to support ligatures and don't care about Tatweel\ngetting deleted.\n* `shift_harakat_position` (Default `False`): Whether to shift the Harakat\n(Tashkeel) one position so they appear correctly when string is reversed, this\nmight solve the problem of Tashkeel in some systems, although for `PIL.Image`\nfor example, this is not needed.\n* `support_zwj` (Default `True`): Whether to support ZWJ (`U+200D`) or not.\n* `use_unshaped_instead_of_isolated` (Default `False`): Use unshaped form\ninstead of isolated form, useful in some fonts that are missing the isolated\nform of letters.\n\nBesides the settings above, you can enable/disable supported ligatures. For a\nfull list of supported ligatures and their default status check the file\n[default-config.ini](https://github.com/mpcabd/python-arabic-reshaper/blob/32f7497aa24a68ab880d0248b21715928f0ce212/arabic_reshaper/default-config.ini).\n\nThere are multiple ways that you can configure the reshaper in, choose the one\nthat suits your deployment:\n\n### Via ArabicReshaper instance `configuration`\n\nInstead of directly using `arabic_reshaper.reshape` function, define an\ninstance of `arabic_reshaper.ArabicReshaper`, and pass your config dictionary\nto its constructor's `configuration` parameter like this:\n\n```python\nfrom arabic_reshaper import ArabicReshaper\nconfiguration = {\n    'delete_harakat': False,\n    'support_ligatures': True,\n    'RIAL SIGN': True,  # Replace \u0631 \u064a \u0627 \u0644 with \ufdfc\n}\nreshaper = ArabicReshaper(configuration=configuration)\ntext_to_be_reshaped = '\u0633\u0639\u0631 \u0627\u0644\u0645\u0646\u062a\u062c \u0661\u0665\u0660 \u0631' + '\u064a\u0627\u0644'  # had to split the string for display\nreshaped_text = reshaper.reshape(text_to_be_reshaped)\n```\n\n### Via ArabicReshaper instance `configuration_file`\n\nYou can separte the configuration from your code, by copying the file\n[default-config.ini](default-config.ini) and change its settings,\nthen save it somewhere in your project, and then you can tell the reshaper\nto use your new config file, just pass the path to your config file to its\nconstructor's `configuration_file` parameter like this:\n\n```python\nfrom arabic_reshaper import ArabicReshaper\nreshaper = ArabicReshaper(configuration_file='/path/to/your/config.ini')\ntext_to_be_reshaped = '\u0633\u0639\u0631 \u0627\u0644\u0645\u0646\u062a\u062c \u0661\u0665\u0660 \u0631' + '\u064a\u0627\u0644'  # had to split the string for display\nreshaped_text = reshaper.reshape(text_to_be_reshaped)\n```\n\nWhere in you `config.ini` you can have something like this:\n\n```\n[ArabicReshaper]\ndelete_harakat = no\nsupport_ligatures = yes\nRIAL SIGN = yes\n```\n\n### Via `PYTHON_ARABIC_RESHAPER_CONFIGURATION_FILE` environment variable\n\nInstead of having to rewrite your old code to configure it like above, you can\ndefine an environment variable with the name\n`PYTHON_ARABIC_RESHAPER_CONFIGURATION_FILE` and in its value put the full path\nto the configuration file. This way the reshape function will pick it\nautomatically, and you won't have to change your old code.\n\n## Settings based on a TrueType\u00ae font\n\nIf you intend to render the text in a TrueType\u00ae font, you can tell the library\nto generate its configuration by reading the font file to figure out what's\nsupported in the font and what's not.\n\nTo use this feature you need to install the library with an extra option\n(not necessary when you install it with conda):\n\n    pip install --upgrade arabic-reshaper[with-fonttools]\n\nThen you can use the reshaper like this:\n\n```python\nimport arabic_reshaper\n\nreshaper = arabic_reshaper.ArabicReshaper(\n    arabic_reshaper.config_for_true_type_font(\n        '/path/to/true-type-font.ttf',\n        arabic_reshaper.ENABLE_ALL_LIGATURES\n    )\n)\n```\n\nThis will parse the font file, and figure out what ligatures it supports and enable them,\nas well as whether it has isolated forms or `use_unshaped_instead_of_isolated` should be\nenabled.\n\nThe second parameter to `config_for_true_type_font` can be one of\n\n- `ENABLE_NO_LIGATURES`\n- `ENABLE_SENTENCES_LIGATURES`\n- `ENABLE_WORDS_LIGATURES`\n- `ENABLE_LETTERS_LIGATURES`\n- `ENABLE_ALL_LIGATURES` (default)\n\nwhich controls what ligatures to look for, depending on your usage,\nsee [default-config.ini](default-config.ini) to know what ligatures are there.\n\n## Tashkeel/Harakat issue\n\n[Harakat or Tashkeel](http://en.wikipedia.org/wiki/Arabic_diacritics#Tashkil_.28marks_used_as_phonetic_guides.29)\nmight not show up properly in their correct place, depending on the application\nor the library that is doing the rendering for you, so you might want to enable\nthe `shift_harakat_position` option if you face this problem.\n\n## License\n\nThis work is licensed under\n[MIT License](https://opensource.org/licenses/MIT).\n\n## Demo\n\nOnline Arabic Reshaper: http://pydj.mpcabd.xyz/arabic-reshaper/\n\n## Download\n\nhttps://github.com/mpcabd/python-arabic-reshaper/tarball/master\n\n## Version History\n\n### 3.0.0\n* Stop supporting Python 2.7\n* Remove dependency on `future`. See #88.\n\n### 2.1.4\n\n* Fix unparseable version bound for `fonttools` under Python 2\n\n### 2.1.3\n\n* Remove dependency on `__version__.py` and `default-config.ini` files, as they were causing problems for people who package their apps using pyinstaller or buildozer.\n\n### 2.1.1\n\n* Fix a warning. See #57. Thanks @fbernhart\n\n### 2.1.0\n\n* Added support for settings based on a TrueType\u00ae font\n\n### 2.0.14\n\n* New option `use_unshaped_instead_of_isolated` to get around some fonts missing the isolated form for letters.\n\n### 2.0.13\n\n**BROKEN** please make sure not to use this version.\n\n### 2.0.12\n\n* Updated letters and ligatures\n* New option `shift_harakat_position` to try to get around the Tashkeel problem\n\n### 2.0.11\n\n* Proper support for ZWJ\n\n### 2.0.10\n\n* Fix Shadda ligatures\n\n### 2.0.9\n\n* Added support for ZWJ (Zero-width Joiner) (U+200D)\n\n### 2.0.8\n\n* Added `delete_tatweel`\n* Added more test cases\n\n### 2.0.7\n\n* Fix tests for Python 2.7\n\n### 2.0.6\n\n* Fixed a bug with Harakat breaking the reshaping\n* Wrote two small unit tests, more to come\n* Moved letters and ligatures to separate files for readability/maintainability\n* Moved package to its own folder for readability/maintainability\n\n### 2.0.5\n\nFix error message formatting\n\n### 2.0.4\n\nFix error message formatting\n\n### 2.0.3\n\nUse `Exception` instead of `Error`.\n\n### 2.0.2\n\nUse `pkg_resources.resource_filename` instead of depending on `__file__` to access `default-config.ini`.\n\n### 2.0.1\n\nInclude default-config.ini in setup.py\n\n### 2.0.0\n\n* Totally rewrote the code;\n* Faster and better performance;\n* Added the ability to configure and customise the reshaper.\n\n### 1.0.1\n\n* New glyphs for Farsi;\n* Added setup.py;\n* Bugfixes.\n\n### 1.0\n\n* Ported [Better Arabic Reshaper](https://github.com/agawish/Better-Arabic-Reshaper/)\nto Python.\n\n## Contact\n\nAbdullah Diab (mpcabd)\nEmail:  mpcabd@gmail.com\nBlog:   http://mpcabd.xyz\n\nFor more info visit my blog\n[post here](http://mpcabd.xyz/python-arabic-text-reshaper/)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Reconstruct Arabic sentences to be used in applications that do not support Arabic",
    "version": "3.0.0",
    "project_urls": {
        "Download": "https://github.com/mpcabd/python-arabic-reshaper/tarball/master",
        "Homepage": "https://github.com/mpcabd/python-arabic-reshaper/"
    },
    "split_keywords": [
        "arabic",
        "shaping",
        "reshaping",
        "reshaper"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "44fbe20b45d81d74d810b01bff408baf8af04abf1d55a1a289c8395ad0919a7c",
                "md5": "2df725c8aa176bc13a736c82bee0aace",
                "sha256": "3f71d5034bb694204a239a6f1ebcf323ac3c5b059de02259235e2016a1a5e2dc"
            },
            "downloads": -1,
            "filename": "arabic_reshaper-3.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2df725c8aa176bc13a736c82bee0aace",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 20364,
            "upload_time": "2023-01-10T14:39:58",
            "upload_time_iso_8601": "2023-01-10T14:39:58.690899Z",
            "url": "https://files.pythonhosted.org/packages/44/fb/e20b45d81d74d810b01bff408baf8af04abf1d55a1a289c8395ad0919a7c/arabic_reshaper-3.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "29279f488e21f87fd8b7ff3b52c372b9510c619ecf1398e4ba30d5f4becc7d86",
                "md5": "aea742b9cb185f4b0a1a41c9722f2b51",
                "sha256": "ffcd13ba5ec007db71c072f5b23f420da92ac7f268512065d49e790e62237099"
            },
            "downloads": -1,
            "filename": "arabic_reshaper-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "aea742b9cb185f4b0a1a41c9722f2b51",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 23420,
            "upload_time": "2023-01-10T14:40:00",
            "upload_time_iso_8601": "2023-01-10T14:40:00.423757Z",
            "url": "https://files.pythonhosted.org/packages/29/27/9f488e21f87fd8b7ff3b52c372b9510c619ecf1398e4ba30d5f4becc7d86/arabic_reshaper-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-10 14:40:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mpcabd",
    "github_project": "python-arabic-reshaper",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "arabic-reshaper"
}
        
Elapsed time: 0.83897s