In my lubuntu machine terminal the Arabic letters are being displayed from left-to-right and they are not bound together (Altogether on a text editor everything is working correctly).
The reason for wanting terminal to display Arabic is that I'm trying to develop a Python program which uses graphical elements like TextBox (actually Entry in tkinter). I found different modules to output strings consisting of Arabic letters in a correct form but while the user is typing in the Textbox it displays the same way as in my terminal (from left to right and with isolated individual letters).
How can I get these scripts to display correctly?
01 Answer
You need to install bicon for this purpose.
So you can use this method for enable Persian or Arabic in lxterminal:
First, install libfribidi0 and libfribidi-dev packages.
sudo apt update
sudo apt install libfribidi0 libfribidi-devThen download and install bicon:
For 64bit machines:
Download this package and then install with this command:
sudo dpkg -i bicon_0.2.0-1ubuntu0~ppa4_amd64.debFor 32bit mchines:
Download this package and then install with this command:
sudo dpkg -i bicon_0.2.0-1ubuntu0~ppa4_i386.debThen for type Persian or Arabic in lxterminal you should run this command:
bicon.binBut for automate this process you can edit /usr/share/applications/lxterminal.desktop file with this command:
sudo nano /usr/share/applications/lxterminal.desktopAnd apply this changes to that file:
- Change
Exec=lxterminaltoExec=lxterminal -e bicon.bin - Add
Terminal=trueto this file.
So after save the changes , you can see these lines in that file:
Exec=lxterminal -e bicon.bin
Terminal=trueSo After changes, you can tap on lxterminal icon and type Persian (or Arabic).
But if you want to run bicon , also with Ctrl+Alt+t buttons, you should do this steps:
Edit ~/.config/openbox/lubuntu-rc.xml file with this command:
nano ~/.config/openbox/lubuntu-rc.xmlThen change lxsession-default terminal command in <!-- Launch a terminal on Ctrl + Alt + T--> section to lxterminal -e bicon.bin.
So you should change:
<!-- Launch a terminal on Ctrl + Alt + T--> <keybind key="C-A-T"> <action name="Execute"> <command>lxsession-default terminal</command> </action> </keybind>To:
<!-- Launch a terminal on Ctrl + Alt + T--> <keybind key="C-A-T"> <action name="Execute">
<command>lxterminal -e bicon.bin</command> </action> </keybind>Then run this command to apply this changes:
openbox --reconfigure 5