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

outdated

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
30
points
5.9k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage

License

MIT (license)

More

Packages that depend on latinize