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

Configurable Greek-to-Latin romanization: an ASCII "official" scheme close to ELOT 743 / ISO 843, plus English- and German-reader phonetic respellings, all built 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
150
points
181
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Configurable Greek-to-Latin romanization: an ASCII "official" scheme close to ELOT 743 / ISO 843, plus English- and German-reader phonetic respellings, all built from one overridable rule set.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on greek_romanizer