FLUTTER ECOSYSTEM

olutter/bidi

根據 https://unicode.org/reports/tr9/ 所描述的 Unicode 雙向演算法 (UBA) 實作。

bidi 專案封面
Stars
5
Forks
6
最近推送(UTC)
2025年9月16日
專案狀態
未封存
olutter GitHub avatar
GITHUB Organization

olutter ↗

語言DartHTMLSwiftKotlinObjective-C

技術主題

使用的依賴

依賴清單 2 項
  • test開發依賴^1.25.0
  • lints開發依賴^5.0.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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

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