right-to-left

Why does dir=“rtl” change order, but only sometimes?

折月煮酒 提交于 2019-12-08 12:44:03
问题 Why does <input type="text" dir="rtl" value="08/15 word"> render into word 08/15 and not into 08/15 word ? Why does <input type="text" dir="rtl" value="one word"> render into one word ? Why is the order switched in the first case but not in the second one? https://jsfiddle.net/powtac/4aLn71mb/ 回答1: dir=RTL Characteristics The order of digits in numbers (such as phone numbers) doesn’t differ from left-to-right writing. When combining symbols that can be used in both RTL and LTR languages (such

Android RTL locales. How to mirror only when locale is supported?

时光总嘲笑我的痴心妄想 提交于 2019-12-08 07:06:51
问题 I have an app that supports Hebrew and declares in the manifest its support for RTL locales. However, there are other RTL locales that I do not support and would like my View s not to be mirrored when these locales are set. For example, I don't want my app's View s to be swapped from right to left when in the Arabic locale, since I don't support Arabic and therefore text will show in English. 回答1: You can choose to turn mirroring on or off at runtime. See https://stackoverflow.com/a/17683045

How to change the angular 7 functionalities for implementing rtl language support?

ぐ巨炮叔叔 提交于 2019-12-08 06:02:20
问题 I have been doing a website in angular 7 which supports both English and Arabic language. I almost completed the English designs. I am stuck at doing the RTL design . Not in html and css codes but in angular 7 functionalities. Pretty much looking for a clean logic from start. We tried to use multiple css per page. But that did not work well. Is there any other possible ways i could make use of? If there, share your ideas. Angular 2+ localization (i18n) rtl support I used this to flip the

Is there RTL support in iPhone Application (Stoaryboard) [duplicate]

别来无恙 提交于 2019-12-08 05:45:59
问题 This question already has answers here : How to set Arabic text to right and English text to left on same label (2 answers) Closed 6 years ago . I am newbie for iPhone application. I am fine with English and Arabic text (selecting language at the start of application) however just curious how to format the screen from LTR to RTL. Is there support in iPhone storyboard for RTL in layout? Answer I have asked somewhat same question and there I found answer. How to set Arabic text to right and

Best approach to change Xib direction programmatically

岁酱吖の 提交于 2019-12-07 12:03:59
问题 I have an app that has a settings page in which the user can change the app's language. Eventually, the direction of the xibs will change. To explain a bit more, if the language is English for example, the direction will be LTR; However if it's Arabic, it will be RTL. Question What is the best approach to achieve this? Approaches tried with issues NSUserDefaults : When setting the language to "ar-SA", the direction changes successfully but only when it's called in the main class. When I do it

ViewPager for screen slides from right to left

送分小仙女□ 提交于 2019-12-07 08:42:31
问题 I am using ViewPager for screen slide it works fine for language's script from left to right but for Arabic script which is actually right to left is not feasible can i swipe pages of viewpager in reverse order? 回答1: Try this, viewPager.setCurrentItem(ViewPagerSize); and this will make user swipe right to left 回答2: At the time of this post, ViewPager still doesn't handle RTL correctly. Here's a a workaround when using TabLayout: Set android:layoutDirection="ltr" in the TabLaout XML, so it

Android : Navigation button show wrong side when layout direction is RTL

痞子三分冷 提交于 2019-12-07 06:18:18
问题 I asked this question before (here) but nobody answered so I ask It a little bit simpler. The problem is when I change the layout direction to RTL (in xml file : android:layoutDirection="rtl" or programmatically : if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1){ getWindows().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL); } doesn't matter) the navigation icon remain LTR How can I fix this issue? To be more specific the arrow should point at right! 回答1: In the

How to override RTL support on a layout in Android

♀尐吖头ヾ 提交于 2019-12-07 03:54:10
问题 I set android:supportsRtl="true" in the <application> tag in AndroidManifest.xml, but I need to force one of the views to be left-to-right nonetheless, even when the language of the interface is Hebrew or Arabic. How can I force a specific view to be LTR in an RTL application? Specifically, I want to force some linear layout to go left-to-right instead of the default right-to-left even when the language is right-to-left. 回答1: Generally gravity="left" is enough to force text to be left-to

Right to left for specific text in react-native RTL

泄露秘密 提交于 2019-12-07 02:02:29
问题 I am developing app in arabic in react native , i have used the tabs and menu from native base. i have aligned right because there is only single word . but now i have to write sentence which is right to left aligned. Is there way to set RTL format for specific text because when i set the I18nManager.forceRTL(true); it changed it for whole app and my previous work is all ruined and tabs not work correctly . please help . 回答1: The React Native version is 0.57 now, And there is no react native

How to make right-to-left language (eg.Arabic) characters behave like left-to-right languages do in qt?

穿精又带淫゛_ 提交于 2019-12-06 22:10:38
Qt provides a powerful adaptive way to deal with left-to-right languages and right-to-left languages texts.But I encounter my problems dealing with my goals. Picture No.1 What I want to get Picture No.2 What I got when paste to my QTextEdit based widget what picture no.1 shows Picture No.3 What I got when I set text-direction to left-to-right as shown below: QTextDocument *doc = ui->textEdit->document(); QTextOption textOption = doc->defaultTextOption(); textOption.setTextDirection(Qt::LeftToRight); doc->setDefaultTextOption(textOption); ui->textEdit->setDocument(doc); Making it left-to-right