Persian & Arabic RTL (right-to-left) support for ZCode Desktop — پشتیبانی راستبهچپ فارسی و عربی برای زکد دسکتاپ
⭐ 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.
Code → Download ZIP) and extract it.Launch-ZCode-RTL.bat — ZCode starts with the RTL button in the titlebar. Press Alt+R to toggle.مسئله: متن فارسی و ترکیبی فارسی–انگلیسی در چت ZCode بههم میریزد؛ علائم نگارشی جابهجا میشوند و مسیر فایلها ناخوانا میشوند.
راهحل: فایل Launch-ZCode-RTL.bat را دوبار کلیک کنید تا ZCode با پشتیبانی راستبهچپ اجرا شود. با Alt+R روشن/خاموش کنید؛ از پنل تیتلبار فونت و اندازهی متن را تنظیم کنید. برای بازگشت به حالت اصلی هم Restore-ZCode-Original.bat وجود دارد.
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.