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
15
votes
1 answer

Is there a way to compare Arabic characters without regard to their initial/medial/final form?

In Latin script, letters have an upper case and a lower case form. In Python, if you want to compare two strings without regard to their case, you can convert them to the same case using 'string'.upper() or 'string'.lower() In Arabic script, letters…
drs
  • 5,679
  • 4
  • 42
  • 67
15
votes
1 answer

Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong

Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong my string is: به نام خداوند بخشنده مهربان Describe In image: How can this problem be solved?
user3770797
  • 374
  • 5
  • 24
15
votes
3 answers

persian/arabic search in sqlite android gives bad result

i have a problem with sqlite database. it seems to not support full persian/arabic characters. when i search some fields based on persian chars, most of the times Sqlite can't recognize those chars. i insert data into database by copy them from HTML…
hojjat reyhane
  • 648
  • 1
  • 8
  • 25
14
votes
1 answer

Concatenate left-to-right (LTR) and right-to-left (RTL) text

It seems that combining left-to-right (LTR) and right-to-left (RTL) text using paste can produce unexpected results for the resulting order: (x = paste(c('green', 'أحمر', 'أزرق'), collapse=' ')) # arabic for blue and red #> [1] "green أحمر…
geotheory
  • 22,624
  • 29
  • 119
  • 196
14
votes
5 answers

HTML Direction rtl issue

I am working on a Multilanguage website , where in a table one of the td needs to be arabic stuff - which we know need to start from right. I tried it in many ways but couldnt crack it . Would be really appreciated if some one could help me :( .…
user3030932
  • 161
  • 1
  • 1
  • 5
14
votes
14 answers

How to right align PreferencesActivity in android?

I have PreferencesActivity which I need it to be right aligned because I want to use Arabic language, I tried to use android:layout_gravity="right" for PreferenceScreen but it didn't work. This is my XML:
Hesham Saeed
  • 5,358
  • 7
  • 37
  • 57
13
votes
3 answers

Word wrapping in pango with mixed scripts

I have a text box implementation that uses pango. If i put a string that starts with a word in right-to-left script, followed by a space, followed by word in left-to-right based script, the word wrapping that pango uses gets messed up (using…
default
  • 2,637
  • 21
  • 44
13
votes
4 answers

Arabic characters in URL while sharing on Twitter

I'm facing an issue trying to sharing an URL which includes arabic characters on Twitter: http://example.com/قرعة-تصفيات-أفريقيا-مصر-تواجه-نيجيريا/ When i click on "share" the same URL is showed in the tweet box, but when I actually tweet, it just…
Haroon Akram
  • 127
  • 3
13
votes
8 answers

How can i convert English digits to Arabic digits?

I have this C# code for example DateTime.Now.ToString("MMMM dd, yyyy"); Now the current thread is loading the Arabic culture. So the result is like this ???? 19, 2010 But i don't want the '2010' and the '19' to be in English (also known as Latin…
LolaRun
  • 5,526
  • 6
  • 33
  • 45
13
votes
2 answers

What is Alef Hamza?

I found this one, in the Find box (as Search criteria) of the document viewer. What is supposed to match?
OrElse
  • 9,709
  • 39
  • 140
  • 253
12
votes
2 answers

Error while writting Arabic to image

My previous related question: php work with images : write complete word in arabic , ttf font My problem was: If I want to write احمد in image it appears as د م ح ا Well, I fixed it and now the output: ا ح م د Using this function: function…
Passer By
  • 181
  • 1
  • 11
12
votes
4 answers

iTunes connect Arabic localization

I'm trying to use Arabic description and metadata for my app. In iTunes connect it states that these data must be in English, so I did put them in English. Then i found the localization feature but found it doesn't support Arabic language. However I…
Ali
  • 4,205
  • 4
  • 25
  • 40
12
votes
3 answers

Text align problem when using Arabic font

The screenshot below displays my problem. The first EditText shows a hint in Arabic which is shifted upwards, now the second EditText is just for reference which shows the English version completely fine. Same goes for the Button. I have declared…
Farhan
  • 13,290
  • 2
  • 33
  • 59
12
votes
4 answers

How to set the orientation of JTextArea from right to left (inside JOptionPane)

I have JScrollPane with JTextArea inside it and I am trying to set the JTextArea's orientation from right to left so the text inside it will start from the right and the scrollbar will be on the left I've tried the following but they didn't affect…
Eng.Fouad
  • 115,165
  • 71
  • 313
  • 417
12
votes
2 answers

how to left to right toolbar api 16

I'm using NavigationView and add toolbar with include . I use android:layoutDirection="rtl" and all apis works fine but in api 16 it doesn't work. So how can i left to right toolbar in api 16? drawer_layout.xml
Hamed Karami
  • 405
  • 1
  • 6
  • 28