greek_romanizer 0.2.1 copy "greek_romanizer: ^0.2.1" to clipboard
greek_romanizer: ^0.2.1 copied to clipboard

Configurable Greek-to-Latin romanization: ASCII ELOT 743/ISO 843 style, plus English and German phonetic respellings, from one overridable rule set.

example/greek_romanizer_example.dart

import 'package:greek_romanizer/greek_romanizer.dart';

void main() {
  final GreekRomanizer official = GreekRomanizer.official();
  print(official.romanize('ευχαριστώ').text); // efcharisto

  final GreekRomanizer english = GreekRomanizer.englishReader();
  print(english.romanize('ευχαριστώ').text); // efcharistó

  // "efharisto" reads easier for an English speaker than "efcharisto":
  final GreekRomanizer easier = GreekRomanizer.englishReader(chiLetter: 'h');
  print(easier.romanize('ευχαριστώ').text); // efharistó

  final RomanizedText withStress = english.romanize('πότε');
  print(withStress.text); // póte
  print(withStress.stressed); // [StressSpan(1, 2)]
}
0
likes
160
points
181
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Configurable Greek-to-Latin romanization: ASCII ELOT 743/ISO 843 style, plus English and German phonetic respellings, from one overridable rule set.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on greek_romanizer