koreader / kindlepdfviewer

(DEPRECATED, please use KOReader instead) A PDF (plus DJVU, ePub, TXT, CHM, FB2, HTML...) viewer made for e-ink framebuffer devices, using muPDF, djvulibre, crengine
GNU General Public License v3.0
499 stars 98 forks source link

search inside document #75

Open dpavlin opened 12 years ago

dpavlin commented 12 years ago

Implement search (probably on / key ;-) in pdf and djvu files. Hopefully, we can reuse some of highlighting code for it.

This was requested by eLiNK at http://www.mobileread.com/forums/showpost.php?p=2018785&postcount=182

houqp commented 12 years ago

I hope to use / key too, but we don't have that in K3 ;P

hwhw commented 12 years ago

BTW, the mupdf app included in mupdf has a nice example of an implementation of text search (including finding the coordinates). That's what I intend to use as blueprint for implementing the content-based functionality.

dpavlin commented 12 years ago

@houqp how hard would it be to implement getText for crengine?

houqp commented 12 years ago

@dpavlin , I think crengine already supports text searching, so it might be even easier to do the searching highlight task with its built in methods. We can pass all the searching and highlight jobs to the engine and simply output the render result.

The problem here is we need to get familiar with its API... And I am completely run out of free time here.

dpavlin commented 12 years ago

I added crengine search with #231, but we'll probably need to use mpdf API for search to gain more performance.

houqp commented 12 years ago

Good job dpavlin :)