Created
April 16, 2015 14:06
-
-
Save sftblw/9892176273b687af6089 to your computer and use it in GitHub Desktop.
Greek hotstring generator from letters array for autohotkey...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var letters = [ | |
| 'Alpha ', | |
| 'Beta ', | |
| 'Gamma ', | |
| 'Delta ', | |
| 'Epsilon', | |
| 'Zeta ', | |
| 'Eta ', | |
| 'Theta ', | |
| 'Iota ', | |
| 'Kappa ', | |
| 'Lambda ', | |
| 'Mu ', | |
| 'Nu ', | |
| 'Xi ', | |
| 'Omicron', | |
| 'Pi ', | |
| 'Rho ', | |
| 'Sigma ', | |
| 'Tau ', | |
| 'Upsilon', | |
| 'Phi ', | |
| 'Chi ', | |
| 'Psi ', | |
| 'Omega ' | |
| ]; | |
| var Greek = [ | |
| 'Α', | |
| 'Β', | |
| 'Γ', | |
| 'Δ', | |
| 'Ε', | |
| 'Ζ', | |
| 'Η', | |
| 'Θ', | |
| 'Ι', | |
| 'Κ', | |
| 'Λ', | |
| 'Μ', | |
| 'Ν', | |
| 'Ξ', | |
| 'Ο', | |
| 'Π', | |
| 'Ρ', | |
| 'Σ', | |
| 'Τ', | |
| 'Υ', | |
| 'Φ', | |
| 'Χ', | |
| 'Ψ', | |
| 'Ω' | |
| ]; | |
| var greek = [ | |
| 'α', | |
| 'β', | |
| 'γ', | |
| 'δ', | |
| 'ε', | |
| 'ζ', | |
| 'η', | |
| 'θ', | |
| 'ι', | |
| 'κ', | |
| 'λ', | |
| 'μ', | |
| 'ν', | |
| 'ξ', | |
| 'ο', | |
| 'π', | |
| 'ρ', | |
| 'σ', | |
| 'τ', | |
| 'υ', | |
| 'φ', | |
| 'χ', | |
| 'ψ', | |
| 'ω' | |
| ]; | |
| letters.forEach(function (elem, idx, arr) { | |
| arr[idx] = elem.trim(); | |
| }); | |
| var Letters = Array.from(letters); | |
| letters.forEach(function (elem, idx, arr) { | |
| arr[idx] = elem.toLowerCase(); | |
| }); | |
| patterns = [ | |
| [letters, | |
| greek], | |
| [Letters, | |
| Greek] | |
| ]; | |
| console.log(patterns); | |
| var allstr=""; | |
| patterns.forEach(function (lg, idx, pt) { | |
| pt[idx][0].forEach(function (ltt, idx2, ltts) { | |
| ltts[idx2] = ':*C:' + ltt + '`t::' + pt[idx][1][idx2]; | |
| allstr += ltts[idx2] + "\r\n"; | |
| }); | |
| }); | |
| console.log(allstr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment