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
18
votes
6 answers

android grid view place items from right to left

I'm working on an android application with arabic version. In one of the interfaces, I have gridView. So to display items in the correct order, I have to display items in the GridView from the right to the left (and of corse from the top to the…
ghost rider3
  • 448
  • 1
  • 5
  • 17
17
votes
4 answers

Regex match Arabic keyword

I have simple regex which founds some word in text: var patern = new RegExp("\bsomething\b", "gi"); This match word in text with spaces or punctuation around. So it match: I have something. But doesn't match: I havesomething. what is fine and…
carpics
  • 2,272
  • 4
  • 28
  • 56
17
votes
7 answers

Write a number inside ayah end arabic unicode symbol

I'm working on android application and I'm trying to write arabic number inside arabic end of ayah symbol (۝) into textview. I've tried to write the end of ayah symbol then the arabic number without any space but it didn't work. I'm using uthmani…
shahd
  • 171
  • 1
  • 1
  • 4
17
votes
5 answers

Regular Expression not to allow numbers - just Arabic letters

I found this regular expression for Arabic letters but it is also allowing numbers with letters. How can I change it to let it allow letters only ? /[\u0600-\u06FF]/
Noon
  • 1,181
  • 6
  • 20
  • 38
16
votes
4 answers

why are arabic numbers (١٢٣) not accepted in textboxes as real numbers?

while developing one of my sites, i noticed that if I enter arabic numbers (١٢٣), they are not interpreted as real number values. Then, I tested a few other sites only to find that they also don't accept arabic numbers. The problem is, my client…
maha
  • 277
  • 1
  • 5
  • 15
16
votes
5 answers

What are my "web font" choices for Arabic?

I am working on a WordPress site that will be entirely in Arabic (except for the backend). I am an English speaker and have never dealt with Arabic in my time as a web developer. What font choices do I have that should be available on the vast…
donut
  • 9,427
  • 5
  • 36
  • 53
16
votes
8 answers

javascript+remove arabic text diacritic dynamically

how to remove dynamically Arabic diacritic I'm designing an ebook "chm" and have multi html pages contain Arabic text but some time the search engine want highlight some of Arabic words because its diacritic so is it possible when page load to…
Jomart Mirza
  • 187
  • 1
  • 11
16
votes
5 answers

CharInSet doesn't work with non English letters?

I have updated an application from Delphi 2007 to Delphi 2010, everything went fine, except one statement that compiled fine but not working which is: If Edit1.Text[1] in ['S','س'] then ShowMessage('Found') else ShowMessage('Not…
Mohammed Nasman
  • 10,992
  • 7
  • 43
  • 68
16
votes
2 answers

Regular expression for persian(arabic) letters without any numbers

In Java i'm looking for a regular expression that accepts any Persian( or Arabic ) letters except any Persian ( or Arabic) numbers. In order to have only letters i found a very good regular…
Elyas Hadizadeh
  • 3,289
  • 8
  • 40
  • 54
16
votes
1 answer

json_encode() doesn't display arabic characters in good way

i have problem with Arabic characters when i do json_encode() it always return ????, in the database all the fields and database is utf8 my code: $query = mysql_query("SELECT * FROM `Names`"); if (!$query) { $message = 'Invalid query: ' .…
Sideeq Youssef
  • 903
  • 2
  • 10
  • 24
16
votes
6 answers

Why do Arabic characters behave as separate characters when styling single Arabic character?

Basically what I am trying to accomplish is Arabic characters misuse highlighter ! To make it easy for understand I will try to explain a similar functionality but for English. Imagine a string with wrong capitalization, and it is required to…
Mohammed Ibrahim
  • 550
  • 1
  • 5
  • 15
16
votes
3 answers

In Xcode, how to display text merging English+Arabic and beginning with Arabic?

I want to set a label to string: "خخخ just bought: Disguise Kit." but when I run the test, the label show ".just bought: Disguise Kit خخخ"? If the text is not begin with Arabic, It will show as what I set. What's the problem? Does anybody know how…
user1300503
  • 305
  • 3
  • 10
15
votes
6 answers

set JFrame Orientation from right to left!

To align my JFrame from righ-to-left, I use: setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); but this works only if I use the following style (decoration) of the JFrame: public class RightToLeft { public static void main(String…
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
15
votes
3 answers

Open-source OCR library for Arabic

I was looking around for an OCR library - optimally it would be open-source - that I could use on some Arabic pdfs. Googling it didn't result in anything useful. I was wondering if anyone knows a related OCR library or even one that works on related…
Mohammed
  • 2,693
  • 2
  • 17
  • 8
15
votes
3 answers

Regular Expression for arabic numbers

I have this form that has a validation JQuery function, I have a problem with the telephone field, all I want is for the users to enter numbers only ... Its working great on the English form, but on the Arabic form, if I enter the numbers using the…
Naruto
  • 6,398
  • 5
  • 21
  • 24