arabic

RTL not working in pdf generation with itext 5.5 for Arabic text

筅森魡賤 提交于 2019-12-28 04:32:26
问题 I have java code that writes arabic characters with the help of itext 5.5 and xmlworker jars, but its writing left to right even after writer.setRunDirection(PdfWriter.RUN_DIRECTION_RTL) is used. Code used is: public class CreateArabic extends DefaultHandler { /** Paths to and encodings of fonts we're going to use in this example */ public static String[][] FONTS = { {"C:/arialuni.ttf", BaseFont.IDENTITY_H}, {"C:/abserif4_5.ttf", BaseFont.IDENTITY_H}, {"C:/damase.ttf", BaseFont.IDENTITY_H}, {

In Unicode, why are there two representations for the Arabic digits?

▼魔方 西西 提交于 2019-12-28 02:47:29
问题 I was reading the specification of Unicode @ Wikipedia (Arabic Unicode) and I see that each of the Arabic digits has 2 Unicode code points. For example 1 is defined as U+0661 and as U+06F1. Which one should I use? 回答1: According to the code charts, U+0660 .. U+0669 are ARABIC-INDIC DIGIT values 0 through 9, while U+06F0 .. U+06F9 are EXTENDED ARABIC-INDIC DIGIT values 0 through 9. In the Unicode 3.0 book (5.2 is the current version, but these things don't change much once set), the U+066n

Using Arabic characters with google TTS API

﹥>﹥吖頭↗ 提交于 2019-12-25 08:55:12
问题 I'm using the google TTS API and I want to make a query in Arabic but keep getting errors and I have set the text file encoding set to UTF-8, here is my code String oLanguage = "ar"; MediaPlayer player = new MediaPlayer(); String mainText = "الله"; try { player.setAudioStreamType(AudioManager.STREAM_MUSIC); player.setDataSource("http://translate.google.com/translate_tts?tl=" + oLanguage + "&q=" + mainText); player.prepare(); player.start(); } catch (Exception e) { // TODO: handle exception }

PL/SQL arabic displayed as?

假如想象 提交于 2019-12-25 07:43:08
问题 When I query for data that have arabic text in PL/SQL Developer, It is showed as question marks (????). I am sure the data is correctly stored in DB because it shows on website properly, also on the server. So I think it is a problem related to my PL/SQL Developer (v8.0.4.1514). Is there any way to change how PL/SQL Developer shows/encodes arabic text? How to check in what format/encoding the arabic text is stored? My question might be missing some details, So Just ask me and also keep in

Android - Menu Items don't show up in Arabic

♀尐吖头ヾ 提交于 2019-12-25 07:18:40
问题 I am making an Android app, and want to display a Menu of two items (Home Page , Logout). My problem exactly is the Menu items don't show up at all when i switch my phone's language to Arabic. When i set my phone to the English language, the Menu item shows up and all work superfine. unless when i switch the phone's language to Arabic, every text showing up in Arabic except the Menu. No Menu at all..!! please any help?? Here is the java code: @Override public boolean onCreateOptionsMenu(Menu

Why are there extra spaces in this context?

坚强是说给别人听的谎言 提交于 2019-12-25 06:55:03
问题 This is my code to print some data: System.Drawing.Font valueFont = new System.Drawing.Font("Arial", 15, System.Drawing.FontStyle.Regular); string dataToPrint = ""; dataToPrint += fixLength("رقم بطاقة التسويق") + farmID.Text + Environment.NewLine; dataToPrint += fixLength("إسم صاحب المزرعة") + farmOwner.Text + Environment.NewLine; dataToPrint += fixLength("رقم المزرعة") + farmNumber.Text + Environment.NewLine; dataToPrint += fixLength("الموبايل") + farmMobile.Text + Environment.NewLine;

C# localization. Problems with mixing of Left-to-Right words with Right-to-left words in the same sentence

拜拜、爱过 提交于 2019-12-25 04:19:16
问题 I'm looking on how to solve problems while mixing words that require right-to-left(like arabic) reading and left-to-right words (like English). The problem we encounter is that when inserting a LTR word inside a sentence meant to be read in RTL (inserting an English word inside an Arabic sentence for eg): the English text is correctly written from left to right,but the problem is that the Arabic part that comes after ends-up on the wrong side. The context of this is that the program I'm

Arabic characters from html content to pdf using iText

為{幸葍}努か 提交于 2019-12-25 01:28:40
问题 I am having trouble to display the Arabic Characters from HTML Content in PDF Generation as " ? " I am able to display the Arabic text from String variable. At the same time I am not able to generate the Arabic Text from the HTML String. I want to display the PDF with two column, left side English and the right side Arabic Text. when I use the following program to convert into pdf. Please help me in this regard. try { Document document = new Document(PageSize.A4, 50, 50, 50, 50);

Gammu SMS in Arabic using PHP does not be delivered

本秂侑毒 提交于 2019-12-24 23:37:21
问题 I'm trying to have my own SMS gateway on my server using PHP. I have installed Gammu and I configured the permissions and settings well. Now it send SMS fine using the following prototype script: <?php $text = $_POST['text']; $numb = $_POST['numb']; if ($text != '' && $numb != ''){ //die('echo "'.$text.'" | gammu --sendsms TEXT '.$numb); echo "<pre>"; //die(passthru('whoami')); $command = 'echo "'.$text.'" | gammu --sendsms TEXT '.$numb.' >> '.__DIR__.'/smslog.txt';//.'" | gammu --sendsms

Can I use below code (html, css) to make my website compatible with RTL?

北城余情 提交于 2019-12-24 19:43:22
问题 I know that there is some standards from w3.org. However this is just a thought. Instead of using "dir" in html and body tag, can I use below custom attribute to identify layout? Actual : <html dir="rtl"> My : <html layout="rtl"> After identifying Layout from above Tag, Is that suggested to use below line of code in css? Code : html[layout="rtl"] .heading-main , .title, .content { direction: rtl !important; text-align: right !important; } So that, I can add desired css code to selected