A Python library to properly display Kurdish characters in tkinter and other interfaces
Project description
Kurdish Characters Library
کتێبخانەی نامەی کوردی
A Python library to properly display Kurdish characters in tkinter and other interfaces. کتێبخانەیەکی پایتۆن بۆ پیشاندانی دروستی نامەی کوردی لە تکینتەر و ڕووکارەکانی دیکە.
Problem
کێشە
When using Kurdish characters in tkinter or other Python GUI libraries, the characters may appear as question marks or strange symbols due to font and encoding issues. کاتێک نامەی کوردی بەکاردەهێنرێت لە تکینتەر یان کتێبخانەکانی دیکەی پایتۆن، نامەکان دەتوانن وەکو نیشانەی پرسیار یان هێمایەکی نادیاری دیکە دەربچن بەهۆی کێشەی فۆنت و کۆدکردن.
Solution
چارەسەر
This library provides utilities to:
- Automatically detect and use fonts that support Kurdish characters
- Create tkinter widgets properly configured for Kurdish text
- Validate Kurdish text content
ئەم کتێبخانەیە ئامرازەکان دابین دەکات بۆ: ٢. دۆزینەوەی خۆکارانە و بەکارهێنانی فۆنتەکان کە پشتگیری نامەی کوردی دەکەن ٢. دروستکردنی ویجتەکانی تکینتەر بەشێوەیەکی دروست بۆ نامەی کوردی ٣. پشتڕاستکردنەوەی ناوەڕۆکی نامەی کوردی
Installation
دامەزراندن
Using pip
بەکارهێنانی pip
pip install Kurdish_Characters
Manual installation
دامەزراندنی دەستی
- Download the library files
- Place them in your project directory
٢. دابەزاندنی فایلەکانی کتێبخانە ٢. جێگیرکردنیان لە بوخچەی پڕۆژەکەت
Usage
بەکارهێنان
Basic Usage
بەکارهێنانی سادە
from Kurdish_Characters import KurdishTextHandler, create_kurdish_window
# Create a window with Kurdish font support
# دروستکردنی پەنجەرەیەک بە پشتگیری فۆنتی کوردی
root = create_kurdish_window("My Kurdish App")
# Create a handler instance
# دروستکردنی نموونەیەک لە هەندلەر
handler = KurdishTextHandler()
# Create widgets with proper Kurdish font support
# دروستکردنی ویجتەکان بە پشتگیری فۆنتی کوردی
label = handler.create_kurdish_label(root, "سڵاو جیهان")
label.pack()
entry = handler.create_kurdish_entry(root)
entry.pack()
text_widget = handler.create_kurdish_text(root)
text_widget.pack()
Advanced Usage
بەکارهێنانی پێشکەوتوو
from Kurdish_Characters import display_kurdish_message
# Display a simple message box with Kurdish text
# پیشاندانی سندوقی پەیامێکی سادە بە نامەی کوردی
display_kurdish_message("سڵاو، ئەم پەیامە کوردییە", "پەیامی کوردی")
Features
تایبەتمەندییەکان
-
Automatic font detection for Kurdish character support
-
Helper functions for common tkinter widgets (Label, Entry, Text)
-
Text validation for Kurdish characters
-
Proper text direction handling
-
Easy to integrate with existing tkinter applications
-
دۆزینەوەی خۆکارانەی فۆنت بۆ پشتگیری نامەی کوردی
-
فرمانە یارمەتیدەرەکان بۆ ویجتە باوەکانی تکینتەر (Label, Entry, Text)
-
پشتڕاستکردنەوەی نامە بۆ نامەی کوردی
-
مامەڵەکردنی دروستی ئاڕاستەی نامە
-
ئاسانە بۆ تێکەڵکردن لەگەڵ بەرنامەکانی تکینتەری هەبوو
Supported Characters
نامە پشتگیریکراوەکان
The library supports all common Kurdish characters including: کتێبخانەکە پشتگیری هەموو نامە کوردیە باوەکان دەکات لەوانە:
Basic isolated forms: د ج ح ھ ه ع إ غ ڤ ف ق پ ص ض چ گ ک م ت ا أ ل ڵ ب ێ ی س ش ز و ە ى لا ر ڕ ۆ وو ئـ ژ ڵا ن y پیش پێک ئ آ ة ك y
Positional forms (initial, medial, final): دـ ـدـ ـد جـ ـجـ ـج حـ ـحـ ـح هـ ـهـ ـه عـ ـعـ ـع etc.
The library now includes complete positional forms for all characters, ensuring proper display of Kurdish text in all positions within words.
Requirements
پێویستییەکان
-
Python 3.6 or higher
-
tkinter (usually included with Python)
-
پایتۆن ٣.٦ یان بەرزتر
-
تکینتەر (بەشێوەیەکی ئاسایی لەگەڵ پایتۆن دابەزێنراوە)
License
مۆڵەت
This library is provided as-is for the Kurdish developer community. Feel free to use and modify it as needed. ئەم کتێبخانەیە بە شێوەیەکی هەیە بۆ کۆمەڵگەی پەرەپێدەرە کوردەکان. بە دڵخوازی بەکاری بهێنە و دەستکاری بکە.
Contributing
بەشداربوون
Contributions are welcome! Please feel free to submit issues and pull requests. بەشداربوون پێشوازی لێدەکرێت! تکایە بە دڵخوازی کێشەکان بنێرە و داواکاری ڕەنگەکان.
Support
پشتگیری
If you encounter any issues, please file an issue on the GitHub repository. ئەگەر هەر کێشەیەکت هەبوو، تکایە کێشەکە بنێرە لەسەر بەخچەی گیت هەب.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kurdish_characters-1.0.1.tar.gz.
File metadata
- Download URL: kurdish_characters-1.0.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
490876cfbb40250e1977d1f3de7bc48917f350c82ef451ed87c2ae6deb14766e
|
|
| MD5 |
e5fc93bbe2f5959f389925e96f978e7e
|
|
| BLAKE2b-256 |
b7e206be739f604d4f3addc679d727402bc964717032e5988f5f0b8f284bf4a6
|
File details
Details for the file kurdish_characters-1.0.1-py3-none-any.whl.
File metadata
- Download URL: kurdish_characters-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b5135a550ded2500ef65637892dbe724a4bde0b74084322e5daf03bb8cf5b3b
|
|
| MD5 |
214305b8e778fef7b0a0e5314d9a33fc
|
|
| BLAKE2b-256 |
bff9ade0d2ea5b5d8e8bbb9a079550d5c0b1a550d526535d3841464a99fb4c88
|