persian

Parse a persian pdf file to txt and its images

时光总嘲笑我的痴心妄想 提交于 2019-12-13 02:15:38
问题 I used this code for convert a English pdf and it work perfectly, but when i use it for Persian file, its output has no Persian character !! how i can parse a Unicode pdf to a text file and a folder contains image files? using System; using System.IO; using iTextSharp.text.pdf; using System.Text.RegularExpressions; namespace Spider.Utils { /// <summary> /// Parses a PDF file and extracts the text from it. /// </summary> public class PDFParser { /// BT = Beginning of a text object operator ///

generating Persian PDF with iText

巧了我就是萌 提交于 2019-12-12 10:43:33
问题 Hi I know that many people may have asked this question before. I've read almost all of them`but it couldn't help me solve my problem. I'm using iText java library to generate a Persian PDF. I'm using the following code: Document document = new Document(PageSize.A4,50,50,50,50); FileOutputStream fos = new FileOutputStream("D:\\ITextTest.pdf"); PdfWriter writer = PdfWriter.getInstance(document,fos); document.open(); BaseFont bf = BaseFont.createFont("C:\\Windows\\Fonts\\XB YagutBd.ttf",

How can I write vigenere cryptanalysis of persian text?

点点圈 提交于 2019-12-12 04:17:25
问题 How can I write Vigenere cryptanalysis for persian language? Is there any sample source code for persian? 回答1: I was unable to find a Persian-language version of Vignere cryptanalysis. You could try one of the solutions here and adapt the alphabet used to the persian alphabet. (You'll need persian-language letter usage statistics, it won't work with english ones.) I recommend the python but that's just personal taste. 来源: https://stackoverflow.com/questions/34795192/how-can-i-write-vigenere

get pressed key and throw another key in android

青春壹個敷衍的年華 提交于 2019-12-11 22:12:44
问题 i want to make an android app that works in background and get's what key is pressed in keyboard and throw Equivalent of it in another language,for example persian or arabic. how can i do this? thanks for your help. 回答1: I doubt you can write such APP, this would violate lots of security measures in android. But you can write your own custom soft keyboard: How to develop a soft keyboard for Android? user will have to choose your keyboard explicitly in settings. You will be able to do all the

How can i use Persian date (Shamsi) in excel 2007?

淺唱寂寞╮ 提交于 2019-12-11 10:04:42
问题 I,d like to use Persian date (Hijri- Shamsi) in excel 2007 worksheet directly as the base of calculation.but dont know how? 回答1: I would convert the Persian dates to Julian dates via VBA , perform the calculations with standard Excel functions and then convert them back to Persian with VBA I posted a reference here 来源: https://stackoverflow.com/questions/22880225/how-can-i-use-persian-date-shamsi-in-excel-2007

Show another characters instead of persian characters by connect to mysql in android [duplicate]

烈酒焚心 提交于 2019-12-11 08:41:09
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: UTF-8 all the way through I want to write a web application in android and use php to connect with mysql.this app is in Persian. when I connect to mysql only with php, I can see data in Persian(therfore my connection to mysql is true) but when i use this php in android app to connect to mysql, I don't get data in Persian. please help. 回答1: your table must charset UTF-8, before insert & before select you must use

how to use nodatime for persian in c#?

穿精又带淫゛_ 提交于 2019-12-11 08:33:19
问题 nodatime 1.3 released , but i want to use nodatime in c# for Persian date time . how can i show Persian date time with Noda Time? var london = DateTimeZoneProviders.Tzdb["Europe/London"];" What must I do for Persian? 回答1: You need to explicitly use the Persian calendar. For example: var calendar = CalendarSystem.GetPersianCalendar(); var zone = DateTimeZoneProviders.Tzdb["Europe/London"]; var now = SystemClock.Instance.Now.InZone(zone, calendar); // Now you can get the month, etc. Or to

wrinting persian in kivy list view item

百般思念 提交于 2019-12-11 08:29:58
问题 I've another problem in kivy programming. I wanht to write persian in my App and in used Arabi_reshaper for it. when i try to do sth like this: # -*- coding: utf-8 -*- import kivy from kivy.app import App from kivy.uix.floatlayout import FloatLayout from kivy.lang import Builder from bidi.algorithm import get_display import arabic_reshaper Builder.load_string( ''' <TI> but: but Button: id: but font_name: 'data/fonts/DejaVuSans.ttf' font_size: '45dp' ''') class TI(FloatLayout): def __init__

Is there any way to change the order and type of numbers in table of contents of restructured texts?

◇◆丶佛笑我妖孽 提交于 2019-12-11 07:39:20
问题 Using restructured texts is an easy way for writing formatted texts. But there are some problems regarding to left to right languages. I appreciate any helpful comment to solve these problems or at least some helpful guidance. I usually use rst2html to convert rst files to htmls. 1- "section-numbering" always produces left to right numbering while in right to left languages like Farsi, Arabic, Urdu, and Hebrew the order of numbers must be reversed. The digits of numbers have the same position

Searching Persian characters and words in SQL server with different encoding

拈花ヽ惹草 提交于 2019-12-11 02:29:31
问题 I have a text file that contains Persian words and the file is saved using ANSI encoding. when I try to read the Persian words from the text file, I get some characters like '?'. In order to solve the problem, I wrote a method that change the file encoding to UTF8 and re-write the text file. the method: public void Convert2UTF8(string filePath) { //first, read the text file with "ANSI" endocing StreamReader fileStream = new StreamReader(filePath, Encoding.Default); string fileContent =