Skip to content
pubscout

unorm_dart

0.3.3, released 7 weeks ago by codingfeline.com

Unicode normalization for Dart supporting NFC, NFD, NFKC, and NFKD forms.

WASM-ready
$ flutter pub add unorm_dart
Source repository

What it does

Provides functions for Unicode normalization (NFC, NFD, NFKC, NFKD) based on the Unicode Standard. It is a Dart port of the walling/unorm library.

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

Use it when

  • You need to normalize Unicode strings to specific forms (NFC, NFD, NFKC, NFKD).
  • You are processing text input that may have different Unicode representations for identical characters.

Skip it when

  • You do not work with multi-language text or complex Unicode character compositions.

Strengths

  • Supports multiple Unicode normalization forms: NFC, NFD, NFKC, and NFKD.
  • Up-to-date with recent Unicode specifications.
  • No external dependencies.

Weaknesses

  • Limited to Unicode normalization functions only.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import "package:unorm_dart/unorm_dart.dart" as unorm;

void main() {
  var text = "The \u212B symbol invented by A. J. \u00C5ngstr\u00F6m";
  print("NFC: ${unorm.nfc(text)}");
}

Alternatives

Packages that do the same job and could replace unorm_dart.

  • exif_reader

    Decode EXIF metadata from various image formats in Dart, Web, and Flutter.

  • dart_earcut

    Performant ear-clipping polygon triangulation algorithm

  • zxcvbn

    Dart port of Dropbox's zxcvbn password strength estimator library.

  • unicode

    Library providing Unicode character utilities and emoji data generated from Unicode 17.0.0

Works with

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