You are not logged in.

#1 2020-09-28 20:00:17

khaldon
Member
Registered: 2020-09-28
Posts: 1

How to add Arabic language input to keyboard

I want to add Arabic language input to keyboard layout alongside English. Also I want to switch between them using hot key for example ALT + SHIFT something like that. I checked WIKI about keyboard in Xorg and still doesn't work

Offline

#2 2020-09-29 08:14:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: How to add Arabic language input to keyboard

"Does not work" is not an error message, what did you follow what did you try? read https://bbs.archlinux.org/viewtopic.php?id=57855

It does sound like you want to play with alternating input methods so you should read: https://wiki.archlinux.org/index.php/Lo … ut_methods and the relevant wiki page of whatever backend you decide for. Some desktop environments provide better integration with one or the other of these what are you using here?

Mod note: Not a forum or wiki issue, moving to NC

Offline

#3 2021-11-06 13:12:31

TechTycho
Member
Registered: 2021-11-06
Posts: 1

Re: How to add Arabic language input to keyboard

I don't fully understand your problem, but I assume that you want to add two input methods, Arabic and English. You can edit the /etc/locale.gen and uncomment en_US.UTF-8 UTF-8 alongside the language you want to add, uncomment ar_EG.UTF-8 UTF-8 (You may not live in Egypt so choose the one suitable for you). Then type locale-gen (It may ask for sudo privileges). Then edit the /etc/locale.conf, it may not be created by default so create it if there is no locale.conf. Type LANG=en_US.UTF-8 UTF-8, this is the LANG environment variable, if you don't know what this does, I encourage you to read https://wiki.archlinux.org/title/Locale#Variables.

Now you may want to check your current layout, enter setxkbmap -print -verbose 10 (According to the wiki) and check your layout, I think it will be 'us'. Also you can download third party utilities from the AUR like xkb-switch-git, you can easily run xkb-switch to check the layout, once again, I don't know what it will output, but I think it should be 'us'. After you've checked the layout, you may wanna change it by typing setxkbmap -layout [..], this layout should be 'ar', so type setxkbmap -layout ar.

After you type that, you will find yourself typing in Arabic, if you wanna get back to English, just type setxkbmap -layout us, 'us' is the layout you checked before.
NOTE: The layout will only apply on the current session, meaning that if you log out, shutdown or reboot the system, the layout will change to English. You can fix this by appending the setxkbmap command to xinitrc or xprofile.

I strongly encourage you to read this article that explains everything: https://wiki.archlinux.org/title/Xorg/K … figuration

The mapping, however, may differ according to your Desktop Environment or Window Manager. You will need to spend more time editing the configs of your Window Manager. if you are on a Desktop Environment, it is even easier. (I think you just change some settings)

>> I hope that worked for you smile

Last edited by TechTycho (2021-11-06 13:22:06)

Offline

Board footer

Powered by FluxBB