< Localization

Localization/Arabic

This article describes how to set up Arabic language environment. It does not cover setting up Arabic input on the console.

Fonts

Persian fonts:

Fonts with support for Arabic:

Applications

Bidirectional text includes text direction support among applications. In particular, Firefox Ctrl+Shift+X is the only supported shortcut for switching text direction.

Ayaspell offers Arabic spellchecking extensions for applications like LibreOffice, Firefox, and also system-wide dictionaries using .

Libreoffice

  1. Enable Complex Text Layout: Tools > Options... > Language Settings > Languages > Default Languages for Documents.
  2. Install Ayaspell dictionary: Tools > Language > More Dictionaries Online > Arabic.

Troubleshooting

Common issues may be solved by checking Locale#Troubleshooting first. For problems related to text direction, check Bidi.

XKB Lam Alif problem

X keyboard layout sends Arabic ligature glyphs as a single glyph. For example, Laa+Alif ligature "لا" (U+0644, U+0627) is sent as "ﻻ" (U+FEFB), and similarly for (ﻷ، ﻵ، ﻹ). This is due to a known limitation in xkb which does not allow mapping a key to more than one character.

Workaround with X compose

If you have installed, you can use . Or alternatively, add the following to your environment variables:

XIM=none
XIM_PROGRAM=/bin/true
XIM_ARGS=
GTK_IM_MODULE=xim
QT_IM_MODULE=xim
SHORT_DESC="X compose table"

If XIM is set as the default input method, then XCompose table offers additional Arabic letters like: گ، ڤ، چ، پ, quotes «», as well as Wikipedia:Zero-width non-joiner, by pressing the AltGr key. The default compose table is located in .

Workaround with ibus

  • Set ibus as an input method by running or by setting the environment variables:
  • Run ibus-daemon or if ibus is not set up.
  • Use ar-kbd-m17n as ibus input method.
gollark: Yeees...
gollark: C code -> shell script with embedded C code -> native executable. I wonder if I can add more indirection...
gollark: That diagram doesn't even make sense.
gollark: It double-compiles for ultraperformance.
gollark: <@!341618941317349376>

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.