Questions tagged [bidi]

Bidi is short for "bi-directional" and means text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row. See also the tag `right-to-left`

See also:

Wikipedia: https://en.wikipedia.org/wiki/Bi-directional_text

189 questions
5
votes
0 answers

Angular 2+, rtlcss integration

I have a task to add rtl support to the site by using some kind of a library to modify css which will swap left to right and vice versa and append [dir=rlt] [dir=ltr] to all selectors accordingly. What I have done so far: called ng eject added…
noobsaibot
  • 151
  • 2
  • 7
5
votes
1 answer

ICU Layout sample renders text differently than Microsoft Notepad and Word

I have a bidirectional text 1002 -ابو ماجد الانصاري Most editors notepad++, notepad etc. show the text as it is shown here. But when I get this text processed through ICU the number is shifted to the right then spaces and hyphen and then Arabic.…
MOE
  • 53
  • 5
5
votes
1 answer

How to unit-test bidirectional text handling

I am trying to write unit tests for some string-formatting code. Formatted output is likely in some cases to contain bidirectional text, i.e. a mixture of both left-to-right and right-to-left. I have verified empirically that the output looks…
Graham Borland
  • 60,055
  • 21
  • 138
  • 179
5
votes
9 answers

Why is software support for Bidirectional text (Hebrew,Arabic) so poor?

While most operating systems and web browsers have very good support for bidirectional text such as Hebrew and Arabic, most commercial and open-source software does not: Most text editors, besides the original notepad and the visual studio editor,…
zvikara
  • 1,597
  • 3
  • 13
  • 19
4
votes
2 answers

Set JLabel Alignment right-left

I have a JPanel that separated to 2 blocks, in south block (layout) I have add a JLabel, In the label I want to Insert a string with this rule: (Name, Date, Time, In/Out) If my name was written in English everything was fine the problem appeared…
Am1rr3zA
  • 7,115
  • 18
  • 83
  • 125
4
votes
0 answers

Incorrect bidi behaviour in WPF?

I experience strange things when setting the "Language" property in WPF: Set FlowDirection to "RightToLeft" on a Window or textbox/textblock Set the Language property to "fa-IR" Set the text to one of the sample texts below (A, B) A. This text…
Pasi
  • 41
  • 2
4
votes
0 answers

How to fix the text cursor position in an html textarea with unicode-bidi: plaintext with a RTL language?

We've been using textareas with the css setting unicode-bidi: plaintext this handled mixing left to right and right to left languages beautifully until about 2 months ago with the new release of chrome. The text positioning still works properly,…
user981971
  • 79
  • 7
4
votes
4 answers

pyfribidi for windows or any other bidi algorithm

I'm trying to generate a report using reportlab, and the report language is Arabic. but the problem is reportlab doesn't support BIDI (Bidirection) Display because of the lack BIDI Algorithm support in Python. after alot of googling I found that…
MBarsi
  • 2,417
  • 1
  • 18
  • 18
4
votes
1 answer

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(/\$minprice/, 'ig'); var string = "عروض تبدأ من…
zirqLvgOhM
  • 150
  • 2
  • 11
4
votes
0 answers

Inconsistent string formatting with an alignment component

I'm trying to output some field aligned data in an application (see Alignment Component on this MSDN documentation). I've noticed that some strings do not align correctly on the field boundary. This is most obvious with this small bit of sample code…
Bradley Uffner
  • 16,641
  • 3
  • 39
  • 76
4
votes
0 answers

mono C# print persian text ubuntu

I am using mono-develop under Ubuntu 14.04. In my project I need to print Persian documents. We are using native .net package system.drawing. I ran the following code under Windows (mono which was installed on Windows) and I had absolutely NO…
mh Aghaie
  • 41
  • 3
4
votes
4 answers

multilingual websites and rtl direction - best practices

Could you share any tips for supporting rtl direction in multilingual websites? Apart from the text direction, should there be any changes, for instance, to the menus mark-up? The rtl CSS should be included in a separate file (like "layout-rtl.css")…
aletzo
  • 2,471
  • 1
  • 27
  • 31
4
votes
1 answer

Styling Run/Paragraph to support both RTL and LTR words

How can I style a Run and/or Paragraph to support both RTL and LTR words? The problem is: I have a complex text which contains both Persian and English words, and I'm trying to create a .docx document using OpenXML SDK. But, the English words, get…
amiry jd
  • 27,021
  • 30
  • 116
  • 215
4
votes
3 answers

input numbers in textfield with RTL direction shows wrong output

I'm trying to support RTL direction (for Arabic language) in my web-app. There's a weird thing happening with my textfields. When I input AAAA BBBB CCCC DDDD, i'm getting the correct display in the text field but when I try to input numbers, I'm…
rhandom
  • 1,198
  • 3
  • 10
  • 15
4
votes
1 answer

Transforming text into it's appropriate RTL representation

I'm looking for any java library which would help in transforming a piece of text into it's appropriate RTL representation. For e.g. the hebrew/arabic text when read from a file would be in the LTR representation, however after the transformation it…
user320550
  • 1,093
  • 6
  • 20
  • 37
1 2
3
12 13