ZCode Persian RTL

Persian & Arabic RTL (right-to-left) support for ZCode Desktop — پشتیبانی راست‌به‌چپ فارسی و عربی برای زکد دسکتاپ

License MIT Windows Node.js 20+

⭐ GitHub Repository 🇮🇷 مستندات فارسی

The problem: ZCode Desktop renders chat and markdown inside LTR containers, so mixed Persian–English text — file paths, error codes, commands — gets scrambled and unreadable.

The fix: a sandboxed bidirectional layout controller injected into app.asar. Every paragraph gets its correct direction (rtl/ltr with unicode-bidi: isolate); code blocks, inline code, terminals and Monaco stay strictly LTR. Persian text right-aligns, English stays left-aligned, paths remain readable.

Install in three steps (Windows)

  1. Install Node.js 20+ (one time).
  2. Download the repository (Code → Download ZIP) and extract it.
  3. Double-click Launch-ZCode-RTL.bat — ZCode starts with the RTL button in the titlebar. Press Alt+R to toggle.

Highlights

اسکرین مراحل نصب — فارسی

مسئله: متن فارسی و ترکیبی فارسی–انگلیسی در چت ZCode به‌هم می‌ریزد؛ علائم نگارشی جابه‌جا می‌شوند و مسیر فایل‌ها ناخوانا می‌شوند.

راه‌حل: فایل Launch-ZCode-RTL.bat را دوبار کلیک کنید تا ZCode با پشتیبانی راست‌به‌چپ اجرا شود. با Alt+R روشن/خاموش کنید؛ از پنل تیتل‌بار فونت و اندازه‌ی متن را تنظیم کنید. برای بازگشت به حالت اصلی هم Restore-ZCode-Original.bat وجود دارد.

FAQ

Does it work after a ZCode update? Yes — rerun Launch-ZCode-RTL.bat and it re-patches automatically.

Is it safe? Only resources/app.asar is modified, always with a SHA-256-verified backup and a one-command byte-exact restore. Your chats and settings are never touched.

Arabic / Hebrew / Urdu? The BiDi engine supports any right-to-left script; bundle font covers Persian & Arabic ranges — other scripts can use a custom font from the drawer.

How do I uninstall? Run Restore-ZCode-Original.bat, then delete the folder.