|
|
|
@ -77,11 +77,11 @@ function ReaderHighlight:onHold(arg, ges)
|
|
|
|
|
else
|
|
|
|
|
UIManager:scheduleIn(0.1, function()
|
|
|
|
|
local word_box = self.word_info.box
|
|
|
|
|
word_box.x = word_box.x - math.floor(word_box.h * 0.02)
|
|
|
|
|
word_box.y = word_box.y - math.floor(word_box.h * 0.02)
|
|
|
|
|
word_box.w = word_box.w + math.floor(word_box.h * 0.04)
|
|
|
|
|
word_box.h = word_box.h + math.floor(word_box.h * 0.04)
|
|
|
|
|
-- local word = self.ui.document:getOCRWord(self.pos.page, word_box)
|
|
|
|
|
word_box.x = word_box.x - math.floor(word_box.h * 0.1)
|
|
|
|
|
word_box.y = word_box.y - math.floor(word_box.h * 0.1)
|
|
|
|
|
word_box.w = word_box.w + math.floor(word_box.h * 0.2)
|
|
|
|
|
word_box.h = word_box.h + math.floor(word_box.h * 0.2)
|
|
|
|
|
--local word = self.ui.document:getOCRWord(self.pos.page, word_box)
|
|
|
|
|
DEBUG("OCRed word:", word)
|
|
|
|
|
self.ui:handleEvent(Event:new("LookupWord", word))
|
|
|
|
|
end)
|
|
|
|
|