bidi
v2.0.13Implementation of the Unicode Bidirectional Algorithm (UBA). Converts logical strings to their equivalent visual representation.
Package archive: https://pubdev.letsnova.ru/api/archives/bidi/2.0.13.tar.gz
dart pub add bidiReadme
Implementation of the Unicode Bidirectional Algorithm (UBA).
Reference: 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
Getting Started
In your pubspec.yaml file add:
dependencies:
bidi: any
Then, in your code import and use the package:
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/.
Changelog
2.0.13
- Improve package score.
2.0.12
- Improve package score.
2.0.10
- Improve package score.
2.0.8
- Performance improvement.
- Preparing for version 3.0.
2.0.7
- Dart SDK 3.0 support.
2.0.6
- Deprecate
paragraphSeparatorin favor ofseparator.
2.0.5
- Make
paragraphSeparatorpublic.
2.0.4
- Pass static analysis.
2.0.3
- More dartdoc comments.
2.0.2
- Fix Arabic Shadda pairs are not composed (#4). Thanks to Milad Akarie.
2.0.1
- Fixes a composition bug. Thanks to Milad Akarie for reporting.
2.0.0
- Migrated to null-safety.
1.0.0
- First working version of Bidi.
