mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Vocabulary builder: support extracting context from pdfs (#9622)
Move getSelectedWordContext(), now document specific, from ReaderHighlight into each document module.
This commit is contained in:
@@ -96,6 +96,10 @@ function DjvuDocument:nativeToPageRectTransform(pageno, rect)
|
||||
return self.koptinterface:nativeToPageRectTransform(self, pageno, rect)
|
||||
end
|
||||
|
||||
function DjvuDocument:getSelectedWordContext(word, nb_words, pos)
|
||||
return self.koptinterface:getSelectedWordContext(word, nb_words, pos)
|
||||
end
|
||||
|
||||
function DjvuDocument:getOCRWord(pageno, wbox)
|
||||
return self.koptinterface:getOCRWord(self, pageno, wbox)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user