Questions tagged [left-to-right]
Left to Right (LTR) refers to the scripts of natural languages that are written and read from the left to the right, which most languages using the Latin alphabet — like English — are.
62
questions
0
votes
0
answers
9
views
How can i create slideshow that slides left to right with javascript (not jQuery)
I have a js code that created a slideshow with images fading in and out. However, i want the images to be sliding right as they appear and disappear, but not with jQuery
Here is the relevant code:
...
0
votes
1
answer
28
views
Anybody help me to solve this problem that how to sum up the elements o an array from left to right?
My challenge is to find an element of the array such that the sum of all elements to the left is equal to the sum of all elements to the right.
Example
arr=[5,6,8,11]
8 is between two subarrays that ...
0
votes
1
answer
21
views
Why does an HTML child element not seem to inherit the dir attribute when set to auto?
When I set the dir attribute to auto on a parent element, it does not appear that the child elements inherit auto, but it does appear that they inherit ltr or rtl.
According to this:
In HTML the base ...
-2
votes
1
answer
48
views
Print text from right side
May I know how to print text to the right side like:
This text is at the extreme right
I only know center code is this:...
0
votes
1
answer
75
views
Trim a character on SQL
Hi everyone this is my first time that i asked something.
I have multiple codes on my db with numbers and '/', for example:
510325205
510325205/000/01
510565025-01
510565025-01/090/03
...
I need to ...
0
votes
0
answers
36
views
Swipe from right to left in launcher
I'm make custom launcher, but I don't know what is this view in image.
It's work like viewpager but I think it isn't viewpager. I swipe from right to left it show.
What is this view ?, How can i do ...
0
votes
0
answers
48
views
Is `textAlign` value automatically reversed in RTL mode?
My question is: if I set the alignment in a Text component like this:
textAlign: "left"
Now, if I force RTL mode (I18nManager), will it automatically convert the style to textAlign: "...
-1
votes
1
answer
167
views
Disable RTL on specific UIViewController in iOS
Is there any way to disable Right-to-Left in specific ViewController? I have tried forcing semanticContentAttribute to Left-to-Right but it is not working.
self.view.semanticContentAttribute = ....
2
votes
0
answers
155
views
How to change layout direction of ConstraintLayout at runtime when `android:supportsRtl="false"` is in the manifest?
Background
I was tasked to work on an app that has android:supportsRtl="false" in its manifest. Not sure why it was set as such, but it seems that in some places the user can choose the ...
1
vote
0
answers
263
views
Xamarin Forms Entry Change flow direction issue for Arabic language
We are using a placeholder for entry. While I am changing language English to Arabic entry text working left-to-right, but entry placeholder working right-to-left. How to change entry placeholder ...
0
votes
1
answer
106
views
Expo (React Native) <Left> and <Right> work on Android and not on iPhone
The purpose of the code below is to have texts on a same row in two columns, like a html table.
This Expo code works on Android, but Text inside the Left and Right are not showing on the iPhone.
...
1
vote
1
answer
99
views
How to manage RTL languages phones in English application
I am programming an Android application. This application isn't translated to any right to left language (like Arabic or Hebrew). I've noticed that right to left language people has it in English, but ...
0
votes
1
answer
743
views
What does TextDirection really do in Flutter
What difference does using TextDirection make. It's required all over the place in Flutter but the purpose isn't clear.
For example, given the following code:
const text = 'Hello';
final textSpan = ...
2
votes
1
answer
61
views
Weird behaviour on joining mixed right-to-left and left-to-right language strings
Input:
tempTextArray:
▿ 3 elements
- 0 : "זה מבחן"
- 1 : "7 x 5 abc"
- 2 : "other text"
When doing a simple tempText = tempTextArray.joined(" | ") the result ...
2
votes
1
answer
91
views
Force English language task dialogs to be LTR on RTL systems
We have non-localized debug TaskDialogs in English. These show up RTL on a hebrew system:
How can I force them to be shown LTR? AFAICT this would be the inverse of TDF_RTL_LAYOUT.
1
vote
1
answer
57
views
Best practice to place menu Icons on the left side of the navigation drawer in Persian,Hebrew devices?
I am trying to have a navigation drawer that opens from the right. ( i managed to do that using LAYOUT_GRAVITY="END").
Now I want all the menu items to start from the right and also their ...
0
votes
1
answer
150
views
How to set the text direction in WebView to RTL (Right To Left)? [Android Studio]
When I log in to the app, I see the Webview starting from left to right.
I tried to change through the left-to-right management panel - it didn't work for me.
I tried some guides and it also did not ...
0
votes
1
answer
157
views
DecimalFormat returns weird Character when formatting negative double
i have a simple program that calculates a double value and prints it.
whenever the value of that double is negative the first character of the outputted string is \u200e,
ASCII value 8206.
i cannot ...
1
vote
1
answer
407
views
Using @mixin to achieve RTL support on Angular
I am using a mixin to convert my Angular app from LTR to RTL accordingly.
@mixin rtl($property, $ltr-value, $rtl-value) {
[dir='ltr'] & {
#{$property}: $ltr-value;
}
[dir='rtl'] & {
...
-1
votes
1
answer
44
views
RTL passwords copy/ pasting issue
I'm developing a portal in RTL language with a password generator in php/ javascript that generates randomly passwords like
F1O=a@9@
or
7$kf8F=og!$
However if i paste such passwords with special ...
1
vote
1
answer
644
views
How to keep react-native app as LTR (left to right)
I have created a simple chat application with react-native, it looks very nice when the device language is left to right, but on devices with RTL (right to left) Language it looks very bad and layout ...
1
vote
1
answer
417
views
HMMlearn library -ergodic and left-to-right topology
I have used the HMMlearn library to perform gesture recognition and in some gestures I would like to use the ergodic topology, and in other the left-to-right one. Is the topology inside the ...
3
votes
1
answer
231
views
Defining a left-to-right parser for arithmetic expressions [duplicate]
I'm having a hard time defining a left-to-right arithmetic expression parser in Haskell. What I have done so far is defining a right-to-left parser, following the "G. Hutton, Programming in Haskell" ...
0
votes
1
answer
274
views
How to display text in flutter so that RTL language is aligned right and LTR is aligned left?
Basically i want to display pre-formatted text in a flutter application.
I am using flutter_markdown. This is the closest thing i found that works for me(I have tried almost all widget of text like ...
0
votes
1
answer
35
views
How do I embed arbitrary unicode without messing up the rest of the line?
So we have header|sequence|string1|string2|directive where string1 and string2 are arbitrary Unicode junk. Assuming the input can be really trashy Unicode (I'm expecting for it to contain things like ...
0
votes
0
answers
1k
views
Angular 4 Display Arabic Characters from right to left
In my angular app, i have to able to display Arabic character from Right to Left, i am able to display the Arabic characters, but not from right to left.
Is there something in Angular that when it ...
0
votes
1
answer
65
views
How do I include both a left and right sidemenu in ionic v4?
I am trying to use a single menu for both LTR and RTL but the issue I am facing when its RTL then the menu is opening from the left side which should be from the right side
0
votes
1
answer
75
views
How does associativity of operator work during evaluation of expression?
I was learning precedence rule in C++. In which conditional operator is said to have Right to Left associativity.
I interpret this as evaluation of expression start from right and proceed to left.
...
3
votes
1
answer
173
views
Width of string to the right of a point, in a bi-directional text
*Sorry if the title is not great. I am not sure how to summarize this question into a few words.
I have a DataGridView and a search box. When the user types a query, any matching result in the ...
4
votes
1
answer
93
views
Weird behaviour when using replace on arab string
I am trying to understand why in this snippet, for a given string
عروض تبدأ من $minprice
I get
عروض تبدأ من $5821
back :(
Any help would be much appreciated! Thanks :)
var regExp = new RegExp(/...
0
votes
1
answer
176
views
Android fixed RTL and LTR orientation
Hi Im building an app in my native language which is rtl orientation Is there a way to make all supported devices to show the same UI not depending on ltr or rtl orientation?
0
votes
1
answer
736
views
Left join and ValueError: Wrong number of items passed 55, placement implies 1
I have two dataframes
one large: myTradeFrame (7401x27)
one small: specialsData (3x3)
specialsData looks like this:
coll_cusip tran_type maturity_max
0 912810SC3 BB 1.80
1 ...
-4
votes
1
answer
63
views
Java rotation of array.
I'm very new to java please check the below code. Please tell me where am wrong
Thanks in advance
import java.io.*;
import java.util.*;
public class Solution {
public void rotate(int[] nums, int ...
0
votes
1
answer
208
views
Kotlin Activity changes writing order from left to right to right to left (Phone w/ different language)
I have a Kotlin project in Android Studio and I developed a simple app...
My real device is in a different language so when I run the app on my device all the activity is stuck to the right (like you ...
9
votes
1
answer
4k
views
How to detemine the current direction of a View (RTL/LTR)?
Background
It's possible to get the current locale direction, using this:
val isRtl=TextUtilsCompat.getLayoutDirectionFromLocale(Locale.getDefault()) == ViewCompat.LAYOUT_DIRECTION_RTL
It's also ...
0
votes
0
answers
128
views
TableViewCell Delete button position is not changing when the layout changed to RTL in iOS
I am working on an English/ Arabic app in which user can change the language with in the app, so that the app layout as well as language will be changed. I am using autolayout and it is changing to ...
1
vote
1
answer
3k
views
Change css on Multi language website
I made a double language website using angular 4 and ngx-translate. one rtl and the other one ltr. How can I change the direction of text and text alignment on language change?
I cant use because I ...
2
votes
0
answers
365
views
How to set button title and image together when the UI is right to left?
I have forced my app UI to right to left direction and vice versa based on the current language.
This is code to show title below image in UIButton when left to right is active (Default). So when I ...
0
votes
0
answers
102
views
Enabling left and right swipe with angular-snap.js
I am using the Angular Snap.js library to enable a right and left swipe to perform certain actions on each side. The right side is working well, whereas I can't perform any action on the left side. ...
0
votes
2
answers
800
views
Align gridlayout left to right and right to left dynamically
enter image description hereI would like to set up a gridlayout right to left and left to right dynamically.
(the children of the gridlayout are buttons )
Does anyone know how to do that?
6
votes
2
answers
10k
views
Right-to-Left and Left-to-Right printed nicely
I want it to produce the number next to a word so that I can ask the user to select the word by using the corresponding number.
This is my code
alt_words = hlst
loopnum = 8
for i in range(loopnum):
...
4
votes
2
answers
1k
views
Link different CSS to multi-language website in ASP.Net?
I am creating multi-language (En and Ar) website in Asp.Net. I am wondering how can I link RTL CSS on switching culture from English to Arabic. I have successfully created the multi-language website ...
2
votes
5
answers
1k
views
How to set gravity for each line in android textview?
I have a String that contains English and Persian. I want if a line starts with Persian charachter then this line is displaied right to left in text view and if a line starts with English Character ...
1
vote
2
answers
2k
views
how to make the layout alignment not change if the language changed from English to Arabic Android Developing
I am developing an Android app and when i try the app on android phone with Arabic language alignment of the text-view and edit-text change i wan't change them.
Example: (TextView)(EditText) this ...
4
votes
1
answer
679
views
design from ltr to rtl automatically
I have a French website that is in LFR (Left to Right)
And the client is wanting to translate the site in hebrew thus transforming it to RTL (Right to Left). In all Hebrew Website the design is ...
8
votes
2
answers
4k
views
How to mix RTL and LTR text directions in the same <option> element?
I am implementing a RTL interface. All components and texts are RTL but numbers which are LTR.
I use <span dir="ltr"> elements to insert LTR texts into the main RTL texts.
It works in the most ...
1
vote
1
answer
35
views
Do right-to-left language natives traverse trees in a different order than left-to-right language natives?
In America every resource I've ever seen describes in-order traversal of a tree as "left, parent, right". Obviously there's nothing technically requiring that left take precedence over right, it's ...
2
votes
0
answers
117
views
Replace text in costomized TextView
I am trying to replace the text in a customized text view. the purpose is to force the text to be LTR; In order to do that, I am adding the "\u200E" prefix to my text.
Right now the setText() does not ...
0
votes
1
answer
511
views
move x and y axis from left to right in highchart
I use highchart for show my income in month so i use this code:
public Highcharts ActivityMonthlyChart(string username,string year)
{
//some code to get data
...
20
votes
3
answers
10k
views
Display phone numbers as left-to-right in right-to-left language
I have a display of a users contact details where the user can alternate the display between left-to-right and right-to-left text.
In the Arabic language, the text is displayed and read from right-to-...