https://github.com/xclud/dart_bidi
Implementation of the Unicode Bidirectional Algorithm (UBA) as described in https://unicode.org/reports/tr9/.
https://github.com/xclud/dart_bidi
arabic bidi dart flutter hebrew persian unicode
Last synced: 5 months ago
JSON representation
Implementation of the Unicode Bidirectional Algorithm (UBA) as described in https://unicode.org/reports/tr9/.
- Host: GitHub
- URL: https://github.com/xclud/dart_bidi
- Owner: xclud
- License: mit
- Created: 2020-09-15T17:46:42.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T18:48:27.000Z (6 months ago)
- Last Synced: 2025-04-25T12:54:40.094Z (6 months ago)
- Topics: arabic, bidi, dart, flutter, hebrew, persian, unicode
- Language: Dart
- Homepage: https://pub.dev/packages/bidi
- Size: 503 KB
- Stars: 5
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dartlang.org/packages/bidi)
Implementation of the Unicode Bidirectional Algorithm (UBA).
Reference: [https://unicode.org/reports/tr9/](https://unicode.org/reports/tr9/).
Converts *logical* strings to their equivalent *visual* representation. Persian, Hebrew and Arabic languages (and any other RTL language) are supported.
## Web Demo
[Web Demo](https://bidi.pwa.ir)
## Getting Started
In your `pubspec.yaml` file add:
```yaml
dependencies:
bidi: any
```Then, in your code import and use the package:
```dart
import 'package:bidi/bidi.dart' as bidi;final visual = bidi.logicalToVisual('نوشته پارسی اینجا گذارده شود.');
print(visual);
```## Other Implementations
This package is also written in Rust (apart from this package, which is written in Dart). If you are looking for a pure Rust implementation of this package, look at [https://crates.io/crates/bidi/](https://crates.io/crates/bidi/).