DictQuickLookup: add button to show list of results

Add a left button to the title bar to show the list
of results as a popup.
Dictionary: tap or long-press on that button give
different view of the results.
Wikipedia: request 30 results instead of 20, so we
can show 15, 10 or 6 of them per page of that popup.
This commit is contained in:
poire-z
2023-05-11 20:23:47 +02:00
parent 8c8a032269
commit fc81c7db24
3 changed files with 266 additions and 2 deletions

View File

@@ -488,7 +488,7 @@ function ReaderWikipedia:lookupWikipedia(word, is_sane, box, get_fullpage, force
pages = sorted_pages
end
for pageid, page in pairs(pages) do
local definition = page.extract or no_result_text
local definition = page.extract or (page.length and _("No introduction.")) or no_result_text
if page.length then
-- we get 'length' only for intro results
-- let's append it to definition so we know