Questions tagged [arabic]

The Arabic tag is for issues relating to displaying user interfaces and managing data in Arabic written language.

In the localization or internationalization of user interfaces, and/or in the encoding/decoding of text, Arabic languages may present particular issues such as Unicode BiDi support (see also: , ).

Unlike other RTL languages (e.g. Hebrew), Arabic letters are written connected so same letter may have more than 4 glyphs as some combinations have specific glyphs. For example, Arabic text should be in the normalized form before processing (indexing ...) It should be mentioned that Unicode offers different methods for representing arabic letters, not only for the different connected glyphs, but also for vowel signs.

Popular questions related to common Arabic related issues:

Useful Arabic libraries

  • Ar-PHP: A collection of libraries to process Arabic text, such as text normalization, rendering Arabic text on images, etc.
2280 questions
9
votes
3 answers

How can I implement iOS with RTL for Arabic Hebrew?

I'm developing an application on Xcode 5 target iOS 7.1 with single view having only two items image and label on it, the Auto layout is enabled and the constraint is set using 'add missing constraint' with trailing and leading attributes. According…
Mahmoud Ibrahim
  • 99
  • 1
  • 1
  • 3
9
votes
1 answer

Normalize arabic text mysql

I am having trouble searching for arabic text in mysql. I have in database a row containing a record display_name أحمد But when I try to do a query with SELECT * FROM wp_users WHERE display_name LIKE '%احمد%' I tried to add at the end of the…
Ahmed
  • 636
  • 1
  • 14
  • 31
9
votes
4 answers

using perl or python to replace arabic character "ا" with "a" in one word, but "ә" in a different word

I need to change a plain text UTF8 document from a R to L language to a Latin language. It isn't as easy as a character-character transliteration unfortunately. For example, the "a" in the R to L language (ا) can be either "a" or "ә" depending on…
Shane
  • 223
  • 1
  • 11
9
votes
3 answers

Handle arabic string in PHP with Eclipse

I am currently working on the localization of a website, which was first in english only. A third party company did the translations, and provided us with an excel file with the translations. Which I successfully converted to a PHP array that I can…
Tchoupi
  • 14,560
  • 5
  • 37
  • 71
9
votes
4 answers

android:gravity="right" not working on all devices for Arabic and other RTL languages

I've got an Arabic Android application, and here is the XML code:
M.ES
  • 920
  • 14
  • 30
8
votes
12 answers

Display dates in Arabic

Here's my code: setlocale( LC_ALL,'ar' ); echo strftime( '%e %b, %Y', strtotime( '2011-10-25' )); Output: 25 Sep, 2011 Why is it not displaying the arabic date? Am I using strftime incorrectly?
HyderA
  • 20,651
  • 42
  • 112
  • 180
8
votes
2 answers

How to parse string datetime & timezone with Arabic-Hindu digits in Java 8?

I wanted to parse string datetime & timezone with Arabic-Hindu digits, so I wrote a code like this: String dateTime = "٢٠٢١-١١-٠٨T٠٢:٢١:٠٨+٠٢:٠٠"; char zeroDigit = '٠'; Locale locale = Locale.forLanguageTag("ar"); DateTimeFormatter…
Daria Pydorenko
  • 1,754
  • 2
  • 18
  • 45
8
votes
3 answers

Using substr() in multiple languages including arabic language with php

I know there are a lot of questions already posted with arabic language in php, but I was unable to get solution to my problem and hence I am posting this question: I have a PhP site that is running perfectly in English language. Now, I want it to…
Nitesh
  • 2,286
  • 2
  • 43
  • 65
8
votes
1 answer

How does python handle and print strings that contains RTL and LTR languages?

I have been searching the web and asking people about this subject but I really did not get a satisfying answer, let me explain my issue here with python. let's say I have this string: a = 'حصل طالب على (80) في (something) واجتاز الشرط بنجاح' the…
imBaraa
  • 81
  • 4
8
votes
2 answers

FlyingSaucer LTR/RTL/BiDi issue with arabic text

I'm using flying saucer xhtmlrenderer for building pdf documents. Everything worked fine until now - now we should generate arabic text inside pdf. Xhtmlrenderer is rendering Arabic text in reverse order. I've read somewhere on internet (maybe on…
Askar Kalykov
  • 2,553
  • 1
  • 22
  • 43
8
votes
4 answers

How can we change the semantic to LTR of a tableview cell when the whole screen is set as RTL?

The screen is in the Arabic language and it's semantic is set right to left. The whole screen consists of a table view with customs cells. I need to change the semantics of one of the cells in the table view to left to right. The cell has two text…
Aditya Ahuja
  • 316
  • 3
  • 17
8
votes
1 answer

Plotting histograms with Arabic characters

I am trying to plot an histogram of most frequent words written in arabic, but I can't figure out a way to do that. All I can get is the sliced characters but not the compiled word. Here is an example of what I get : import seaborn as sns import…
saul
  • 299
  • 1
  • 2
  • 10
8
votes
1 answer

How to get all the possible variations of a word with interchangeable letters?

In Arabic, a letter like "ا" (Alef) has many forms/variations: (ا, أ, إ, آ) also it's the same case with the letter ي, it could also be ى. What I am trying to do is to get ALL the possible variations of a word with many أ and ي letters. For…
Dewan159
  • 2,984
  • 7
  • 39
  • 43
8
votes
2 answers

Looking for an arabic dictionary database

How can I get a database of an arabic dictionary?
Mejdi Lassidi
  • 999
  • 10
  • 22
8
votes
1 answer

No module named bidi.algorithm

I download this here, run it with: python setup.py test in my cmd, I have python 2.7 but i get this error: Traceback (most recent call last): File "C:\Users\CLIENT\Desktop\IMPLEMENTATION\Affichage.py", line 31, in from bidi.algorithm…
YayaYaya
  • 125
  • 2
  • 3
  • 10