I linked to the alternate dictionary implementation above, why not have a look at it?
Anyway, here's the line which does the lookup:
Quote:
this.runCommandResult("/bin/grep '^"+target.word+" =' /Data/database/media/books/lenru.txt");
|
Where the text file has lines of the following format:
Code:
abbacy = n должность или звание аббата
abbe = n фр. церк. 1) аббат; 2) отец (обращение к священнику)
abbess = n настоятельница монастыря, аббатиса