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
25
votes
5 answers

What character encoding should I use for a web page containing mostly Arabic text? Is utf-8 okay?

What character encoding should I use for a web page containing mostly Arabic text? Is utf-8 okay?
Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
24
votes
1 answer

Python Arabic NLP

I'm in the process of assessing the capabilities of the NLTK in processing Arabic text in a research to analyze and extract sentiments. Question is as follows: Is the NTLK capable of handling and allows the analysis of Arabic text? Is python…
Bassem
  • 3,135
  • 2
  • 25
  • 41
24
votes
3 answers

In Unicode, why are there two representations for the Arabic digits?

I was reading the specification of Unicode @ Wikipedia (Arabic Unicode) and I see that each of the Arabic digits has 2 Unicode code points. For example 1 is defined as U+0661 and as U+06F1. Which one should I use?
Karim
  • 6,113
  • 18
  • 58
  • 83
24
votes
9 answers

Convert from English Digits to Arabic ones in html page

I need to convert all English numbers that appear in a given HTML page to Arabic ones (to be independent from the user browser encoding). I prefer to use javascript or it will be great if this can be handled using CSS. I found some pages doing this…
Sarah
  • 1,361
  • 2
  • 14
  • 20
23
votes
7 answers

Chrome shows blank page on RTL language site until window is resized

I just created an Arabic version a website and noticed that Chrome sometimes shows a totally blank page until the window is resized and then everything instantly becomes visible. Arabic is a RTL language, so the tag has dir="rtl" lang="ar"…
jetlej
  • 3,382
  • 6
  • 29
  • 41
22
votes
4 answers

Remove Arabic Diacritic

I want php to convert this... Text : الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ converted to : الحمد لله رب العالمين I am not sure where to start and how to do it. Absolutely no idea. I have done some research, found this link…
Syed Sajid
  • 1,380
  • 5
  • 20
  • 34
21
votes
13 answers

How can I view Arabic/Persian numbers in a HTML page with strict doctype?

I have an HTML page that is right-to-left. When I don't use any doctype, my numbers are in Arabic/Persian, but when I use strict mode they turn to English. Before adding doctype: After adding…
Mahdi
  • 725
  • 2
  • 7
  • 24
21
votes
6 answers

Arabic number in Arabic text in Android

EDIT I'm porting my app to Arabic locale. I have some getString() with parameters like: getString(R.string.distance, distance) where %1d km The requirement is that in Arabic I should show it like this: "2.3 كم". If…
kingston
  • 11,053
  • 14
  • 62
  • 116
21
votes
7 answers

Convert English numbers to Arabic numerals

How can i convert English numbers being retrieved from the database to Arabic numeral symbols in PHP. EDIT: Here're some examples of what Arabic numerals look like. I live in an Arab country, so please don't go around explaining to me what Arabic…
HyderA
  • 20,651
  • 42
  • 112
  • 180
20
votes
2 answers

Exact Quran font with Thajweed - ios

I have an ios Quran app project, i have tested several Arabic fonts for my Quran app text contents, but it has some difference (in Tajweed marks) other than the original Quran text with Tajweed marks. (Please check the images). I want to know which…
Mumthezir VP
  • 6,251
  • 6
  • 28
  • 57
20
votes
2 answers

Include Arabic characters in JavaScript regular expression?

So im using jquery validation on my script to only allows certain characters. I've had a request to allow the script to use arabic characters aswell. How would i do this? Heres my current code: $.validator.addMethod( "legalname", …
Josh Fradley
  • 545
  • 1
  • 10
  • 23
19
votes
3 answers

Displaying Arabic characters in C# console application

I believe it was possible to show Arabic characters on a console application 13+ years ago, since the days of Windows ME. Now i am using Visual Studio 2013, On a Windows 8, and the following code shows: ????? ?? Console.OutputEncoding =…
Alaa Alweish
  • 8,904
  • 16
  • 57
  • 84
19
votes
3 answers

Partially colored Arabic word in HTML

I don't speak Arabic, but I need specific support for Arabic on our web. I need parts of Arabic words to be in a with a different style than the rest of word. When I type two characters ش and س, they are composed into word شس, but when I use…
Ondra
  • 3,100
  • 5
  • 37
  • 44
18
votes
1 answer

Fix issue With VS Code: yellow orange border box around characters

When I type a ا letter in the Arabic language it is surrounded with a colored border box in vscode. Any solution for this problem?
abdooo9
  • 422
  • 1
  • 4
  • 15
18
votes
7 answers

CSV file with Arabic characters is displayed as symbols in Excel

I am using python to extract Arabic tweets from twitter and save it as a CSV file, but when I open the saved file in excel the Arabic language displays as symbols. However, inside python, notepad, or word, it looks good. May I know where is the…
Shams
  • 193
  • 1
  • 1
  • 5