Arabic language with Sublime Text editor

Dania Delbani picture Dania Delbani · Sep 1, 2014 · Viewed 27k times · Source

I have a problem with sublime text editor that RTL languages are not supported! I've tried this plug in Bidirectional text support with windows os I have copied all files from the zip Sublime-Text-2-BIDI-master into the ST3 folder and changed the font type and size... then I copied over the unicodedata.pyd to C:\Users\USERNAME\AppData\Roaming\Sublime Text 2\Packages\Bidirectional text support\bidi then Tools > Bidirectional text part didn't look gray anymore but it still disabled. also I copied these two lines : sys.platform.startswith('win'): sys.path.append('../../..') but it didn't work.

Answer

t0r picture t0r · Nov 13, 2015

In order to get Sublime Text to work with Arabic characters using Sublime Text BIDI plugin on Windows correctly, ensure you've done the following:

  1. Copy the plugin folder to the following path C:\Users\USERNAME\AppData\Roaming\Sublime Text 2\Packages\

  2. Copy unicodedata.pyd from ST installation directory to both, the main plugin folder which in your case is Sublime-Text-2-BIDI-master and inside bidi folder.

  3. Set your sublime user-settings to the following:

    { "font-face": "arial", "font_size": 11, "default_encoding": "UTF-8", "fallback_encoding": "Arabic (Windows 1256)" }

  4. Reload the plugin by viewing rtl.py and saving

In the case that doesn't fix it, you can read what sublime console log outputs when you click on Bidirectional text for a given Arabic text, console log can be accessed through ctrl+~.