UNPKG

greek-text-utils

Version:

A collection of greek text utils, including conversion to ISO 843/ELOT 743, Greeklish, Phonetic Latin, and Transliterated Latin

103 lines 3.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const greekToGreeklishMap = [ { find: 'ΓΧ', replace: 'GX' }, { find: 'γχ', replace: 'gx' }, { find: 'ΤΘ', replace: 'T8' }, { find: 'τθ', replace: 't8' }, { find: '(θη|Θη)', replace: '8h' }, { find: 'ΘΗ', replace: '8H' }, { find: 'αυ', replace: 'au' }, { find: 'Αυ', replace: 'Au' }, { find: 'ΑΥ', replace: 'AY' }, { find: 'ευ', replace: 'eu' }, { find: 'εύ', replace: 'eu' }, { find: 'εϋ', replace: 'ey' }, { find: 'εΰ', replace: 'ey' }, { find: 'Ευ', replace: 'Eu' }, { find: 'Εύ', replace: 'Eu' }, { find: 'Εϋ', replace: 'Ey' }, { find: 'Εΰ', replace: 'Ey' }, { find: 'ΕΥ', replace: 'EY' }, { find: 'ου', replace: 'ou' }, { find: 'ού', replace: 'ou' }, { find: 'οϋ', replace: 'oy' }, { find: 'οΰ', replace: 'oy' }, { find: 'Ου', replace: 'Ou' }, { find: 'Ού', replace: 'Ou' }, { find: 'Οϋ', replace: 'Oy' }, { find: 'Οΰ', replace: 'Oy' }, { find: 'ΟΥ', replace: 'OY' }, { find: 'μπ', replace: 'b' }, { find: 'ΜΠ', replace: 'B' }, { find: 'Μπ', replace: 'B' }, { find: 'μΠ', replace: 'bP' }, { find: 'Μπ', replace: 'Mp' }, { find: 'ντ', replace: 'd' }, { find: 'ΝΤ', replace: 'D' }, { find: 'Ντ', replace: 'D' }, { find: 'νΤ', replace: 'dT' }, { find: 'γκ', replace: 'g' }, { find: 'ΓΚ', replace: 'G' }, { find: 'Γκ', replace: 'G' }, { find: 'γΚ', replace: 'gK' }, { find: 'γγ', replace: 'ng' }, { find: 'ΓΓ', replace: 'NG' }, { find: 'Γγ', replace: 'Ng' }, { find: 'γΓ', replace: 'nG' }, { find: 'τζ', replace: 'j' }, { find: 'ΤΖ', replace: 'J' }, { find: 'Τζ', replace: 'J' }, { find: 'τΖ', replace: 'jZ' }, { find: 'θ', replace: '8' }, { find: 'Θ', replace: '8' }, { find: 'φ', replace: 'f' }, { find: 'Φ', replace: 'F' }, { find: 'χ', replace: 'x' }, { find: 'Χ', replace: 'X' }, { find: 'ψ', replace: 'ps' }, { find: 'Ψ', replace: 'Ps' }, { find: 'ω', replace: 'w' }, { find: 'Ω', replace: 'W' }, { find: 'α', replace: 'a' }, { find: 'Α', replace: 'A' }, { find: 'β', replace: 'v' }, { find: 'Β', replace: 'V' }, { find: 'γ', replace: 'g' }, { find: 'Γ', replace: 'G' }, { find: 'δ', replace: 'd' }, { find: 'Δ', replace: 'D' }, { find: 'ε', replace: 'e' }, { find: 'Ε', replace: 'E' }, { find: 'ζ', replace: 'z' }, { find: 'Ζ', replace: 'Z' }, { find: 'η', replace: 'h' }, { find: 'Η', replace: 'H' }, { find: 'ι', replace: 'i' }, { find: 'Ι', replace: 'I' }, { find: 'κ', replace: 'k' }, { find: 'Κ', replace: 'K' }, { find: 'λ', replace: 'l' }, { find: 'Λ', replace: 'L' }, { find: 'μ', replace: 'm' }, { find: 'Μ', replace: 'M' }, { find: 'ν', replace: 'n' }, { find: 'Ν', replace: 'N' }, { find: 'ξ', replace: 'ks' }, { find: 'Ξ', replace: 'Ks' }, { find: 'ο', replace: 'o' }, { find: 'Ο', replace: 'O' }, { find: 'π', replace: 'p' }, { find: 'Π', replace: 'P' }, { find: 'ρ', replace: 'r' }, { find: 'Ρ', replace: 'R' }, { find: 'σ', replace: 's' }, { find: 'ς', replace: 's' }, { find: 'Σ', replace: 'S' }, { find: 'τ', replace: 't' }, { find: 'Τ', replace: 'T' }, { find: 'υ', replace: 'y' }, { find: 'Υ', replace: 'Y' }, ]; exports.default = greekToGreeklishMap; //# sourceMappingURL=greek-to-greeklish-map.js.map