arabic

Swift textView align with english and arabic languages

≯℡__Kan透↙ 提交于 2019-12-11 06:16:02
问题 My project work with English and Arabic Language, I've used YLTextView lib when writting: https://github.com/liyong03/YLTextView but, when i set text to new textView, it's alignment is wrong. this is my text project: link to mytextProject My issue is how to show text in textview2 with alignment as same as writing in textview1 AnyOne help this, please. 来源: https://stackoverflow.com/questions/42239812/swift-textview-align-with-english-and-arabic-languages

Remove garbage characters in utf

老子叫甜甜 提交于 2019-12-11 04:35:16
问题 I am using utf8 format to store all my data into mysql. Before data is inserted into the database I need to clean the strings with unwanted characters. The strings are in utf8 format. I know how to use regex and string replace but do not know how to work with arabic characters. Sample string that needs to be cleaned : "████ .. الــقــوانين الجديـــدة في قســـم الـعنايـ"; Thanking you 回答1: Ok. As @Jonathan Leffler already said, if you can specify the unicode character ranges for the characters

Why arabic font is not showing in iPhone (I can see text, but not font)

Deadly 提交于 2019-12-11 02:59:54
问题 I am writing arabic text programmatically as discussed here and here. As per this solution, I can see english text in proper font, however when I am doing same with Arabic font, default font is coming and not the real one. Below are the screenshots for the same. English working fine Arabic taking default font instead of actual font Font.ttf screenshot Downloaded arabic font from here. (third font in list Font #: 23)... My Question Is , why this is happening with Arabic font? I checked with

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

can't search in farsi text with arabic keyboard on iphone

心已入冬 提交于 2019-12-10 23:07:53
问题 I have recently developed a book for iphone and implemented search function in this app. but after testing the app on a real iphone I wondered it cant find all of the search Terms. (using farsi keyboard on my mac) for example it cant find words containing "ی" character because the search terms contains "ي" character which is inserted from iphone arabic keyboard!! my texts are a lot and I cant find all of theses similar characters!! Is there any way to convert my farsi text to arabic text? 回答1

Insert & Select Arabic data Android SQLite

一曲冷凌霜 提交于 2019-12-10 14:06:25
问题 I'm trying to create arabic database in android application and want to see how I can achieve that? I know that I will have to do encoding and stuff. But I want to know if someone really tried to create non-english database and help me to do the best approach. 回答1: So for create SQLite best approach is use SQLiteOpenHelper and create your own class that extending from SQLiteOpenHelper , implements onCreate() , method and onUpgrade() method. Example how to create database: public class

Matching arabic text with regex

大兔子大兔子 提交于 2019-12-10 13:17:13
问题 I'm trying to match only arabic text using regex but I'm getting an exception. Here's my code: txt.matches("\\P{Arabic}+") Here's the exception: Exception in thread "main" java.util.regex.PatternSyntaxException: Unknown character property name {Arabic} near index 9 \P{Arabic}+ 回答1: Use this character block \p{InArabic}+ In java Unicode scripts, blocks, categories and binary properties are written with the \p and \P (negated effect) Scripts are specified either with the prefix Is or by using

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

不羁的心 提交于 2019-12-10 12:34:49
问题 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 can have an initial, medial, or final form. Is there a similar way to compare strings of Arabic characters without caring which form the letters are in? 回答1: There are two parts to this, which should work for all languages: * Your strings must be

Break Arabic Font

走远了吗. 提交于 2019-12-10 11:49:50
问题 I am making android app in which I have to give support of Arabic text to those mobiles in which Arabic is not present. I successfully did this in widgets(textview, button etc) by adding following code. I ahve added dejavusans.ttf file in assests folder. and in code I added TypeFace typeFace = Typeface.createFromAsset(context.getAssets(), "dejavusans.ttf"); fieldName.setTypeface(typeFace); fieldName.setText(ArabicUtilities.reshape(resources.getString(R.string.bring_financial_arabic))); But

How to detect Arabic chars using perl regex?

谁都会走 提交于 2019-12-10 10:54:35
问题 I'm parsing some html pages, and need to detect any Arabic char inside.. Tried various regexs, but no luck.. Does anyone know working way to do that? Thanks Here is the page I'm processing: http://pastie.org/2509936 And my code is: #!/usr/bin/perl use LWP::UserAgent; @MyAgent::ISA = qw(LWP::UserAgent); # set inheritance $ua = LWP::UserAgent->new; $q = 'pastie.org/2509936';; $request = HTTP::Request->new('GET', $q); $response = $ua->request($request); if ($response->is_success) { if ($response