greek_tools library
A Dart library for manipulating Greek text - mainly transforming between Latin and Greek character sets.
Based on the ISO 843 standard (which is identical to ELOT 743).
Constants
-
exceptions
→ const Map<
String, String> -
exceptionsAllCaps
→ const Map<
String, String> -
exceptionsNotes_1_2
→ const Map<
String, List< String> > -
exceptionsWithAccents
→ const Map<
String, String> -
exceptionsWithAccentsNotes_1_2
→ const Map<
String, List< String> > -
mappingBase
→ const Map<
String, String> -
mappingWithAccents
→ const Map<
String, String>
Functions
-
containsGreek(
String text) → bool -
Checks if the given
text
contains at least one character from the Greek character set. -
isGreekWordInAllCaps(
String greekWord) → bool -
Checks if a given
greekWord
is in all-capital letters. -
removeAccents(
String greekTextWithAccents) → String -
Converts a given any-case text in Greek
greekTextWithAccents
, into the equivalent, simplified version where accents are removed. -
removeAccentsFromGreeklish(
String greeklishTextWithAccents) → String -
Converts a given any-case text in Greeklish
greeklishTextWithAccents
, into the equivalent, simplified version where accents are removed. -
removeAccentsLowercase(
String greekLowercaseTextWithAccents) → String -
Converts a given lower-case text in Greek
greekLowercaseTextWithAccents
, into the equivalent, simplified version where accents are removed. -
removeAccentsUppercase(
String greekUppercaseTextWithAccents) → String -
Converts a given upper-case text in Greek
greekUppercaseTextWithAccents
, into the equivalent, simplified version where accents are removed. -
toGreeklish(
String greek, {bool withAccents = false}) → String -
Converts the input
greek
text, of multiple words, into Greeklish (i.e. the equivalent text expressed in the Latin character set). -
toGreeklishWord(
String greekWord, {bool withAccents = false}) → String -
Converts a single
greek
word into Greeklish (i.e. the equivalent word expressed in the Latin character set). -
verifyCoverage(
) → bool