Enter mono- and polytonic Greek

Enter (mono- and polytonic) Greek (relatively) easily by using mnemonic keys for letters and diacritics. When you type a lot of polytonic Greek it is easier to use a dedicated keyboard and mark your keyboard with some stickers. But I need Greek only occasionally, so I always forget the not very memorable diacritic keys in the Greek keyboard layout. What I need is some really mnemonic keys and the script gives me just that. Ideally, it is assigned to a keyboard shortcut for easy access.

Use

The script displays this simple dialog:

compose screenshot

All letters and diacritics are typed using (kind of) mnemonic keys. Obvious keys are "a" for alpha and "b" for beta. To see all key conventions, press OK in the dialog (or press Enter/Return), then pick "Letters". Pick "Diacritics" to see the diacritic conventions and "Examples" for some examples.

To enter a letter with a diacritic, always type the letter first, then the diacritic. For complex diacritics, go from left to right and/or from top to bottom. Thus, ᾄ (U+1F84 in case your web browser can't display it: alpha + psili + oxia + ypogrammeni) is entered as a'/, and ᾗ (U+1F97) as h~`,

The script is in fact a simple interface around a simple but long and tedious lookup table. It is easy (but could be laborious) to change the conventions for letters and diacritics. Feel free to make any changes you want -- but make sure that whenever you use the backslash in literal text to type two of them: a single backslash has a special meaning in JavaScript (see for example "u\\", where \\ stands for the single backslash).


Show script

Like the script? A donation will be appreciated.

Questions, comments? Get in touch