Commit Graph

404 Commits (653ff6443867406c3d6dc2a2b541aec4f038e39e)

Author SHA1 Message Date
Frans de Jonge 8f31a81601 MenuSorter: some documentation
MenuSorter: forgot to add plugin style change

MenuSorter: worked out the final quirks

* Menu always compressed into tables without missing indexes for ipairs compatibility
* Orphans attached
* Separators no longer count as items
7 years ago
Frans de Jonge b7b5950e98 MenuSorter: review comments and various bug fixes
* fixed wrongful retention of submenus variable and added return to MenuSorter:findById
* fixed readerfooter_spec.lua error
* fixed review comments
7 years ago
Frans de Jonge aa0bf60ccb MenuSorter: pass config prefix for proper user override 7 years ago
Frans de Jonge 5b20106db7 MenuSorter: initial implementation
* Menus are now sanely configurable
* Custom separator placement for clearer menus
7 years ago
robert00s f2f0c376fa Minor Reader Fronlight modyfication 7 years ago
Qingping Hou 00cf81febc readercopt(fix): set view mode after reader is ready
Otherwise, self.xpointer might still be nil in
ReaderRolling:onChangeViewMode
7 years ago
robert00s a2bfc3858d changes after comments 7 years ago
robert00s 4479d686a0 Refresh status bar after resume 7 years ago
Qingping Hou a943b73303 fix: adjust pan rate for eink and non-eink screens 7 years ago
Qingping Hou fc12ee6537 decouple reader footer from dictquicklookup widget & translation fix (#2664)
* chore: fix strings for translations

* dictionary(chore): decouple reader footer from dictquicklookup widget
7 years ago
poire-z 39d1afe37d Update footer when refreshing screen with diagonal swipe
And added diagonal swipe support to readerrolling.
7 years ago
poire-z 4316284260 Footer: added "memory usage" item
Helps following KOReader memory usage (and memory leaks).
7 years ago
Frans de Jonge d1785e1863 Reorganize menus
* Replace "home" (exit) menu with hamburger
* Discard pokeball and put items in hamburger
* Introduce search menu in reader

Cf. #2562
7 years ago
Frans de Jonge 3ea18208d7 Removed deprecated Confirmbox option cancel_on_tap_outside = true 7 years ago
Frans de Jonge 67a6eb271d Language: Would you like to read this Wikipedia %1 article?
Discussion on https://www.transifex.com/houqp/koreader/translate/#nb_NO/koreader/106518021

@Frenzie Second option is I came to too. Very consistent and nice.
by kingu, 6 minutes ago

Let's see, I'm not entirely happy with the phrase. Here are a couple of brainstorms.

Would you like to read the full version of this Wikipedia EN article?

Would you like to read this Wikipedia EN article?
by Frenzie, an hour ago

@kingu It's the language code, such as EN, FR, etc.

http://imgur.com/u1q6tT4l.png
by Frenzie, an hour ago

ISSUE
What is %1 here?
by kingu, 3 days ago
7 years ago
Hzj_jie f91ad679d9 swithItemTable -> switchItemTable 7 years ago
Qingping Hou 9b7aba3fba fix: override readerhighlight hold in readerfooter
Also fix touch zone dependency graph generation code.

ReaderHighlight has now been migrated to use touch zone

Inputcontainer's touch event handling logic changed to only stop
propagation when handler returns `true`. Previously, it stops
propagation when a handler is found. This is needed to support
both readerhighlight_tap and tap_forward touch zones.
7 years ago
poire-z 2ded2bce5e Wikipedia: save full page as epub (html, with optional images)
Also for the current text-only wikipedia full page: replace
the ==s in section titles with some unicode symbols for a better
visual feeling of hierarchy. These same symbols are also used
in the .epub.
Both can be disabled by adding ["wikipedia_prettify"] = false
to settings.reader.lua

readerhighlight: close ButtonTable (like other buttons do) when looking
up wikipedia, otherwise if we save as epub, and swtich to new document,
this ButtonTable will never be closed and stays in UI.
7 years ago
poire-z 97d34c5bb0 Better handling of tap on invalid/external links
Tap on external urls or invalid links would jump to
document's 1st page. We check first the validity of the
link, and deal with wikipedia links or just show the external
url.
ConfirmBox: allow dismissing/cancelling by taping outside,
to keep UX consistent.
7 years ago
poire-z ee06171c83 New ImageViewer widget + hold on image show it fullscreen
Simple image viewer with Best Fit/Original size and Rotate
(for landscape images) buttons.
readerhighlight: check if hold is on an image to show it
fullscrren
7 years ago
robert00s fe5379814d Ask for connection when clicking on Wikipedia 7 years ago
poire-z 130f7b0773 wikipedia: fix languages rotation and query
Fix innacurate language query and rotation when back from nested lookups.
More informative lookup message (langage used, search or full page)
Allow for screen refresh with diagonal swipe (like in readerpaging).
7 years ago
poire-z 5012fb79d3 Set hyphenation dict fallback with Hold
For documents without language defined in metadata (.txt, .html),
crengine would fallback to hardcoded English_US_hyphen_(Alan).pdb.
This allows for setting a different one.
7 years ago
Qingping Hou f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 8 years ago
Qingping Hou d16688c43c feat: show full menu on menu key for touch devices 8 years ago
Robert 31218fa79e Skim to widget (New Go to page/location widget ) (#2460) 8 years ago
Qingping Hou ead5dfd9b4 readerview(feat): add registerViewModule method 8 years ago
Qingping Hou dc2746f1d7 chore: various minor cleanups 8 years ago
Qingping Hou d2743b6f15 fix: migrate readermenu to use touch zone 8 years ago
Qingping Hou 070be5bfb1 fix: migrate readerrolling to touch zones 8 years ago
retrue eae730d140 Some uppercase fixes (#2421) 8 years ago
poire-z 1708fd5e1c Dictionary and wikipedia enhancements (#2393)
Stardict:
- remove duplicate results
- better cleaning of selection
- append results from a 2nd query of a 2nd set of dictionaries
  in data/dict_ext/

Wikipedia:
- use the search API for better results
- allow viewing the full page content of a result in a bigger window
- allow queries for multiple languages
- available languages can be set in settings.reader.lua :
    ["wikipedia_languages"] = {"en", "fr", "it"}
- "Wikipedia lookup" added to Tools menu

For both:
- allow selection of multiple words for a new lookup (so one can
  actually browse wikipedia)
- allow continuous reading with Tap
- display "current result / total number of results"

Details in #2393
8 years ago
Qingping Hou a6c506dc10 kobolight(refactor): move into plugin & only enable for kobo 8 years ago
Qingping Hou 0c49b915de refactor: add touch zone subsystem to inputcontainer
Touch zone decouples screen size from gesture event registration.

The win here is each individual widget does not need to update
gesture range on screen rotate/resize anymore.

Another advantage is we now have a centralized ordered array to handle
all registered touch event listeners, makes it much easier to resolve
gesture range conflicts between multiple widgets.

This patch also includes the following changes:

* migrate readerpaging to use readerui's touch zone
* migrate readerfooter to use readerui's touch zone
* move inverse read direction setting to touch menu's setting tab
* moved kobolight widget from readerview into readerui
* various dead code cleanups and comments
8 years ago
Qingping Hou 8799b4b6b1 doc: geometry module 8 years ago
poire-z efd6c7f556 Added "Swipe to follow first link" option (#2392)
Allow swipe west to jump to current page's first link (easier than clicking on small links)
Also fixed existing function names to comply with style guide.
8 years ago
poire-z 2c01f3add9 Fix: dog ears disappearance when switching fonts (#2394)
or switching orientation, or some other page layout setting.
Reverted commit a049edd, which should be done better (see #2395).
8 years ago
poire-z bbba2799a5 Fix: unexpendable TOC in some cases (#2394)
When on a page in a 2nd level section, after switching orientation,
TOC was stuck with the section we're in unexpandable.
8 years ago
Robert 64a79f6892 Frontlight progress bar (#2385) 8 years ago
Sergey Organov 3800a3077a DictQuickLookup:update(): strip all leading empty lines/spaces
This gets rid of sometimes huge spacing between a word and its
description taken from dictionary, and thus need for scrolling just to
read fisrs few lines of description.
8 years ago
Huang Xin b16a33a232 Merge pull request #2375 from koreader/houqp-master
readerpaging(fix): handle edge cases where paging pan will crash the reader
8 years ago
Dimitrios Semitsoglou-Tsiapos b87ce7fe12 footer: update when toggling markers 8 years ago
Qingping Hou cd24eb82d7 readerpaging(fix): handle edge cases where paging pan will crash the reader 8 years ago
Bastien Dejean cffb21f7be Add new setting: auto_book_status
Fixes #2363.
8 years ago
Bastien Dejean 41764e23e8 Make page gap configurable 8 years ago
Qingping Hou 558754e9b5 footer(refactor): various bug fixes and optimizations 8 years ago
robert00s 683b0381bf Patch for wikipedia language (#2304)
* smarter language detection for wikipedia

new order:
* check language for document
* check global language setting
* check language for lookup phrase

Fix: https://github.com/koreader/koreader/issues/1844
8 years ago
ycrichard c3aa5fa0d9 allow disable highlight by default
minor code change

typo
8 years ago
ycrichard f3149b0b2c add frontlight information in the footer including context menu 8 years ago
Qingping Hou 31d22dfc17 fix(kobofrontligh): initialize dimen with nil value 8 years ago