arabic

Arabic presentation forms B support in c#

こ雲淡風輕ζ 提交于 2020-01-13 02:50:09
问题 I was trying to convert a file from utf-8 to Arabic-1265 encoding using the Encoding APIs in C#, but I faced a strange problem that some characters are not converted correctly such as "لا" in the following statement "ﻣﺣﻣد ﺻﻼ ح عادل" it appears as "ﻣﺣﻣد ﺻ? ح عادل". Some of my friends told me that this is because these characters are from the Arabic Presentation Forms B. I create the file using notepad++ and save it as utf-8. here is the code I use StreamReader sr = new StreamReader(@"C:\utf-8

Python Date Conversion. How to convert arabic date string into date or datetime object python

帅比萌擦擦* 提交于 2020-01-11 11:43:08
问题 I have to convert this date into normal date string/object. ١٩٩٤-٠٤-١١ to 11-04-1994. 回答1: I have made a solution to this problem. May be not a best but its working :) # -*- coding: utf8 -*- import unicodedata s = u"١٩٩٤-٠٤-١١" def date_conv(unicode_arabic_date): new_date = '' for d in unicode_arabic_date: if d != '-': new_date+=str(unicodedata.decimal(d)) else: new_date+='-' return new_date print date_conv(s) 1994-04-11 回答2: Here is a method I wrote to solve it: def arab_to_decimal(timestamp

Arabic text in managed bean

99封情书 提交于 2020-01-07 05:39:46
问题 In my application I use Spring, JPA Hibernate, JSF the problem is when I write an Arabic text and find it in manged Bean like (ÙابÙÙÙ) I use Tomcat v 7.0 Server Web.xml <filter> <filter-name>encoding-filter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>utf-8</param-value> </init-param> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param

Arabic data is showing ????? characters from asp.net mvc to ios app using afnetworking library [closed]

跟風遠走 提交于 2020-01-06 01:57:09
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . Arabic data is showing ????? characters from asp.net mvc to ios app using afnetworking library to handle the response object. #import "AppGateway.h" /

Arabic WordNet with not-formatted words

梦想的初衷 提交于 2020-01-05 08:47:42
问题 Is it necessary for the word input to WordNet to be formatted like "التُّفَّاحْ" and can't expect "التفاح"... is there any library or service taking not-formatted Arabic word returning a list of all its possible synonyms. 回答1: From التُّفَّاحْ to التفاح , you simply want to remove the diacritics then you need a lexical normalization tool. Try Tashaphyne, download and install then use the normalize module http://pythonhosted.org/Tashaphyne/Tashaphyne.normalize-module.html : from Tashaphyne

right to left languages and programming problems

偶尔善良 提交于 2020-01-04 11:48:32
问题 I am creating a web text editor that uses a new language I created (like BBcode). This markup language will be in Arabic but I am facing these problems : It's really hard to mix English and Arabic text in the same line in all IDE's and editors, because strange things happen (the order of words and characters changes) when replacing a text with javascript using a pattern the Arabic text doesn't appear (eg: "1 text arabic here 1".replace(/1(*)1/,"($1)") I get empty () ) How can I fix this ? 回答1

android application arabic support

旧时模样 提交于 2020-01-04 07:36:49
问题 i have followed tutorial Hello L10 in developer.android official website,but nothing regarding arabic. what are the steps needed for an android application to be in arabic? for eg,User can have either a combobox or radio button to choose from english or arabic.(i have done this). Now if user selects arabic whole application characters should be converted in arabic. even the keyboard presented should be in arabic ?if i have to make custom keyboard for this?or any other way? i dont have any

Custom Arabic font is not working on Android using jQuery mobile 1.4.0 & phonegap

蓝咒 提交于 2020-01-02 14:05:54
问题 I have been trying to use custom arabic font file "ttf" in my jQuery mobile 1.4.0 & Phonegap app for android but it didnt work on android version 4.x , the default arabic font displays in the emulator and in the actual device not my custom font . How can I use custom arabic font in jQuery mobile 1.4.0 and phonegap for android v4.x and makes it work ? Please help me .. @font-face{ font-family:'W3Arabic'; src: url("Fonts/W3Arabic.ttf"); } font { text-shadow:0 0 0; -moz-user-select: none;

Custom Arabic font is not working on Android using jQuery mobile 1.4.0 & phonegap

牧云@^-^@ 提交于 2020-01-02 14:04:39
问题 I have been trying to use custom arabic font file "ttf" in my jQuery mobile 1.4.0 & Phonegap app for android but it didnt work on android version 4.x , the default arabic font displays in the emulator and in the actual device not my custom font . How can I use custom arabic font in jQuery mobile 1.4.0 and phonegap for android v4.x and makes it work ? Please help me .. @font-face{ font-family:'W3Arabic'; src: url("Fonts/W3Arabic.ttf"); } font { text-shadow:0 0 0; -moz-user-select: none;

Android strings.xml resource - arabic language and dynamic formatted strings

烈酒焚心 提交于 2020-01-02 02:19:06
问题 Hello I have a question about arabic formatting how should I properly format this strings, it seems i can't manage this: تحميل %1$s… تم تحميل الكلمات. %1$d/%2$d! This is in sublime text 2 - but i think that there is Left-to-Right order EDITED: In Eclipse this copied from Sublime Text gets messed up a little. I hire some person to translate from english to arabic strings.xml. He used Word editor but things get messed up when coping to eclipse and I suggested to changed it in Sublime Text, that