在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rezakamalifard/persian开源软件地址(OpenSource Url):https://github.com/rezakamalifard/persian开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):PersianA simple Python library for Persian language localization. Python implementation of Persian.js Installationpip install persian FunctionsConvert to Persian charactersUsed for converting Arabic characters to Persian. Example: persian.convert_ar_characters("علي") #returns: علی Convert to English numbers from Persian NumberUsed for converting Persian numbers to English. Example: persian.convert_fa_numbers("۱۳۷۱") #returns: 1371 Convert to Persian numbers from Arabic NumberUsed for converting Arabic numbers to Persian. Example: persian.convert_ar_numbers("٣٤٥") #returns: ۳۴۵ Convert to Persian numbers from English NumberUsed for converting English numbers to Persian. Example: persian.convert_en_numbers("345") #returns: ۳۴۵ Change keyboard layoutConverting Persian char to English char by switching the keyboard layout Example: persian.convert_en_characters("sghl") #returns: سلام Zero-width non-joiner correctionExample: persian.convert_en_characters("آمده ای ولی من رفته ام و می آییم") #returns: آمدهای ولی من رفتهام و میآییم Decode Percent-encoding Characters in URLsExample: persian.decode_url("https://fa.wikipedia.org/wiki/%D8%B5%D9%81%D8%AD%D9%87%D9%94_%D8%A7%D8%B5%D9%84%DB%8C") #returns: https://fa.wikipedia.org/wiki/صفحهٔ_اصلی ContributorsContributingThis is a open-source project. Fork the project, complete the code and send pull request. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论