mpcabd / python-arabic-reshaper

Reconstruct Arabic sentences to be used in applications that don't support Arabic
MIT License
395 stars 81 forks source link

Issue with Arabic Typesetting font #48

Closed Swreaq closed 3 years ago

Swreaq commented 3 years ago

Hi there,

I'm facing an issue with this script, some letter will appear as symbol.

I tried to change the font and it work, but using the "Arabic Typesetting" there will be symbols always!

image image I have attached the font for further investigation

ArabicTypesetting .zip

Thanks,

Swreaq commented 3 years ago

FYI, I fix it after some testing with the deafult config!

this settings will get the job done:

[ArabicReshaper]
# Supported languages are: [Arabic, ArabicV2, Kurdish]
# More languages might be supported soon.
# `Arabic` is default and recommended to work in most of the cases and supports (Arabic, Urdu and Farsi)
# `ArabicV2` is only to be used with certain font that you run into missing chars
# `Kurdish` if you are using Kurdish Sarchia font is recommended, work with both unicode and classic Arabic-Kurdish keybouard 
language = Arabic

# Whether to delete the Harakat (Tashkeel) before reshaping or not.
delete_harakat = no

# Whether to shift the Harakat (Tashkeel) one position so they appear correctly when string is reversed
shift_harakat_position = yes

# Whether to delete the Tatweel (U+0640) before reshaping or not.
delete_tatweel = no

# Whether to support ZWJ (U+200D) or not.
support_zwj = yes

# Use unshaped form instead of isolated form.
use_unshaped_instead_of_isolated = yes

# Whether to use ligatures or not.
# Serves as a shortcut to disable all ligatures.
support_ligatures = yes