As I was reading over the dictionary forum and it's autorun script, I thought of an idea.
Wouldn't it be easy to search within a book using the same process that the DictioLauncher Application uses?? Something along the lines of
$ cat ebook_file | grep "^search_term$"
should work shouldn't it! Even the UI could remain the same except you would have to select a file.
The only problem may be in parsing the PDF, LRF files to get plain text. Something like the 'strings' util should work though right? Tell me what you think.