persian

Is there any library or algorithm for Persian (Shamsi or Jalali) calendar in Android? [closed]

一笑奈何 提交于 2019-11-26 23:42:50
I want to convert Gregorian (western) date to Persian (Shamsi) date and vice versa for all versions of Android. Is there any complete and reliable library or algorithm? Bobs I'm using this algorithm for years and it is very accurate between 1901 and 2099. Use it and Enjoy! :) public class Utilities { private class SolarCalendar { public String strWeekDay = ""; public String strMonth = ""; int date; int month; int year; public SolarCalendar() { Date MiladiDate = new Date(); calcSolarCalendar(MiladiDate); } public SolarCalendar(Date MiladiDate) { calcSolarCalendar(MiladiDate); } private void

MS Word VBA to display Unicode strings

放肆的年华 提交于 2019-11-26 22:12:01
问题 We have some VBA code in MS Word 2010 which needs to display Persian (Farsi) words dynamically; in other words, depending on which buttons the user clicks on the VBA app window, we will display a different string of Persian. The only way we discovered to do this was to use something like this and concatenate a very long string character by character: the ChrW(&633) . Do you know another way we can do this? The strings will remain the same, but we need a couple of different ones. Can they be

Is there any library or algorithm for Persian (Shamsi or Jalali) calendar in Android? [closed]

 ̄綄美尐妖づ 提交于 2019-11-26 08:48:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I want to convert Gregorian (western) date to Persian (Shamsi) date and vice versa for all versions of Android. Is there any complete and reliable library or algorithm? 回答1: I'm using this algorithm for years and it is very accurate between 1901 and 2099. Use it and Enjoy! :) public class Utilities { private

How to support Arabic text in Android?

你。 提交于 2019-11-25 22:32:58
问题 I am getting Arabic text from server successfully. Retrieved text I want display in code but its showing boxes instead of Arabic text. Assume that t array values are Arabic text from server. string[] t={\" \"}; Textview tv = (Textview) findviewByid(R.id.text); tv.setText(t[0]); 回答1: Android 2.1 does not have Arabic font. Android 2.2 has Arabic font but does not show your word correctly. Android 3.x supports Arabic completely. For Android 2.1 you must set the typeface Farsi.GetFarsiFont(this)