arabic-support

Text view displays Arabic characters as question marks “?????”

放肆的年华 提交于 2019-12-11 05:15:47
问题 I'm working on an android app that displays a textviews with mixed Arabic and English words; the app displays Arabic text that I wrote inside Java classes as question marks ????? here is a screenshot: The Code: if(tCat.equals("StandardT_")){ serviceLine="Operations / خدمات عامة"; } tv.setText(serviceLine); what I have tried: Decoding characters in android and no its not the same question and the answers didn't help. How to support Arabic text in Android? I'm using a new version that supports

Arabic in pdf using iTextSharp in c#

好久不见. 提交于 2019-12-11 01:56:17
问题 I want to create a PDF file with Arabic text content in C#. I'm using iTextSharp to create this. I followed the instruction in http://geekswithblogs.net/JaydPage/archive/2011/11/02/using-itextsharp-to-correctly-display-hebrew--arabic-text-right.aspx. I want to insert the following Arabic sentence in pdf. تم إبرام هذا العقد في هذا اليوم [●] م الموافق [●] من قبل وبين . The [●] need to be replaced by dynamic English words. I tried to implement this by using ARIALUNI.TTF [This tutorial link

Concatenating left and right-aligned character types

最后都变了- 提交于 2019-12-08 14:58:36
问题 It seems that a combinations of character types can produce unexpected results for the resulting order of an explicit paste operation: (x = paste(c('green','أحمر', 'أزرق'), collapse=' ')) # arabic for blue and red #> [1] "green أحمر أزرق" paste(x, 'yellow') #> [1] "green أحمر أزرق yellow" paste(x, 123) #> [1] "green أحمر أزرق 123" Is there any known solution to this - i.e. a way to ensure concatenation in the same sequence as the arguments are given? Perhaps the answer is don't concatenate

swift remove diacritic from Arabic

蓝咒 提交于 2019-12-08 00:08:41
问题 I am trying to remove the Arabic text diacritic. For example I need to convert this َب to this ب , here is my code : if (text != "") { for char in text! { print(char) print(char.unicodeScalars.first?.value) if allowed.contains("\(char)"){ newText.append(char) } } self.textView.text = text! } else { // TODO : // show an alert print("uhhh no way") } I have tried these solutions but with no luck : How to remove diacritics from a String in Swift? NSString : easy way to remove UTF-8 accents from a

Double cursor in EditText for Input Type Number/Phone (RTL Arabic)

喜欢而已 提交于 2019-12-07 10:22:14
问题 I have an EditText set to gravity Right, so that the text starts from the right if the language is Arabic. Note: My application supports RTL, and I am not setting the TextDirection for my EditText as that will have the same problem. Gravity set to Right does the job perfectly. I have an issue only if I set the InputType to Number or Phone. If the InputType is set to number/phone there are double cursor at the beginning and end of the text and it is a bit confusing. To demonstrate this, I have

Double cursor in EditText for Input Type Number/Phone (RTL Arabic)

為{幸葍}努か 提交于 2019-12-05 12:54:47
I have an EditText set to gravity Right, so that the text starts from the right if the language is Arabic. Note: My application supports RTL, and I am not setting the TextDirection for my EditText as that will have the same problem. Gravity set to Right does the job perfectly. I have an issue only if I set the InputType to Number or Phone. If the InputType is set to number/phone there are double cursor at the beginning and end of the text and it is a bit confusing. To demonstrate this, I have two EditText with InputType Text and Number, Gravity set to Right for both. My application supports

How do I convert an Arabic String date to a java 8 date object?

随声附和 提交于 2019-12-05 02:17:32
I'm working on a web monitoring project in Arabic and I want to convert string date like this one: الاثنين 24 أبريل 2017 - 15:00 to Java 8 date object. How can I do that? Ole V.V. Edit: with thanks to slim and Meno Hochschild for inspiration: String dateTimeString = "الاثنين 24 أبريل 2017 - 15:00"; DateTimeFormatter formatter = DateTimeFormatter.ofPattern("EEEE d MMMM uuuu - HH:mm", new Locale("ar")); LocalDateTime dateTime = LocalDateTime.parse(dateTimeString, formatter); System.out.println(dateTime); This prints: 2017-04-24T15:00 The answers of @Ole and @slim are working, but not for the

Android Font in more then one langauge on single screen

这一生的挚爱 提交于 2019-12-02 15:58:16
问题 I am new to android. And i am implementing an application which will be in two langauge english and urdu. Basically there will be some text in arabic and its meaning will be in english or urdu based on the user selected language. I want to change the font of arabic text, If i apply font in whole application it will change the look of urdu and english also. So is this will be fine to just apply font to each textview that contains arabic fonts using TypeFace or there is some better way to

Android Font in more then one langauge on single screen

非 Y 不嫁゛ 提交于 2019-12-02 09:57:21
I am new to android. And i am implementing an application which will be in two langauge english and urdu. Basically there will be some text in arabic and its meaning will be in english or urdu based on the user selected language. I want to change the font of arabic text, If i apply font in whole application it will change the look of urdu and english also. So is this will be fine to just apply font to each textview that contains arabic fonts using TypeFace or there is some better way to achieve this? And also i want to know how to remove custom fonts in order to get default font back again

Regex match Arabic keyword

跟風遠走 提交于 2019-11-30 20:30:26
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 exactly what I need. But I have issue with for example Arabic language. If I have regex: var patern = new RegExp("\bرياضة\b", "gi"); and text: رياضة أنا أحب رياضتي وأنا سعيد حقا هنا لها حبي The keyword which I am looking for is at the end of the text. But this doesn't work, it just doesn't find it. It works if I remove \b from regex: var patern = new