Go back

OpenCode Persian RTL

PowerShellJavaScriptNode.jsElectronnpmWindowsRTLUnicode Bidirectional TextSHA-256Vazirmatn
OpenCode Persian RTL

OpenCode Persian RTL is a PowerShell-based renderer patch that adds automatic bidirectional text support to OpenCode Desktop on Windows.

The patch detects Persian and Arabic-script content on a per-block basis, renders RTL content right-aligned, keeps Latin content LTR, and preserves code blocks as LTR. It also installs the Vazirmatn font and includes defensive installation and maintenance mechanisms such as SHA-256 verification, atomic replacement, safe restore checks, backup management, version-change detection, and optional automatic reapplication after OpenCode updates.