latinize 0.0.2 copy "latinize: ^0.0.2" to clipboard
latinize: ^0.0.2 copied to clipboard

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
6
likes
20
pub points
73%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on latinize