right-to-left

NSAlert for right to left languages (reversed layout)

こ雲淡風輕ζ 提交于 2019-12-12 04:53:53
问题 I want to create localized NSAlert for right to left language like Arabic and Hebrew. How can I reverse the layout so that Icon is on the right, TextField on the left, and also buttons start from the left side of the alert? I can't seem to find the proper answer anywhere. Thanks, N 回答1: Apple has a Human Interface Guidelines that are somewhat strict about the ordering & placement of things. For example, in the "Place buttons appropriately" section of this HIG documentation, buttons most

Itext 5.5 Converting HTML to PDF for RTL languages (Arabic) not working on tomcat

你说的曾经没有我的故事 提交于 2019-12-12 04:17:41
问题 I am wiriting HTML to PDF Conversion of Arabic Text from Itext 5.5 and XMLWorker . This works perfectly fine when run stand alone Java program. (it sprint language in RTL as expected) but always print LTR when run the same program in tomcat. (tried even with hardcoded string, file inside tomcat application code). Here is the sample code . Taken from http://developers.itextpdf.com/question/how-convert-arabic-html-pdf public void createPdf(File file) throws IOException, DocumentException { //

jQuery move div left on click then right on click

懵懂的女人 提交于 2019-12-12 04:06:55
问题 I have a div that sits just off the right of my screen (-190px). When I click another div (called coffee) I want the offscreen div to appear, then when I click the coffee div again, I want the other div to move offscreen again. Currently my code moves it on screen then immediately back off. $('span.coffee').click(function(){ $('.quick_contact').animate({'right' : '0px'}); }); $('span.coffee').click(function(){ $('.quick_contact').animate({'right' : '-190px'}); }); How can I make it so that it

Hebrew and normal text not displaying right

我的未来我决定 提交于 2019-12-12 03:33:15
问题 I'm trying to display Hebrew and normal text mixed, the text comes from a SQLite database and is displayed in a listview that gets pulled from my database in the Assets folder. I want to display the following: ‘אנא אנא - Ek is, was, sal wees Wie Ek is, was, sal wees.” But it gets displayed as: ”.Ek is, was, sal wees Wie Ek is, was, sal wees - אנא אנא‘ When the hebrew text is between other normal text its fine like: ‘He says אנא אנא - I am, was, shall be Who I am, was, shall be.” The text only

Kendo PDF export issue for RTL languages

Deadly 提交于 2019-12-12 03:13:58
问题 I want to export PDF from Kendo Grid Using ASP.MVC, that's work fine but when the texts are in RTL mode(ex Arabic/Persian) its not OK! : As you seen in the picture, the orange buttons must show "ویرایش" but it Won't! 回答1: RTL content is not supported for PDF exporting: http://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom#known-limitations 来源: https://stackoverflow.com/questions/39488786/kendo-pdf-export-issue-for-rtl-languages

How to print right-to-left report on odoo 8

十年热恋 提交于 2019-12-11 20:38:09
问题 I created a report in odoo 8 using RML, everything is good. but when i print the report, caracteres are printed from left to right. I tried with drawRightString but nothing does appears on the PDF. I used openerp-rtl module but I noticed no changes. What can i do to print it in RTL mode. 回答1: Generally people working on Right to left text on Arbic Language. so in this case you just install the below python-bidi package : https://pypi.python.org/pypi/python-bidi/ python-bidi package is helpful

Arabic tooltips issue in IE

喜你入骨 提交于 2019-12-11 17:32:24
问题 I have developed many bilingual(English and Arabic) sites, but recently I have observed tooltip issue in IE(<=8 versions) for Arabic version sites. No 'RTL' applied for Arabic tooltips and there is no word formation of Arabic Characters. All my sites are W3 Compliance. I did not understand, is it a browser issue or do I need to fix in code to display proper tooltips in IE? 回答1: you have to install RTL language support in the host system (e.g. WinXP) to show the RTL tooltip in correct order in

React-native support RTL and LTR without changing device language

假装没事ソ 提交于 2019-12-11 15:50:05
问题 I have used react-native-i18n package for supporting international language. It is working but now I want my application can change RTL and LTR inside application according to language without changing device language. I used native base components in my application. So I cannot change their styling and If it is possible then How? I have created settings option to change language and it is changing but how to change LTR to RTL and RTL to LTR all the components of application. If there is any

Setting dir=“rtl” in <html> tag doesn't seem to work, works in <h:body>

时光毁灭记忆、已成空白 提交于 2019-12-11 10:53:46
问题 I want to write the text of a JSF with dir="rtl" (Right To Left) when a condition is satisfied. I have checked in a HTML file that if you write in the html tag dir="rtl", like this: <html dir=rtl"> All the pages tags are set dir="rtl", without having to write dir="rtl" in each tag. But when I write in my XTHML file the following code, and the condition is false but it does not work, the pages tags are NOT set dir="rtl". <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com

Android canvas not drawing on rtl

萝らか妹 提交于 2019-12-11 09:47:33
问题 I have the following view class: public class MyHorizontalViewIndicator extends View{ protected synchronized void onDraw(Canvas canvas) { super.onDraw(canvas); Paint paint = new Paint(); paint.setTextSize(30); canvas.drawText("Test",90, 90, paint); } } <com.my.myview.MyHorizontalViewIndicator android:id="@+id/view_indicator" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="4dp" android:layoutDirection="inherit"/> When the language is English,