Related
Saeed Hashemi I have an edittext of a form, and when the user enters text into the edittext, I want the program to detect which language the edittext is inserted in. Is there a way to determine if a string is English or Persian? I found this arabic code public
Arash Moeen I have a webview that will load a string from a URL, I'm not sure if this is correct, but all I want to do is check if the string is in persian, so I change the webview's text alignment to rtl otherwise, if it's english, then change it to ltr. Is i
Victor S: Is there a way to determine if a string is English or Arabic? Eyal Schneider: Here is the simple logic I just tried: public static boolean isProbablyArabic(String s) {
for (int i = 0; i < s.length();) {
int c = s.codePointAt(i);
Victor S: Is there a way to determine if a string is English or Arabic? Eyal Schneider: Here is the simple logic I just tried: public static boolean isProbablyArabic(String s) {
for (int i = 0; i < s.length();) {
int c = s.codePointAt(i);
graphtheory12345678 I have an input string, some of which do not contain actual words (e.g. it contains mathematical formulas such as x^2 = y_2 + 4. I want a way to split the input string by whether there are substrings of actual English words. E.g: If my stri
Victor S: Is there a way to determine if a string is English or Arabic? Eyal Schneider: Here is the simple logic I just tried: public static boolean isProbablyArabic(String s) {
for (int i = 0; i < s.length();) {
int c = s.codePointAt(i);
graphtheory12345678 I have an input string, some of which do not contain actual words (e.g. it contains mathematical formulas such as x^2 = y_2 + 4. I want a way to split the input string by whether there are substrings of actual English words. E.g: If my stri
graphtheory12345678 I have an input string, some of which do not contain actual words (e.g. it contains mathematical formulas such as x^2 = y_2 + 4. I want a way to split the input string by whether there are substrings of actual English words. E.g: If my stri
graphtheory12345678 I have an input string, some of which do not contain actual words (e.g. it contains mathematical formulas such as x^2 = y_2 + 4. I want a way to split the input string by whether there are substrings of actual English words. E.g: If my stri
graphtheory12345678 I have an input string, some of which do not contain actual words (e.g. it contains mathematical formulas such as x^2 = y_2 + 4. I want a way to split the input string by whether there are substrings of actual English words. E.g: If my stri
graphtheory12345678 I have an input string, some of which do not contain actual words (e.g. it contains mathematical formulas such as x^2 = y_2 + 4. I want a way to split the input string by whether there are substrings of actual English words. E.g: If my stri
Dr. Ali: How to convert Persian/Arabic numbers to English numbers with a simple function? arabicNumbers = ["١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩", "٠"]
persianNumbers = ["۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹", "۰"]
It's the same schema, but the code
Dr. Ali: How to convert Persian/Arabic numbers to English numbers with a simple function? arabicNumbers = ["١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩", "٠"]
persianNumbers = ["۱", "۲", "۳", "۴", "۵", "۶", "۷", "۸", "۹", "۰"]
It's the same schema, but the code
Ryan Consider the following two strings, the first is a code and the second is an English sentence (wording to be precise). How to detect that the first is code and the second is not. 1. for (int i = 0; i < b.size(); i++) {
2. do something in English (not nece
Ryan Consider the following two strings, the first is a code and the second is an English sentence (wording to be precise). How to detect that the first is code and the second is not. 1. for (int i = 0; i < b.size(); i++) {
2. do something in English (not nece
Ryan Consider the following two strings, the first is a code and the second is an English sentence (wording to be precise). How to detect that the first is code and the second is not. 1. for (int i = 0; i < b.size(); i++) {
2. do something in English (not nece
Hundreds of Garshabu: I wrote a custom TextView for persian strings which should replace english numbers with persian numbers public class PersianTextView extends TextView {
public PersianTextView(Context context) {
super(context);
}
publ
Hundreds of Garshabu: I wrote a custom TextView for persian strings which should replace english numbers with persian numbers public class PersianTextView extends TextView {
public PersianTextView(Context context) {
super(context);
}
publ
Hundreds of Garshabu: I wrote a custom TextView for persian strings which should replace english numbers with persian numbers public class PersianTextView extends TextView {
public PersianTextView(Context context) {
super(context);
}
publ
retrieve data Hi, I have a dataset of strings, some strings contain mixed words like this: سلام12World
دوربینdigital
سال2012good
...and my desired output is: 12 سلام world
دوربین digital
2012 سال good
Here is my code: def spliteKeyWord(
retrieve data Hi, I have a dataset of strings, some strings contain mixed words like this: سلام12World
دوربینdigital
سال2012good
...and my desired output is: 12 سلام world
دوربین digital
2012 سال good
Here is my code: def spliteKeyWord(
Sohan My English strings may not have numbers. But I want the numbers to be printed on the screen as Persian numbers. For example, ifNSString *foo = @"a string with numbers 1 2 3;" Then the output should bea string with numbers ۱۲۳ The code I am using now is:
Sohan My English strings may not have numbers. But I want the numbers to be printed on the screen as Persian numbers. For example, ifNSString *foo = @"a string with numbers 1 2 3;" Then the output should bea string with numbers ۱۲۳ The code I am using now is:
Sohan My English strings may not have numbers. But I want the numbers to be printed on the screen as Persian numbers. For example, ifNSString *foo = @"a string with numbers 1 2 3;" Then the output should bea string with numbers ۱۲۳ The code I am using now is:
Sohan My English strings may not have numbers. But I want the numbers to be printed on the screen as Persian numbers. For example, ifNSString *foo = @"a string with numbers 1 2 3;" Then the output should bea string with numbers ۱۲۳ The code I am using now is:
M0RT3Z4 I have a regex pattern for validating persian characters: /^[\u0600-\u06FF\s]+$/
But it doesn't accept numbers. I don't know how to edit. I want this schema to accept English and Perisan/Farsi numbers. thanks for help Tim Biegeleisen Your pattern appe
M0RT3Z4 I have a regex pattern for validating persian characters: /^[\u0600-\u06FF\s]+$/
But it doesn't accept numbers. I don't know how to edit. I want this schema to accept English and Perisan/Farsi numbers. thanks for help Tim Biegeleisen Your pattern appe
M0RT3Z4 I have a regex pattern for validating persian characters: /^[\u0600-\u06FF\s]+$/
But it doesn't accept numbers. I don't know how to edit. I want this schema to accept English and Perisan/Farsi numbers. thanks for help Tim Biegeleisen Your pattern appe
alaraisa Here is the string: str="[@PEYear]/ف/[@POOL]"
I want to replace it based on this structure: if (str.Contains("[@PEYear]"))
str = str.Replace("[@PEYear]", "1393");
if (str.Contains("[@POOL]"))
str = str