Commit Graph

5468 Commits (17656778b144a655bf8b6905c2635e57cb1837c7)
 

Author SHA1 Message Date
poire-z 17656778b1 Book information: refactored and additional features
- Factored out duplicate code from filemanager.lua and filemanagerhistory.lua
to new filemanagerbookinfo.lua (and other common code to filemanagerutil.lua).
- Uses sidecar files' new doc_props and doc_pages settings, or fallback to
old 'stats' settings, or to opening document.
- Shows filename, filetype and directory.
- Shows description (Hold to see whole truncated text), keywords, and
cover image (tap to extract image from document and display it if available).
- Book information now available from reader menu, to display info about
the currently opened book.
- Convert possibly HTML description to plain text via added
util.htmlToPlainTextIfHtml() (for simple HTML conversion).
7 years ago
poire-z 64f699ba36 Store book metadata and nb of pages in new settings
They may already be available (with other statistics stuff) under
the 'stats' key, but not if Statistics plugin is disabled. As this
plugin may be migrated to SQLite, readerui and readerfooter will now
set two new properties: doc_props (containing all and only the metadata
returned by document:getDocumentProps()) and doc_pages (updated
by readerfooter on any display or font change).

PDF document: returns additional PDF properties: Keywords
and Subject (as Description).
7 years ago
poire-z e6612ec728 TextViewer widget, used when onHold on truncated item in KeyValuePage 7 years ago
Hzj_jie 20ec1cd6fb Put disable-fuzzy-search in search menu 7 years ago
mwoz123 b0cf2ca18a News downloader settings menu entry (#2990)
Placeholder with info.
7 years ago
Robert b446be74d5 Font zooming more than 1 (#2989) 7 years ago
Hzj_jie a4d5165f7a Several fixes in frontlight logic (#2991)
* Use PluginShare to exchange data between plugins

* Remove legacy code in reader.lua and kobo/device.lua, and move KOBO_LIGHT_ON_START to kobo/powerd.lua

* A better sync config logic

* Consider kobo without hardware frontlight toggle

* update frontlight widget once toggle is tapped.
7 years ago
Frans de Jonge 9b557ed15a Bump base: crengine update (#2985)
* crengine: return description and keywords metadata
  Only available for EPUB documents for now. @poire-z
* crengine: css related improvements, fix crash, better handling of gif @frankyifei
7 years ago
Hzj_jie e67ff2ab98 Use PluginShare to exchange data between plugins (#2981) 7 years ago
Hzj_jie 4ec96e377a Use getCapacityHW() to ensure latest battery capacity can be retrieved 7 years ago
Hzj_jie 970f2e7306 Several improvements of AutoFrontlight plugin and enable it by default (#2975)
* Force refresh when kindle is out of screensaver or usb is unpluged.

* Improve AutoFrontlight

* More plugins sub menu

* Last brightness should always be updated

* Finish autofrontlight improvement and enable it by default.

* More tets

* onFlushSettings

* MenuSorter can now correctly sort sub menus
7 years ago
Hzj_jie 808766b7f3 Remove the deprecated restore_settings flag 7 years ago
Hzj_jie 7d2ed4c3d0 Move kobo auto-suspension logic out of UIManager (#2933) 7 years ago
Hzj_jie c8be27481c Fix synchronizing issue of Kobo front light between KOReader and nickel (#2977) 7 years ago
Hzj_jie b5c77af15c Typo in last change. (BasePowerD -> KoboPowerD) 7 years ago
Hzj_jie 05769872c7 Allow Kobo to entirely turn off the front light. 7 years ago
Hzj_jie d83de47204 Add onFrontlightStateChanged event (#2966)
So we do not need the hacky solution in KoboLight plugin anymore. PageFooter can receive and process the event itself.
7 years ago
Robert bd92d68b7f Remove Set default Fine Tuning (#2971) 7 years ago
Huang Xin 8938786472 [fix] stop propagation of tap events when triggering reader menu (#2934)
* [fix] stop propagation of tap events
when triggering reader menu
And also get rid of unnecessary screen refreshes on Kindle Voyage.
The "progress" window for dict lookup is also eliminated as most of the time dict lookup is an instant process, and the "progress" window is preserved for wikipedia lookup as it may take longer time to show the result window.

* [up] add an option to disable dictionary fuzzy search

* [fix] tidy up require

* [fix] fix read settings
7 years ago
Hzj_jie b680a3f940 Delete autofrontlight_spec.lua
It seems this file has been unexpectedly included in my change.
7 years ago
Hzj_jie bc487b7fe6 Force refresh when kindle is out of screensaver or usb is unpluged. (#2965)
* Force refresh when kindle is out of screensaver or usb is unpluged.

* unused variable warning
7 years ago
Frans de Jonge 28524a5847 ReaderUI: return to filemanager instead of quitting if no document (#2956)
This affects #2335, at least for documents covered by `validDjvuFile()` (see 76cef07c07/frontend/document/djvudocument.lua (L15-L23)). However, that's only with regard to `touch invalid.djvu` and should not affect whatever happened in the OP.
7 years ago
Hzj_jie 63f2284f21 Fix several crash errors triggered by legacy code (#2962) 7 years ago
Hzj_jie 53eb4dee50 AutoFrontlight plugin (#2941)
* Add AutoFrontlight plugin

* Add configuration to control autofrontlight feature
7 years ago
Frans de Jonge ed0ba6737e test: add optmath spec stub (#2950)
* test: add optmath spec stub
7 years ago
Frans de Jonge 2096a27b65 test: add translator spec (#2953) 7 years ago
Frans de Jonge bbb80ab93a Travis: update shfmt to 1.3.1 (#2949) 7 years ago
Frans de Jonge 6870bc2996 Bump luajit-launcher
Includes
* Android fullscreen mode (fa9dd61)
* add lib file name without suffix as fallback (c139b54)
7 years ago
Frans de Jonge 011143bfe3 Bump base 7 years ago
alexandrahurst 71d38ac647 Refactor modifier keys and add basic Japanese keyboard layout (#2930)
* Add a basic Japanese keyboard layout

Allow for entring Japanese text into text boxes.  Only supports kana
and latin letters due to limitations of current VirtualKeyboard
implementation (complex text input with conversion is not possible).

* Allow keyboard layouts to declare custom modifiers

Refactor modifier key setup code and existing keyboard layouts so
that each layout can declare custom modifier key labels.  This
allows for greater extensibility and for future keyboard layouts.
7 years ago
chrox fef18ec73a [fix] revert removing tap gestures to show menus
as the tap gesture on the upper part (mostly) of the screen is
a conventional design to show menus in almost all ereaders as well as
some mobile phone apps. While users not farmilar with the Android world
have no experience with swipe down to show menus that's why we need a
quick start guide for this feature. And experienced Koreader users
probably will turn pages by mistake each time they want to popup the menus.

The solution here is adding back the tap gestures as they were and keep
the new swipe to show menu feature as a supplementary function when
link's tap area blocks menu's tap area.
7 years ago
Zijie He 0a02b529ae Remove BatteryStat:initCurrentState() 7 years ago
Frans de Jonge 750be8cc5a Revert "(chore) Remove storage satistics menu order leftovers (#2922)"
This reverts commit 8fc50335df.
7 years ago
Frans de Jonge 8fc50335df (chore) Remove storage satistics menu order leftovers (#2922)
Fixes #2921. Leftover from #2764.
7 years ago
Qingping Hou ed36ab3f9b language: remove out of date Russian translation 7 years ago
Frans de Jonge 6815959f06 ReaderView: add long-press to set default
Fixes #2915
7 years ago
Hzj_jie d4756d777f (chore)Fix A typo in BatteryStat plugin (#2912) 7 years ago
robert00s c749c42b4b Fix #2667 7 years ago
Hzj_jie cc020b901a Fix KOsync crash when closing document (#2911) 7 years ago
mwoz123 66b0c54d4d (chore) NewsDownloader: don't require restart for changing download directory (#2901) 7 years ago
Frans de Jonge 87049a8020 (minor) NewsDownloader: Koreader to KOReader 7 years ago
Hzj_jie 30378eb2a8 Add restart koreader function and ensure FlushSettings event can be delivered to all widgets (#2772) 7 years ago
Frans de Jonge 3492b8b117 (minor, lang) improve text clarity for downloadmgr dialogs (#2897)
It's not necessarily clear that you need to long-press, see https://www.mobileread.com/forums/showpost.php?p=3520376&postcount=7
7 years ago
Martín Fernández 474c011f21 [kobo]: add reboot and poweroff menu actions (#2888) 7 years ago
mwoz123 79830f3041 News Downloader: Select Custom download folder (#2886) 7 years ago
poire-z 9e346f5559 Allow wikipedia lookup from filemanager
Also allow taking screenshot when on dictionary window.
7 years ago
Qingping Hou b33c9268d2 build(fix): fail release command by default if make po failed 7 years ago
Qingping Hou bde2139b27 wifi(fix): quote ssid and password for wpa_passphrase 7 years ago
mwoz123 4eb8664c95 News downloader atom support (#2736)
* newsDownloader - atom support initial version

* NewsDownloader: update example feed config (use Reuters atom source)

* NewsDownloader: InfoMessage when unsupported urls

* NewsDownloader: update menu_item id

* NewsDownloader: change text label
7 years ago
Robert f21550b3d5 minor: translate "Save as epub" and "Close" in full Wikipedia window (#2875)
* translate save as epub and close

* epub to EPUB
7 years ago