Skip to main content

Kurdish Language Library for converting characters and digits in Persian, English and Arabic to Kurdish and vice versa.

Project description

Kurdish

Welcome to Kurdish Language Library - a Python Library for converting characters and Digits in Persian, English and Arabic to Kurdish and vice versa.

Installation

Installing the module:

pip install Kurdish


How to use

Converting Characters and Digits

import Kurdish
print('Convert English characters to Kurdish:', Kurdish.convert_En_Char_to_Ku('bexSyn le gwnah w heLe CawpoSyne! \n to Con heReSet be uagry pRtyne? \n bmbexSy be nwYjanewe, kesman le kese \n be gwnahewe bmbexSe, delYm bexSyne'))
  • Converting Arabic Characters to Kurdish:
import Kurdish
print('Convert Arabic characters to Kurdish:', Kurdish.convert_Ar_Char_to_Ku('“يقول نيتشه: "الدين ثورة العبيد". ويقول ماركس: "الدين أفيون الشعوب". وفي الحقيقة إنّ الدين ثورة وأفيون في آن واحد. فهو عند المترفين أفيون وعند الأنبياء ثورة. وكل دين يبدأ على يد النبي ثورة ثم يستحوذ المترفون عليه بعد ذلك فيحولونه إلى أفيون. وعندئذ يظهر نبي جديد فيعيدها شعواء مرة أخرى.”― علي الوردي, مهزلة العقل البشري '))
  • Converting Kurdish Characters to English:
import Kurdish
print('Convert Kurdish characters to English:', Kurdish.convert_Ku_Char_to_En('بەخشین لە گوناه و هەڵە چاوپۆشینە! \n  \nتۆ چۆن هەڕەشەت بە ئاگری پڕتینە?\n بمبەخشی بە نوێژانەوە, کەسمان لە کەسە\n بە گوناهەوە بمبەخشە, دەلێم بەخشینە'))
  • Converting Persian (Farsi) Digits to Kurdish:
import Kurdish
print('Convert Persian digits to Kurdish:', Kurdish.convert_Fa_Dig_to_Ku('٠١٢٣۴۵۶٧٨٩'))
  • Converting Kurdish Digits to Persian (Farsi):
import Kurdish
print('Convert Kurdish digits to Persian:', Kurdish.convert_Ku_Dig_to_Fa('٠١٢٣٤٥٦٧٨٩'))
  • Converting English Digits to Kurdish:
import Kurdish
print('Convert English digits to Kurdish:', Kurdish.convert_En_Dig_to_Ku('0123456789'))
  • Converting Kurdish Digits to English:
import Kurdish
print('Convert Kurdish digits to English:', Kurdish.convert_Ku_Dig_to_En('٠١٢٣٤٥٦٧٨٩'))

Kurdish Unicode Characters

Basic Latin پیت یونیکۆد
u ئ U+0626
a ا U+0627
b ب U+0628
p پ U+067E
t ت U+062A
c ج U+062C
C چ U+0686
I ح U+062D
x خ U+062E
d د U+062F
r ر U+0631
R ڕ U+0695
z ز U+0632
j ژ U+0698
s س U+0633
S ش U+0634
i ع U+0639
G غ U+063A
f ف U+0641
v ڤ U+06A4
q ق U+0642
k ک U+06A9
g گ U+06AF
l ل U+0644
L ڵ U+06B5
m م U+0645
n ن U+0646
w و U+0648
o ۆ U+06C6
h ھ U+0647
e ە U+06D5
y ی U+06CC
Y ێ U+06CE

Kurdish Unicode Digits

یونیکۆد ژمارە
U+0660 ٠
U+0661 ١
U+0662 ٢
U+0663 ٣
U+0664 ٤
U+0665 ٥
U+0666 ٦
U+0667 ٧
U+0668 ٨
U+0669 ٩

Contact me

I hope you like this library. Feel free to reach out if you have questions or if you want to contribute in any way:

License

Kurdish Language Library is available under the MIT license.

Project details


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
Kurdish-1.0.7-py3-none-any.whl (4.9 kB) Copy SHA256 hash SHA256 Wheel py3 Aug 26, 2018
Kurdish-1.0.7.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None Aug 26, 2018

Supported by

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