bidi 2.0.13 copy "bidi: ^2.0.13" to clipboard
bidi: ^2.0.13 copied to clipboard

Implementation of the Unicode Bidirectional Algorithm (UBA). Converts logical strings to their equivalent visual representation.

pub package

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 #

Web Demo

Getting Started #

In your pubspec.yaml file add:

dependencies:
  bidi: any
copied to clipboard

Then, in your code import and use the package:

import 'package:bidi/bidi.dart' as bidi;

final visual = bidi.logicalToVisual('نوشته پارسی اینجا گذارده شود.');
print(visual);
copied to clipboard

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/.

17
likes
160
points
420k
downloads

Publisher

verified publisherpwa.ir

Weekly Downloads

2024.09.28 - 2025.04.12

Implementation of the Unicode Bidirectional Algorithm (UBA). Converts logical strings to their equivalent visual representation.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on bidi