View Single Post
Old 05-23-2008, 05:06 AM   #51
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
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 настоятельница монастыря, аббатиса
igorsk is offline   Reply With Quote