Skip to content

Releases: mpcabd/python-arabic-reshaper

v3.0.1

Choose a tag to compare

@mpcabd mpcabd released this 28 Apr 13:52
ed35ce4

Some cleanup and refactoring, with a slight change in behaviour when an error occurs. See README.md for more details

v3.0.0

Choose a tag to compare

@mpcabd mpcabd released this 10 Jan 14:42

No more Python 2.x support.

v2.1.4

Choose a tag to compare

@mpcabd mpcabd released this 21 Sep 21:38

Fixed fonttools requirement for Python 2.

Fixed a warning

Choose a tag to compare

@mpcabd mpcabd released this 04 Nov 18:35

See #57

v2.1.0 - config_for_true_type_font

Choose a tag to compare

@mpcabd mpcabd released this 27 Jun 19:57
e27f14f

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:

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 to know what ligatures are there.

v2.0.15

Choose a tag to compare

@mpcabd mpcabd released this 19 Jun 15:43
67b8709

Same as v2.0.14 but different license.

New option `use_unshaped_instead_of_isolated`

Choose a tag to compare

@mpcabd mpcabd released this 24 Nov 16:20

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

v2.0.11

Choose a tag to compare

@mpcabd mpcabd released this 21 Nov 20:09
Proper support for ZWJ

v2.0.10

Choose a tag to compare

@mpcabd mpcabd released this 20 Nov 21:51
Fix Shadda ligatures

v2.0.8

Choose a tag to compare

@mpcabd mpcabd released this 17 Jun 18:11
More tests + delete_tatweel

* Add `delete_tatweel`
* Add more test cases