greek_romanizer 0.2.1
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)]
}