latinize 0.0.2

Dart native js
Flutter Android iOS web

Simple library to convert accents (diacritics) from strings to latin characters.

Latinize #

Simple library to convert accents (diacritics) from strings to latin characters.

Installation #

Add the following line to your pubspec.yaml file:

latinize: '>=0.0.1 <1.0.0'

And then:

pub get

or

flutter pub get

Usage #

import 'package:latinize/latinize.dart';
latinize('ỆᶍǍᶆṔƚÉ áéíóúýčďěňřšťžů'); // => ExAmPlE aeiouycdenrstzu

You can use the extendSymbolTable function to add or override symbols:

// modify the behavior for German umlauts
extendSymbolTable({
  'Ä': 'Ae', 
  'Ä': 'Ae', 
  'Ü': 'Ue', 
  'ä': 'ae', 
  'ö': 'oe', 
  'ü': 'ue'
});

Then when you call latinize you'll get the overwritten symbols:

latinize('ÄÜ') // => AeUe
3
likes
90
pub points
87%
popularity

Simple library to convert accents (diacritics) from strings to latin characters.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

lucas.mafra95@gmail.com

License

MIT (LICENSE)

More

Packages that depend on latinize