Previous: , Up: Modules   [Contents][Index]


5.15 greek_kbd

The greek_kbd module provides an input converter (see Input Conversions) for translating greek words from Latin keyboard transliteration into Greek script. A keyboard transliteration associates a Greek letter with a corresponding Latin one using the standard Greek keyboard layout. Thus, ‘a’ transliterates to ‘Alpha’, ‘y’ to ‘Ypsilon’, and ‘u’ to ‘Thita’. Diacritics are introduced by ‘:’ (for diaeresis), and ‘'’ (for acute accent) after the letter they apply to. If a letter has both diaeresis and accent, the marks should appear in this order, e.g. ‘y:'’.

This conversion is applied only if the search term begins with a Latin letter.

To load the module, use the following statement:

load-module greek_kbd;

The module takes one parameter:

casemap=value

Translate letter case on output. If value is ‘keep’, the case remains unchanged (this is the default). If it is ‘upper’, letters are converted to upper case, and if it is ‘lower’ they are converted to lowercase.

For example:

load-module greek_kbd {
    command "greek_kbd casemap=lower";
}

You can define several converters in one command line, like this:

load-module greek_kbd {
    command "greek_kbd greek_kbd_lo casemap=lower";
}

In this case, the converter greek_kbd will use the default behavior (keep letter case unchanged) and converter greek_kbd_lo will produce lower-cased output.

The following example illustrates the use of this module with the ‘ell-eng’ dictionary from Freedict:

load-module dictorg {
    command "dictorg trim-ws dbdir=/var/db sort";
}
load-module greek_kbd;
database {
    name "ell-eng";
    handler "dictorg database=ell-eng";
    conv "greek_kbd";
}