Skip to content
pubscout

dartarabic

0.3.1, released 2 years ago by thexaib.com

A Dart library providing functions to manipulate Arabic letters, diacritics, and text.

WASM-readyCopyleft license
$ flutter pub add dartarabic
Source repository

What it does

It ports Python's PyArabic library to Dart, offering helper methods to strip harakat, diacritics, tatweel, and shadda, as well as normalize hamzas, alefs, and ligatures. It also provides constants for Arabic Unicode letters and symbols.

AI-written summary of version 0.3.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to normalize or clean Arabic text by removing diacritics or standardizing hamzas.
  • You are working with Arabic character sets and need predefined Unicode letter constants.

Skip it when

  • You require complex Arabic text shaping and complex bidirectional rendering for UI display (which is typically handled by Flutter's text engine or specialized rendering libraries).

Strengths

  • Provides a comprehensive set of text manipulation functions specific to Arabic (stripters and normalizers).
  • Includes constants for Arabic Unicode letters, marks, and symbols.

Weaknesses

  • Ported from Python with a relatively narrow scope focused strictly on character/string manipulation utilities.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2
import 'package:dartarabic/dartarabic.dart';

void main() {
  print(DartArabic.stripHarakat("الْعَرَبِيّةُ"));
}

Alternatives

Packages that do the same job and could replace dartarabic.

Works with

Packages commonly used together with dartarabic: ones it builds on, ones built on it, and its own family.