arabic

How do I display a custom Arabic font in my iPhone app?

南笙酒味 提交于 2019-12-24 11:18:57
问题 How do I display a custom Arabic font ( Quran in Uthmani ) in my iPhone app? 回答1: Core Text allows you to embed fonts and render custom glyphs. 回答2: You just need to drag the font’s ttf file in your resource folder and do this following entry in your info.plist file – <key>UIAppFonts</key> <array> <string>CloisterBlack.ttf</string> </array> UIAppFonts key accept a array so you can pass multiple fonts in it. Now wherever you want to use the font in your application you can call: [UIFont

Selecting parenthesis in Arabic text

混江龙づ霸主 提交于 2019-12-24 10:42:29
问题 I copied some Arabic text and pasted it on my website. Now I want to select the parentheses in this Arabic text : http://jsfiddle.net/t6Kdc/ <span> كهيعص ﴿١﴾ </span> jQuery(function () { var oldHtml = jQuery('span').html(); var newHtml = oldHtml.replace("(","<span style='color: red'>﴾</span>"); jQuery('span').html(newHtml); }); For some reason though, there's no way I can select them. Why ? 回答1: Those are not regular parenthesis, those are parenthesis from Arabic script in Unicode. They are

Arabic characters using preg_match() function

有些话、适合烂在心里 提交于 2019-12-24 09:01:37
问题 I am trying to use preg_match() to check Arabic and English characters only, i used this code: preg_match("/^[a-zA-Zأ-ي]*$/",$name) but still, it is not working. EDIT: The code that does not work: if($name == '' || $email =='') { echo("<div class=\"error\">fill all fields</div>"); } else if (!preg_match("/^[a-zA-Zأ-ي\s]*$/",$name)) { echo("<div class=\"error\">Only letters and white space allowed</div>"); } else if (strlen($name) < 6) { echo("<div class=\"error\">NONONONO les than 6</div>");

Concat arabic and english string with string.Format()

你说的曾经没有我的故事 提交于 2019-12-24 07:13:23
问题 Have some trouble with concat two string. return string.Format("{0}{1}{2}", IdWithSubType, ExtraInfo.Any(info => info.InfoType == UniExtraInfoType.Alias) ? string.Format(" ({0})", string.Join(",", ExtraInfo.First(info => info.InfoType == UniExtraInfoType.Alias).Info)) : "", Context != null ? string.Format(" ({0})", Context.IdWithSubType) : ""); it's ok when IdWithSubType, extrainfo and context has latin or kirillic symbols, but IdWithSubType can be arabic, and concat with that is wrong. e.g

Getting Arabic text from .txt file?

此生再无相见时 提交于 2019-12-24 03:34:20
问题 Hey, I have Arabic text in a txt file that I would like to show in a simple EditText, Though when I do that here is what I get: http://i55.tinypic.com/66g09z.png Here is the code I use to get the text from the .txt file: txt1 =(EditText) findViewById(R.id.EditText01); try{ File f = new File(Environment.getExternalStorageDirectory()+"/1.txt"); FileInputStream fileIS = new FileInputStream(f); BufferedReader buf = new BufferedReader(new InputStreamReader(fileIS)); String readString = new String(

How to support arabic language in android? [duplicate]

心不动则不痛 提交于 2019-12-24 03:19:01
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to support Arabic text in Android? how to use arabic text and how to get arabic language support in android.unicode. TextView tv=(TextView)findViewByid(R.id.text); 回答1: I guess it's a firmware feature , I use the latest CyanogenMod 7.1 on my Nexus S and I have the arabic language for the menu and text input . After that you can use typeface . 回答2: use typeface for the textview and use your arabic ttf for the

Tkinter Label with arabic text

夙愿已清 提交于 2019-12-24 03:13:28
问题 is there any way to make that Arabic text looks exactly how it must be : the example below should look like "باطو" 回答1: Since Arabic script is right to left, you can use the libraries: https://github.com/mpcabd/python-arabic-reshaper and https://github.com/MeirKriheli/python-bidi Something like this can work: # !/usr/bin/python3 from tkinter import * import arabic_reshaper from tkinter import messagebox from bidi.algorithm import get_display text_to_be_reshaped = "ﺏﺎﻃﻭ" reshaped_text = arabic

Android Arabic Cursor Split

爷,独闯天下 提交于 2019-12-24 01:01:45
问题 I'm using a custom EditText because client wants to force arabic locale globally in the app. Here is the code I use in the constructor of the EditText: setTextDirection(TEXT_DIRECTION_LOCALE); It works perfectly, but I have a strange behavior of the cursor as you can see in the image Somebody knows if it's normal or how can I solve this? Thank you 回答1: Found the solution there: https://ux.stackexchange.com/a/39639 Apparently, it's the normal behavior when you have rtl and ltr text mixed. 回答2:

Certain Arabic text gets incorrectly shown while other Arabic text gets showed normally?

别说谁变了你拦得住时间么 提交于 2019-12-24 00:54:33
问题 I'm developing an app with Arabic text in it.. My phone supports Arabic so the text gets displayed correctly.. the weird problem is that: if I copy an Arabic text that i want from a.txt file and put it into an EditText, the EditText displays weird characters, but if I write the SAME text manually (not copy-paste), the text gets displayed normally!! Here is a picture showing what I mean, the first EditText is the text I wrote manually, and the second is the text I copy-pasted from the .txt

Itextsharp and arabic character?

会有一股神秘感。 提交于 2019-12-23 21:24:08
问题 i have use itextsharp to convert html to pdf(using asp.net C#) and its work in english characters , but when i want to convert html including arabic characters it will give me empty pdf !! can any one help me? 回答1: The problem is that your font does not have glyphs for the Arabic code points. You need to embed a font that has Arabic glyphs such as arabtype.ttf. string fontpath = Environment.GetEnvironmentVariable( "SystemRoot" ) + "\\fonts\\arabtype.ttf"; BaseFont basefont = BaseFont