Skip to main content

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:

  1. Automatically detect and use fonts that support Kurdish characters
  2. Create tkinter widgets properly configured for Kurdish text
  3. Validate Kurdish text content

ئەم کتێبخانەیە ئامرازەکان دابین دەکات بۆ: ٢. دۆزینەوەی خۆکارانە و بەکارهێنانی فۆنتەکان کە پشتگیری نامەی کوردی دەکەن ٢. دروستکردنی ویجتەکانی تکینتەر بەشێوەیەکی دروست بۆ نامەی کوردی ٣. پشتڕاستکردنەوەی ناوەڕۆکی نامەی کوردی

Installation

دامەزراندن

Using pip

بەکارهێنانی pip

pip install Kurdish_Characters

Manual installation

دامەزراندنی دەستی

  1. Download the library files
  2. 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. ئەگەر هەر کێشەیەکت هەبوو، تکایە کێشەکە بنێرە لەسەر بەخچەی گیت هەب.

GitHub: https://github.com/neshwantaha/Kurdish_Characters

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kurdish_characters-1.0.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kurdish_characters-1.0.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file kurdish_characters-1.0.0.tar.gz.

File metadata

  • Download URL: kurdish_characters-1.0.0.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

Hashes for kurdish_characters-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0937a18315382086baa1f78e8e30cc37e4e2a260de01687076656398eac1cde3
MD5 7e94e28462d82e02c9c0077b0813ce8b
BLAKE2b-256 bdc19b71b7277a56835b7430d0d90192032b2d7f2351d95bbcef7051a62985b8

See more details on using hashes here.

File details

Details for the file kurdish_characters-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kurdish_characters-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 964b4cd96fe7bd1a2d202e8ee9073c162dab36ae3d2a4644b24afd77fa62e98b
MD5 3c0d5d61f5f5f80bd25f88bc471e4778
BLAKE2b-256 5020ef0b4b985b5e50572dace1e481b896ac4a982fd490bab77d2627647f1141

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page