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

Replace Arabic text with Python

I have a str that has Arabic characters in it text = "صَوتُ صَفيرِ البُلْبُلِ" I am trying to remove specific characters like ص I tried text.replace("ص", "") but nothing worked. I searched and found some blogs saying that we need to write Arabic…
0
votes
0 answers

Loading pre-trained CBOW/skip-gram embeddings from a file that has unknown encoding?

I'm trying to load pre-trained word embeddings for the Arabic language (Mazajak embeddings: http://mazajak.inf.ed.ac.uk:8000/). The embeddings file does not have a particular extension and I'm struggling to get it to load. What's the usual process…
skidjoe
  • 493
  • 7
  • 16
0
votes
2 answers

Split a paragraph containing words in different languages

Given input let sentence = `browser's emoji rød continuïteit a-b c+d D-er går en المسجد الحرام ٠١٢٣٤٥٦٧٨٩ তার মধ্যে আশ্চর্য`; Needed output I want every word and spacing wrapped in s indicating it's a word or space Each has type…
Clemens Tolboom
  • 1,872
  • 18
  • 30
0
votes
1 answer

How to encode Arabic and English to send them in SMS in Python

I have to encode the Arabic text I want to send via SMS so I'm using import urllib.parse sms_to_encode = "نتمنى لك رحلة تعليمية ممتعة مع برامجنا الأونلاين" sms_body = urllib.parse.quote_plus(sms_to_encode) These are the…
Ahmed
  • 11
  • 1
0
votes
0 answers

R unicode (Arabic) output in tibble print

When trying to print a tibble containing Arabic characters, the unicode points rather than the characters are printed: > test <- tibble(lat=c("a", "b"), ara=c("ا", "ب")) > test # A tibble: 2 x 2 lat ara 1 a 2 b …
peterv
  • 147
  • 1
  • 2
  • 8
0
votes
2 answers

How to solve this Arabic language problem in Sybase PowerBuilder 6 and 7?

How to view arabic characters correctly in Sybase PowerBuilder 6 or 7 as I use Arial(Arabic) or any arabic language in the properties of the table and the database but it shows the characters as strange symbols that has no meaning like ÓíÇÑÉ ÕÛíÑÉ ?
TopDeveloper
  • 542
  • 2
  • 14
  • 43
0
votes
1 answer

AttributeError: 'ArabertPreprocessor' object has no attribute 'farasa_segmenter'

I had this error while using AraBERT, from arabert.preprocess import ArabertPreprocessor model_name = "bert-base-arabertv2" arabert_prep = ArabertPreprocessor(model_name=model_name, keep_emojis=False) text = "ولن نبالغ إذا قلنا إن هاتف أو كمبيوتر…
0
votes
1 answer

Trouble adding the shaddah diacritic to an Arabic letter (JavaScript)

I am having some issues with the Arabic diacritic 'shaddah' in my code. this.nfpp = this.pastTenseStem + this.roots[2] + "تُنَّ"; (I appologize the characters are so small, I'm not sure how to make it any bigger. You can see here that the shaddah is…
0
votes
2 answers

How to Convert Numbers (from 1 to 99) to the Equivalent Arabic Ordinal Number String

Convert Numbers (from 1 to 99) to Arabic Ordinal Number String Unlike English Ordinal Numbers where the ordinal number is made from the original number (in digital form) and a suffix is added to it (i.e. 1st, 2nd, 3rd, 4th......), the Arabic Ordinal…
Mohsen Alyafei
  • 4,765
  • 3
  • 30
  • 42
0
votes
1 answer

Cannot query nvarchar values

I have one table in sql db where I store nvarchar values CREATE TABLE [dbo].[Buns] ( [ID] INT NOT NULL PRIMARY KEY IDENTITY, [ARABIC] NVARCHAR(MAX) NULL, [ENGLISH] NVARCHAR(MAX) NULL, ) I can…
TT_MM
  • 3
  • 2
0
votes
1 answer

Unable to read the value of input text in arabic language in the same way I typed in Javascript

I am trying to read the value of an input text field entered in the Arabic language using javascript. But as you can see in the screenshot it's not fetching the text in the same way I typed. The number '123' which is on the right side of the input…
Siva
  • 43
  • 5
0
votes
2 answers

Concatenate numeric value to the right side of an Arabic String in JS

var data = "عينات"; var num = "123"; var res = data + num; // returns عينات123 I am trying to concatenate numbers to the right side of the arabic text, but its jumping to the left side, also tried reversing the string, but didn't help. Please…
Siva
  • 43
  • 5
0
votes
0 answers

I can't get the full text of the tweet

I can't get the full text of the Arabic tweet when I use tweet_mode='extended' and tweet.full_text.encode('utf-8') I don't know what is the problem HashValue = "#لقاح" StartDate = "2022-01-02" csvFile = open(HashValue+'.csv',…
0
votes
0 answers

Unable to print in Arabic on Xprinter XP-P810 using Android Studio

I am trying to print an string containing Arabic characters, but when I print it, the paper is blank. Here is the code I wrote: try { if (ContextCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH) !=…
Mike
  • 137
  • 1
  • 2
  • 10
0
votes
2 answers

Why is urlencode not working when posting message in Arabic via Telegram bot?

$message is retrieved from mysql db The db tables have utf8_general_ci as character encoding The following is executed with each connection: mysqli_query($this->link,"set character set utf-8"); The php file is encoded…
Quest
  • 109
  • 6
1 2 3
99
100