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.

67 questions
21
votes
3 answers

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-left, but phone numbers, web addresses and email…
user1261774
  • 3,525
  • 10
  • 55
  • 103
11
votes
1 answer

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 possible to get the layout direction of a view, if…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
10
votes
1 answer

Is android bug in load "layout-ldltr" layout against "layout-ldrtl" after orientation changed?

In my project I have to create both layout-ldltr and layout-ldrtl layouts for Right-To-Left and Left-To-Right languages. I launch application for Right-To-Left language, and every thing is good. But when orientation changed, android load…
10
votes
1 answer

How to print Arabic characters in left-to-right direction

I have a sequence of English and Arabic text that should be printed in an aligned way. For example: List ar = new ArrayList(); ar.add('ا'); ar.add('ب'); ar.add('ت'); List en = new…
vanilla
  • 331
  • 3
  • 14
8
votes
2 answers

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): if i < len(alt_words): …
Seraphya
  • 165
  • 1
  • 1
  • 8
8
votes
2 answers

How to mix RTL and LTR text directions in the same

I am implementing a RTL interface. All components and texts are RTL but numbers which are LTR. I use elements to insert LTR texts into the main RTL texts. It works in the most of the cases but not for a
5
votes
1 answer

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 is not placing all elements where I'd expect them... result: Printing description of…
Eduard
  • 309
  • 2
  • 12
5
votes
2 answers

How can I mix hebrew and latin text in a HTML document?

I have a html document that contains hebrew and latin text. It is encoded with utf-8: Title