dartarabic 0.0.1-nullsafety.0 copy "dartarabic: ^0.0.1-nullsafety.0" to clipboard
dartarabic: ^0.0.1-nullsafety.0 copied to clipboard

outdated

A specific Arabic language library ported to dart from Python, provides basic functions to manipulate Arabic letters and text.

example/lib/main.dart

import 'package:dartarabic/dartarabic.dart';

void main() async {
  String output = "";
  final stopwatch = Stopwatch();
  //Use Isolates for heavy computation

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.stripHarakat("الْعَرَبِيّةُ");
  print("stripHarakat ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.stripHarakat("الْعَرَبِيّةُ");
  print("stripHarakat ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.stripTashkeel("الْعَرَبِيّةُُ");
  print("stripTashkeel ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.stripShadda("الشّمسيّة");
  print("stripShadda ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.normalizeLigature("ﻻنحالي ﻷﻹﻵ");
  print("normalizeLigature ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.normalizeHamzaUniform("جاء سؤال الأئمة عن الإسلام آجلا");
  print("normalizeHamzaUniform ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.normalizeHamzaTasheel("جاء سؤال الأئمة عن الإسلام آجلا");
  print("normalizeHamzaTasheel ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.normalizeAlef("بِٱلْهُدَىٰ");
  print("normalizeAlef ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.stripDiacritics("الْعَرَبِيّة");
  print("stripDiacritics ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.stripDiacritics("الْعَرَبِيّةُ");
  print("stripDiacritics ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.stripTatweel("العـــــربيةُ");
  print("stripTatweel ${stopwatch.elapsedMilliseconds}ms: $output");

  stopwatch.reset();
  stopwatch.start();
  output = DartArabic.normalizeLetters("ﻫﻞ");
  print("normalizeLetters ${stopwatch.elapsedMilliseconds}ms: $output");
}
32
likes
0
pub points
79%
popularity

Publisher

verified publisherthexaib.com

A specific Arabic language library ported to dart from Python, provides basic functions to manipulate Arabic letters and text.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

characters, string_validator, unicode_data

More

Packages that depend on dartarabic