persian

emacs font for western and Other like rtl

梦想与她 提交于 2019-12-05 01:45:14
问题 In office like libreOffice we have two type font in style, western font and CTL font. all English font use western font and other things like persian and arabic font use CTL font. in emacs 24 i want western text use this settings '(default ((t (:stipple nil :background "black" :foreground "chartreuse" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 96 :width normal :family monaco )))) and all rtl and persian text use some thing

Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong

和自甴很熟 提交于 2019-12-04 16:29:29
问题 Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong my string is: به نام خداوند بخشنده مهربان Describe In image: How can this problem be solved? 回答1: In the install directory, in the file bin/idea.properties , add one of the following: editor.new.rendering=true Use the new rendering engine which has rtl support. This is default since PhpStorm 2016.1. editor.disable.rtl=true This is only a workaround: characters will simply appear left-to-right instead. 来源: https://stackoverflow.com

Persian Calender in MVC , Asp.net

旧时模样 提交于 2019-12-04 13:03:46
问题 I use a DateTime variable in MVC and I want to show Persian calender for @Html.EditorFor(x=> x.ProductionDate) How can I do it? 回答1: I found the solution 1.Go to www.amib.ir/weblog/?page_id=316 and download the latest version of "AMIB_jsPersianCal" 2.Add "js-persian-cal.min.js" and "js-persian-cal.css" and "pcal.png" to your project you can change the css for specified the Url of PNG file 3.Add the css and js file to your cshtml file <link href="@Url.Content("~/Content/js-persian-cal.css")"

How to show Persian numbers on ASP.NET MVC page?

允我心安 提交于 2019-12-04 12:22:30
I'm building a site which needs to support both English and Persian language. The site is built with ASP.NET MVC 3 and .NET 4 (C#). All my controllers inherit from a BaseController, which sets culture to "fa-IR" (during test): Thread.CurrentThread.CurrentCulture = new CultureInfo("fa-IR"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("fa-IR"); In my views, I'm using static helper classes to convert into right timezone and to format date. Like: DateFormatter.ToLocalDateAndTime(model.CreatedOnUtc) I'm doing the same for money with a MoneyFormatter. For money, the currency prints

iOS 10.3 safari text-align:justify bug for Persian/Arabic content

≯℡__Kan透↙ 提交于 2019-12-04 12:21:05
My website was working and viewing well on every mobile browser of my iPhone before updating to 10.3. From the time I updated my iOS to 10.3, my content page faced an issue: Content is wrapped in a <div> with CSS property of text-align: justify . My content is in Persian (Farsi) . The problem is: my text content overflows container and when I add a padding to the container to see if it is just overflowed, I found out that it isn't rendering it justified and it's showing it right aligned . Is there anyone with this issue? Can anyone help? Update I've added a codepen example: Click Here To Open

Why 'ARABIC LETTER PEH' is not shown correctly on Android 3.x?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 11:48:45
In Unicode characters the ARABIC LETTER PEH INITIAL FORM 'ﭘ' is 0xFB58 . When I use the following code to show Unicode characters, everything is OK for every Unicode character in Android 2.2, 2.3. and 4.x But I have problem with ARABIC LETTER PEH 'ﭘ' on Android 3.x and in this case character '~' is shown. Typeface tf = Typeface.createFromAsset(context.getAssets(),"TAHOMA.TTF"); strChars = ""; strChars += (char) 0xFB58; tvChars.setTypeface(tf); tvChars.setText(strChars); I should mention that The problem is remained when I change the font or ignore using setTypeface(tf) Why? How can I find the

How to write unicode character farsi in C++ in ms-dos console?

谁说我不能喝 提交于 2019-12-04 11:42:56
问题 How to write unicode character farsi in c++ in ms-dos? cout<<"Helo world"<<"سلام جهان"; 回答1: #include <iostream> #include <locale> #include <string> int main() { using namespace std; wstring wcs = L"中文"; locale old = wcout.imbue(locale("") ); // "" is environment's default locale wcout<<wcs<<endl; wcout.imbue(old ); // restore old locale } 回答2: You need to convert the string to proper codepage. MS-DOS codepages are named like CP437, with CP followed by three digits. Notice that normally only

How to convert english numbers inside a string to Persian/Arabic numbers in Objective-C?

a 夏天 提交于 2019-12-04 03:30:07
问题 I have an english string that may or may not have numbers. But i want those numbers to be printed on screen as Persian numbers. For example if NSString *foo = @"a string with numbers 1 2 3;" then output should be a string with numbers ۱۲۳ The code I'm using right now is : -(NSString *)convertEnNumberToFarsi:(NSString *) number{ NSString *text; NSDecimalNumber *someNumber = [NSDecimalNumber decimalNumberWithString:number]; NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];

persian/arabic search in sqlite android gives bad result

 ̄綄美尐妖づ 提交于 2019-12-03 16:16:49
问题 i have a problem with sqlite database. it seems to not support full persian/arabic characters. when i search some fields based on persian chars, most of the times Sqlite can't recognize those chars. i insert data into database by copy them from HTML file. so when i type string and search, no result show. but if i copy string and search, it works. The string from the HTML file is: "احكام خمس" The typed string is: "احکام خمس" 回答1: These strings are different. The HTML string begins with the

Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong

不想你离开。 提交于 2019-12-03 10:30:34
Copy and Paste String (Persian, Arabic) in PHPStorm is Wrong my string is: به نام خداوند بخشنده مهربان Describe In image: How can this problem be solved? In the install directory, in the file bin/idea.properties , add one of the following: editor.new.rendering=true Use the new rendering engine which has rtl support. This is default since PhpStorm 2016.1. editor.disable.rtl=true This is only a workaround: characters will simply appear left-to-right instead. 来源: https://stackoverflow.com/questions/25851308/copy-and-paste-string-persian-arabic-in-phpstorm-is-wrong