Package: kurdish
KurdishWelcome toKurdish Language Library- aPythonlibrary for transliteration from Arabic-based Kurdish to Latin one. It can also be used for converting characters and digits in Persian, English and Arabic to Kurdish and vice versa.InstallationHow to install the module:pip install Kurdishfor python 3 in Linux:pip3 install KurdishHow to install Python modulesPellk vs. KurdishThere are some small issues withPellkwhich in Kurdish tried to be fixed and provide much more appropriate transliterated text.Arabic-based KurdishPellk TransliterationKurdish TransliterationنۆرمبێرگNormibêrgNorimbêrgدەستگیرdestigîrdestgîrرابردووRabridûRabirdûفەڕەنسیەکانFerrenisyekanFeŕensyekanکورتترەkurtitrekurttreپێکردpêkridpêkirdبە KNNی راگەیاندbe KiNNî rageyandbe KNNî ŕageyandبونیادنراوەbunyadinrawebunyadniraweHow to useTransliteration Arabic-based Kurdish to Latin-based Kurdishfromkurdishimportkutext='ئەسیری بسکی ئاڵۆزی کچە کوردێکی نەشمیلم، تەماشا کەن چ سەیرێکە بەدەستی دیلەوە دیلم. (هێمن موکریانی)'print(ku.Hemwar().transliterate(text))OUTPUT:Esîrîbiskîaĺozîkçekurdêkîneşmîlm,temaşakençiseyrêkebedestîdîlewedîlm.(hêminmukiryanî)Converting Characters and DigitsConverting English Characters to Arabic-based Kurdish Based onKRG Unicode System:The major difference with KRG System is ( ھ = U+06BE ARABIC LETTER HEH DOACHASHMEE ) letter which normally in Arabic-based writing system ( ه = U+0647 ARABIC LETTER HEH ) alternatively has been used. For making the exact shape, you can use ( ه = U+0647 ARABIC LETTER HEH ) + ( ـ = U+0640 ARABIC TATWEEL ). The result will be ( هـ ).fromkurdishimportkuprint('Convert English characters to Kurdish:')print(ku.Hemwar().En_Char_to_Ku('bexSyn le gwnah w heLe CawpoSyne!\nto Con heReSet be uagry pRtyne?\nbmbexSy be nwYjanewe, kesman le kese\nbe gwnahewe bmbexSe, delYm bexSyne'))OUTPUT:ConvertEnglishcharacterstoKurdish:بەخشینلەگوناهوهەڵەچاوپۆشینە!تۆچۆنهەڕەشەتبەئاگریپڕتینە؟بمبەخشیبەنوێژانەوە،کەسمانلەکەسە،بەگوناهەوەبمبەخشە،دەلێمبەخشینەConverting Arabic Characters to Kurdish:fromkurdishimportkuprint('Convert Arabic characters to Kurdish:')print(ku.Hemwar().Ar_Char_to_Ku("ك، ي = كوردي  /  ك = كاف"))OUTPUT:ConvertArabiccharacterstoKurdish:ک،ی=کوردی/ک=کافConverting Arabic-based Kurdish Characters to English:fromkurdishimportkuprint('Convert Kurdish characters to English:')print(ku.Hemwar().Ku_Char_to_En('\nبەخشین لە گوناه و هەڵە چاوپۆشینە!\nتۆ چۆن هەڕەشەت بە ئاگری پڕتینە?\nبمبەخشی بە نوێژانەوە, کەسمان لە کەسە\nبە گوناهەوە بمبەخشە, دەلێم بەخشینە'))OUTPUT:ConvertKurdishcharacterstoEnglish:bexSynlegwnahwheLeCawpoSyne!toConheReSetbeuagrypRtyne?bmbexSybenwYjanewe,kesmanlekesebegwnahewebmbexSe,delYmbexSyneNote:This function has been used in some of my personal projects but still for some people can be useful!Getting Unicode code of any character or digit:fromkurdishimportkuprint('Getting Unicode code for instance: all Arabic specific characters\n')print(ku.Hemwar().getUniNum(ku.Hemwar.Ar_Special_chars))OUTPUT:GettingUnicodecodeforinstance:allArabicspecificcharacters1.ص=U+0635ARABICLETTERSAD2.ض=U+0636ARABICLETTERDAD3.ط=U+0637ARABICLETTERTAH4.ظ=U+0638ARABICLETTERZAH5.ذ=U+0630ARABICLETTERTHAL6.ي=U+064aARABICLETTERYEH7.ة=U+0629ARABICLETTERTEHMARBUTA8.ث=U+062bARABICLETTERTHEH9.ؤ=U+0624ARABICLETTERWAWWITHHAMZAABOVE10.أ=U+0623ARABICLETTERALEFWITHHAMZAABOVE11.إ=U+0625ARABICLETTERALEFWITHHAMZABELOW12.آ=U+0622ARABICLETTERALEFWITHMADDAABOVE13.ك=U+0643ARABICLETTERKAF14.ۀ=U+06c0ARABICLETTERHEHWITHYEHABOVE15.ى=U+0649ARABICLETTERALEFMAKSURAConversionhasbeencompletedsuccessfully.Getting all Arabic-based Kurdish Alphabet in a list:fromkurdishimportkuprint('Arabic-based Kurdish Alphabet: ')print(list(ku.Hemwar().ku_alphabet_Ar))OUTPUT:Arabic-basedKurdishAlphabet:['ئ','ا','ب','پ','ت','ج','چ','ح','خ','د','ر','ڕ','ز','ژ','س','ش','ع','غ','ف','ڤ','ق','ک','گ','ل','ڵ','م','ن','ه','ە','و','ۆ','و','و','ی','ێ']Getting all Latin-based Kurdish Alphabet in a list:fromkurdishimportkuprint('Latin-based Kurdish Alphabet: ')print(list(ku.Hemwar().ku_alphabet_La_uppercase))OUTPUT:Latin-basedKurdishAlphabet:['A','B','C','Ç','D','E','Ê','F','G','H','Ĥ','I','Î','J','K','L','Ĺ','M','N','O','P','Q','R','Ŕ','S','Ş','T','U','Û','V','W','X','Ẍ','Y','Z']Getting all Latin-based and Arabic-based Kurdish vowels in a list:fromkurdishimportkuprint('All Latin-based and Arabic-based Kurdish vowels:')print(list(ku.Hemwar().ku_all_V))OUTPUT:AllLatin-basedandArabic-basedKurdishvowels:['A','E','Ê','I','Î','O','U','Û','a','e','ê','i','î','o','u','û','ا','ە','و','ۆ','و','و','ی','ێ']Converting Persian (Farsi) Digits to Arabic-based Kurdish:fromkurdishimportkuprint('Convert Persian digits to Arabic-based Kurdish: ')print(ku.Hemwar().Fa_Digit_to_Ku('٠١٢٣۴۵۶٧٨٩'))OUTPUT:ConvertPersiandigitstoArabic-basedKurdish:٠١٢٣٤٥٦٧٨٩Converting Arabic-based Kurdish Digits to Persian (Farsi):fromkurdishimportkuprint('Convert Arabic-based Kurdish digits to Persian: ')print(ku.Hemwar().Ku_Digit_to_Fa('٠١٢٣٤٥٦٧٨٩'))OUTPUT:ConvertArabic-basedKurdishdigitstoPersian:۰۱۲۳۴۵۶۷۸۹Converting English Digits to Arabic-based Kurdish:fromkurdishimportkuprint('Convert English digits to Arabic-based Kurdish: ')print(ku.Hemwar().En_Digit_to_Ku('0123456789'))OUTPUT:ConvertEnglishdigitstoArabic-basedKurdish:٠١٢٣٤٥٦٧٨٩Converting Arabic-based Kurdish Digits to English:fromkurdishimportkuprint('Convert Arabic-based Kurdish digits to English: ')print(ku.Hemwar().Ku_Digit_to_En('٠١٢٣٤٥٦٧٨٩'))OUTPUT:ConvertArabic-basedKurdishdigitstoEnglish:0123456789Converting Ali-k style to unicodefromkurdishimportkutext='طوماني تيَدا نيية لة هةر دوو دنيا دا ئةركة طشتيةكان دةبنة هؤى خؤشةويستي، هؤى ثةرِينةوة لة تةنطذةكان، هؤى دةرباز بوون لة تووشيان، هؤى ثاراستني سةلامةتي طيان و جةستة و لة وتةيةكدا هؤى لةخؤ رازيكردني خوا و خةلَكي خوا و دلَنيابوون لة داهاتوو'print(ku.Hemwar().ali_k_to_uni(text))OUTPUT:گومانیتێدانییەلەهەردوودنیادائەرکەگشتیەکاندەبنەهۆیخۆشەویستی،هۆیپەڕینەوەلەتەنگژەکان،هۆیدەربازبوونلەتووشیان،هۆیپاراستنیسەلامەتیگیانوجەستەولەوتەیەکداهۆیلەخۆرازیکردنیخواوخەڵکیخواودڵنیابوونلەداهاتووArabic-based Kurdish Characters along with their Unicode EquivalentCharacterUnicode CodeئU+0626 ARABIC LETTER YEH WITH HAMZA ABOVEاU+0627 ARABIC LETTER ALEFبU+0628 ARABIC LETTER BEHپU+067e ARABIC LETTER PEHتU+062a ARABIC LETTER TEHجU+062c ARABIC LETTER JEEMچU+0686 ARABIC LETTER TCHEHحU+062d ARABIC LETTER HAHخU+062e ARABIC LETTER KHAHدU+062f ARABIC LETTER DALرU+0631 ARABIC LETTER REHڕU+0695 ARABIC LETTER REH WITH SMALL V BELOWزU+0632 ARABIC LETTER ZAINژU+0698 ARABIC LETTER JEHسU+0633 ARABIC LETTER SEENشU+0634 ARABIC LETTER SHEENعU+0639 ARABIC LETTER AINغU+063a ARABIC LETTER GHAINفU+0641 ARABIC LETTER FEHڤU+06a4 ARABIC LETTER VEHقU+0642 ARABIC LETTER QAFکU+06a9 ARABIC LETTER KEHEHگU+06af ARABIC LETTER GAFلU+0644 ARABIC LETTER LAMڵU+06b5 ARABIC LETTER LAM WITH SMALL VمU+0645 ARABIC LETTER MEEMنU+0646 ARABIC LETTER NOONهU+0647 ARABIC LETTER HEHەU+06d5 ARABIC LETTER AEوU+0648 ARABIC LETTER WAWۆU+06c6 ARABIC LETTER OEووU+0648 ARABIC LETTER WAW (X2) Vowel version of the letter is not defined yet. The same shape but doubled and different Unicode code should be dedicated.یU+06cc ARABIC LETTER FARSI YEHێU+06ce ARABIC LETTER YEH WITH SMALL VوConsonant version of the letter is not defined yet. The same shape but different Unicode code should be dedicated.یConsonant version of the letter is not defined yet. The same shape but different Unicode code should be dedicated.بزرۆکەBizroke, Which won't be written in the Arabic-based Kurdish writing System.Arabic-based Kurdish Digits along with their Unicode EquivalentDigitUnicode Code٠U+0660 ARABIC-INDIC DIGIT ZERO١U+0661 ARABIC-INDIC DIGIT ONE٢U+0662 ARABIC-INDIC DIGIT TWO٣U+0663 ARABIC-INDIC DIGIT THREE٤U+0664 ARABIC-INDIC DIGIT FOUR٥U+0665 ARABIC-INDIC DIGIT FIVE٦U+0666 ARABIC-INDIC DIGIT SIX٧U+0667 ARABIC-INDIC DIGIT SEVEN٨U+0668 ARABIC-INDIC DIGIT EIGHT٩U+0669 ARABIC-INDIC DIGIT NINELatin-based Kurdish Characters along with Unicode EquivalentCharacterUnicode CodeAU+0041 LATIN CAPITAL LETTER ABU+0042 LATIN CAPITAL LETTER BCU+0043 LATIN CAPITAL LETTER CÇU+00c7 LATIN CAPITAL LETTER C WITH CEDILLADU+0044 LATIN CAPITAL LETTER DEU+0045 LATIN CAPITAL LETTER EÊU+00ca LATIN CAPITAL LETTER E WITH CIRCUMFLEXFU+0046 LATIN CAPITAL LETTER FGU+0047 LATIN CAPITAL LETTER GHU+0048 LATIN CAPITAL LETTER HIU+0049 LATIN CAPITAL LETTER IÎU+00ce LATIN CAPITAL LETTER I WITH CIRCUMFLEXJU+004a LATIN CAPITAL LETTER JKU+004b LATIN CAPITAL LETTER KLU+004c LATIN CAPITAL LETTER LMU+004d LATIN CAPITAL LETTER MNU+004e LATIN CAPITAL LETTER NOU+004f LATIN CAPITAL LETTER OPU+0050 LATIN CAPITAL LETTER PQU+0051 LATIN CAPITAL LETTER QRU+0052 LATIN CAPITAL LETTER RSU+0053 LATIN CAPITAL LETTER SŞU+015e LATIN CAPITAL LETTER S WITH CEDILLATU+0054 LATIN CAPITAL LETTER TUU+0055 LATIN CAPITAL LETTER UÛU+00db LATIN CAPITAL LETTER U WITH CIRCUMFLEXVU+0056 LATIN CAPITAL LETTER VWU+0057 LATIN CAPITAL LETTER WXU+0058 LATIN CAPITAL LETTER XYU+0059 LATIN CAPITAL LETTER YZU+005a LATIN CAPITAL LETTER ZĤThis letter should be defined as an equivalent for ( ح ).RRR̂ (R + ̂ = [U+0052 LATIN CAPITAL LETTER R + U+0302 COMBINING CIRCUMFLEX ACCENT] ). No unique character is defined yet. The shape should be like ( R̂ ) but there is no single defined Unicode code. Note that in this module as a temporary character, we have been allocated Unicode Character ( Ŕ = U+0154 / ŕ = U+0155) to prevent the misuse of two (RR / rr)).LLL̂ (L + ̂ = [U+004c LATIN CAPITAL LETTER L + U+0302 COMBINING CIRCUMFLEX ACCENT] ). No unique character is defined yet. The shape should be like ( L̂ ) but there is no single defined Unicode code. Note that in this module as a temporary character, we have been allocated Unicode Character ( Ĺ = U+0139 / ĺ = U+013A) to prevent the misuse of two (LL / ll)).XXX̂ (X + ̂ = [U+0058 LATIN CAPITAL LETTER X + U+0302 COMBINING CIRCUMFLEX ACCENT] ) . No unique character is defined yet. The shape should be like ( X̂ ) but there is no single defined Unicode code. Note that in this module as a temporary character, we have been allocated Unicode Character ( Ẍ = U+1E8C / ẍ = U+1E8D) to prevent the misuse of two (XX / xx)).عNo letter is defined yet. No shape and no Unicode code. At the moment, we are using only [ ' ] an apostrophe-like.ئNo letter is defined yet. No shape and no Unicode code. Tottally, in Latin-based Kurdish, it has been removed.Latin-based Kurdish Digits along with their Unicode Equivalent (Same as English)DigitUnicode Code0U+0030 DIGIT ZERO1U+0031 DIGIT ONE2U+0032 DIGIT TWO3U+0033 DIGIT THREE4U+0034 DIGIT FOUR5U+0035 DIGIT FIVE6U+0036 DIGIT SIX7U+0037 DIGIT SEVEN8U+0038 DIGIT EIGHT9U+0039 DIGIT NINEArabic-based Persian Digits along with their Unicode EquivalentArabic-based Persian Unicode Digits (Completely different Unicode codes with Arabic-based Kurdish but some of them are the same as Arabic-based PersianONLYin shape. (۴۵۶) are different in shape and Unicode code, but the others (٠١٢٣٧٨٩) are the same ONLY in shape).DigitUnicode Code۰U+06f0 EXTENDED ARABIC-INDIC DIGIT ZERO۱U+06f1 EXTENDED ARABIC-INDIC DIGIT ONE۲U+06f2 EXTENDED ARABIC-INDIC DIGIT TWO۳U+06f3 EXTENDED ARABIC-INDIC DIGIT THREE۴U+06f4 EXTENDED ARABIC-INDIC DIGIT FOUR۵U+06f5 EXTENDED ARABIC-INDIC DIGIT FIVE۶U+06f6 EXTENDED ARABIC-INDIC DIGIT SIX۷U+06f7 EXTENDED ARABIC-INDIC DIGIT SEVEN۸U+06f8 EXTENDED ARABIC-INDIC DIGIT EIGHT۹U+06f9 EXTENDED ARABIC-INDIC DIGIT NINEExtra Arabic CharactersExtra Arabic characters which areNOTused in Arabic-based Kurdish but will be used in Arabic-based Persian.CharacterUnicode CodeصU+0635 ARABIC LETTER SADضU+0636 ARABIC LETTER DADطU+0637 ARABIC LETTER TAHظU+0638 ARABIC LETTER ZAHذU+0630 ARABIC LETTER THALيU+064a ARABIC LETTER YEHةU+0629 ARABIC LETTER TEH MARBUTAثU+062b ARABIC LETTER THEHؤU+0624 ARABIC LETTER WAW WITH HAMZA ABOVEأU+0623 ARABIC LETTER ALEF WITH HAMZA ABOVEإU+0625 ARABIC LETTER ALEF WITH HAMZA BELOWآU+0622 ARABIC LETTER ALEF WITH MADDA ABOVEكU+0643 ARABIC LETTER KAFۀU+06c0 ARABIC LETTER HEH WITH YEH ABOVEىU+0649 ARABIC LETTER ALEF MAKSURATo-DO ListCurrecting issues with transliterated Latin-based versionCapitalizing names such as persons, cities, countries, etc. in Latin-based version with providing a list of namesProviding Latin-based to Arabic-based transliterationGUI for Kurdish :-)Getting helpIf you have questions about Kurdish module, or run into problems, or if you want to contribute in any way, feel free to reach out to me via below links:GitHubPyPITwitterE-mail:dolanskurd@mail.comDonateIf you think it deserves,DONATE:iTunes Gift Cards via PayPal (Email-Delivery)to my Apple ID:dolanskurd@gmail.comLicenseKurdish Language Library is available under theMIT license.