twitter/twitter-cldr-rb — pull request #78 by camertron (2012-10-08 03:40:35+00:00)
Title: Adding the Unicode Bidirectional Algorithm (UBA)

This pull request adds three main features, namely layout orientation, the UBA, and improved RTL list support:

1. Determine which languages are RTL:
```ruby
# true
TwitterCldr::Shared::Languages.is_rtl?(:ar)

# false
TwitterCldr::Shared::Languages.is_rtl?(:ru)
```

2. Unicode Bidirectional Algorithm as a separate class and integrated into `LocalizedString`:
```ruby
bidi = TwitterCldr::Shared::Bidi.from_string("abc", :direction => :RTL)
bidi.reorder_visually!
bidi.to_s

"abc".localize.to_reordered_s(:direction => :RTL)
```

3. Improved RTL list support (eg. "a ~ b" is reordered to "b ~ a")