Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arabic language with Sublime Text editor

Tags:

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.

like image 625
Dania Delbani Avatar asked Sep 01 '14 10:09

Dania Delbani


People also ask

How do I write in Sublime Text?

Sublime Text offers multi-line editing, which can be accessed by holding down Command on Mac (Ctrl on Windows) and using the mouse to select multiple lines. After multiple lines are selected, you can edit all lines at once, and multi-line copy/paste is even supported.


2 Answers

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+~.

like image 128
t0r Avatar answered Sep 18 '22 10:09

t0r


Very Easy,

Just follow this Video steps دعم اللغة العربية في برنامج Sublime

1- Download the Sublime-BIDI-master folder from Github of solution

2- Extract it and paste under \Sublime Text Build (whatever)\Data\Packages(the downloaded folder).

3- open sublime wit any RTL Language file and right click anywhere you'll new options (Bidirectional text) .. Click it :).

like image 45
Mohamed Abulnasr Avatar answered Sep 21 '22 10:09

Mohamed Abulnasr