arabic

My field name is Arabic and didn't work

穿精又带淫゛_ 提交于 2019-12-02 11:29:47
I'm working on a database in access and I need to insert data into a table from a form when a button is clicked. Here is my code, but it didn't work. Is the problem with my fields' names as it is Arabic? Dim strInsert As String Dim db As DAO.Database strInsert = "INSERT INTO ÇáÍÖæÑ æ ÇáÇäÕÑÇÝ [(ÑÞã ÇáãáÝ )] values ('" & fileNO.Value & "');" Debug.Print strInsert db.Execute strInsert Set db = Nothing note: the undefined characters is the Arabic name There is no probleme with arabic, you've just to use utf-8 encoding when you create the Database. CREATE DATABASE "myDataBase" ENCODING = 'UTF8'; I

Updating text of a pdf, cannot replace string with Arabic word - itext Java

别等时光非礼了梦想. 提交于 2019-12-02 11:08:59
I am reading a pdf and updating the text of the pdf. It seems to work fine when I replace it with English word but when I replace it with Arabic word, it doesn't work. In my case, the PdfObject would always be of type Indirect so dict.get(PdfName.CONTENTS).isArray() would be false in all cases public static void manipulatePdf(String src, String dest) throws IOException, DocumentException { PdfReader reader = new PdfReader(src); PdfDictionary dict = reader.getPageN(1); PdfObject object = dict.getDirectObject(PdfName.CONTENTS); if (object instanceof PRStream) { PRStream stream = (PRStream)

Storing Arabic Words using Apache Solr 3.6.1

只愿长相守 提交于 2019-12-02 09:17:28
问题 For Arabic to search & index have configured the following , Schema.xml: <fieldType name="text_ar" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.ArabicNormalizationFilterFactory"/> <filter class="solr.ArabicStemFilterFactory"/> </analyzer> </fieldType> OUTPUT in Browser: <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">1</int> <lst name="params"> <str name="indent">on</str

Storing Arabic Words using Apache Solr 3.6.1

孤人 提交于 2019-12-02 07:17:49
For Arabic to search & index have configured the following , Schema.xml: <fieldType name="text_ar" class="solr.TextField" positionIncrementGap="100"> <analyzer> <tokenizer class="solr.StandardTokenizerFactory"/> <filter class="solr.ArabicNormalizationFilterFactory"/> <filter class="solr.ArabicStemFilterFactory"/> </analyzer> </fieldType> OUTPUT in Browser: <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">1</int> <lst name="params"> <str name="indent">on</str> <str name="start">0</str> <str name="q">*:*</str> <str name="version">2.2</str> <str name="rows">10<

scan in arabic characters netbeans 8

喜你入骨 提交于 2019-12-02 06:58:36
问题 I have this simple code that prints Arabic sentence and scan arabic characters . what is drivingme crazy is that it prints in cmd right , but never scan characters it scans arabic characters in form of ��� ����� I tried everything: Scanner(System.in,"UTF-8") , Scanner(System.in,"UTF8"); please help public static void main(String[] args) { Scanner in2 = new Scanner(System.in,"UTF-8"); System.out.printf(" ادخل جملة السؤال \n"); String s = in2.nextLine(); System.out.printf(""+s+""); // TODO code

Saving Segmentation Result Automatically - Matlab Arabic OCR

走远了吗. 提交于 2019-12-02 06:56:18
Complete Segmentation code: % Preprocessing + Segmentation % // Original Code of Segmentation by Soumyadeep Sinha with several modification by Ana// % Saving each single segmented character as one file function [s] = seg (a) myFolder = 'D:\1. Thesis FINISH!!!\Simulasi I\Segmented Images'; % a = imread ('adv1.png'); % Binarization % level = graythresh (a); b = im2bw (a, level); % Complement % c = imcomplement (b); % Morphological Operation - Dilation % se = strel ('square', 1); % se = strel('rectangle', [1 2]); r = imerode(c, se); i=padarray(r,[0 10]); % i=padarray(c,[0 10]); % Morphological

Using Arabic fonts with the extension .otf

随声附和 提交于 2019-12-02 05:01:16
I'm working on a small project, where the client sent me a font that he wants me to use for the Arabic language. The file extension for the file is .otf I embedded the file, and tried to use it, and the results were: IE8: Didn't recognize the font. Chrome: Didn't recognize the font. Firefox: Recognized the font, but when viewing it the letters were separated (in Arabic language the letters of the word is connected to each other) Any idea on how to fix it on Firefox and make IE and Chrome recognize the font type ?? Here is the code is used: CSS @font-face { font-family: Dinar; src: url(

Typing Arabic numbers in JTextField

雨燕双飞 提交于 2019-12-02 04:40:45
I am trying to type Arabic numbers in a JTextField and I used DocumentListener as follows: txtName.getDocument().addDocumentListener(this); ... public void insertUpdate(DocumentEvent e){setLabel();} public void removeUpdate(DocumentEvent e){setLabel();} public void changedUpdate(DocumentEvent e){} public void setLabel() { String s = txtName.getText(); s = s.replace('0','\u0660'); s = s.replace('1','\u0661'); s = s.replace('2','\u0662'); s = s.replace('3','\u0663'); s = s.replace('4','\u0664'); s = s.replace('5','\u0665'); s = s.replace('6','\u0666'); s = s.replace('7','\u0667'); s = s.replace(

How to translate Arabic/Persian numbers to english using Ruby?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 04:25:25
How can I convert some string that has Arabic/Persian number to English ? Like if I have : str1 = "١۲١۲" str2 = "12١۲" str3 = "some string that contains persian digits like ١۲" Is there any function to encode it to english, and if the string contain such number to convert it like end results will be : str1 = "1212" str2 = "1212" str3 = "some string that contains persian digits like 12" Thanks For these one on one transformations the tr -method is very convenient and fast. It has a mutating counterpart in tr! #encoding: utf-8 str1 = "١۲١۲" str2 = "12١۲" str3 = "some string that contains persian

Right to Left Alignment for UITableView

爷,独闯天下 提交于 2019-12-02 02:49:24
问题 I am working on an arabic app for iphone 3.0. i was wondering if there is a way that i can convert the UITableViewCell to be right-to-left. I want everything to be in the opposite direction. Any thoughts? 回答1: Creating your own UITableViewCell subclass is not that hard to do and is probably the first thing you'll want to do to get a custom look. All you'll need is a custom XIB file and a bit of modified code in your cellForRowAtIndexPath function: NSString *CellIdentifier = @