Commit Graph

1120 Commits (master)

Author SHA1 Message Date
robert00s a675d21e34 Enable text justification in GoodReads review 7 years ago
mwoz123 b0cf2ca18a News downloader settings menu entry (#2990)
Placeholder with info.
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 7d2ed4c3d0 Move kobo auto-suspension logic out of UIManager (#2933) 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
Hzj_jie 53eb4dee50 AutoFrontlight plugin (#2941)
* Add AutoFrontlight plugin

* Add configuration to control autofrontlight feature
7 years ago
Zijie He 0a02b529ae Remove BatteryStat:initCurrentState() 7 years ago
Hzj_jie d4756d777f (chore)Fix A typo in BatteryStat plugin (#2912) 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
mwoz123 79830f3041 News Downloader: Select Custom download folder (#2886) 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
Qingping Hou 6d3349d84b goodreads(fix): remove incorrect image_disposable setting 7 years ago
Qingping Hou 3541320cd2 goodreads(fix): double free 7 years ago
Frans de Jonge e1aa57f27e Font: unify font styling 7 years ago
Frans de Jonge 4616339ef8 KeyValuePage: improve looks
Fixes #2578.

* key bolded
* values normally left-aligned at 50%
* allows misalignment for the sake of fitting everything on one line
7 years ago
Qingping Hou 72ae80870c quickstart fix (#2804)
* translation text fix

* quickstart(fix): go back to home dir after document close

* quickstart(fix): purge old quick start files

* spec: fix quickstart tests
7 years ago
mwoz123 d6c81f5097 Simple News (RSS/Atom) downloader plugin (#2592)
* Simple News (RSS/Atom) downloader plugin
* Limit news from sources
* new News Downloader menu entry - goto news dir
* Initial configuration logic
* Download each feed source to separate folder
* 2 feed sources in example config
7 years ago
Hzj_jie 999898fa69 Merge various information into systemstat (#2764)
* Merge various information to systemstat
7 years ago
Frans de Jonge 338fcd76ae Lang: two tiny strings
* ReaderHighlight: underscore to underline. Although underscore means to
emphasize by underlining, the emphasis lies on the, ahem, emphasis. Besides
which, it's mostly AmE and less well understood worldwide (although in this
particular context it should probably cause no trouble).

* Statistics plugin: menu item text to "reading statistics" to make it clear
which statistics we're talking about. Fixes #2744.
7 years ago
robert00s a51941c397 Add Last suspend and resume time into System statistics 7 years ago
Frans de Jonge 0256601e85 UX and language fixes
* lang: changed `...` in CloudStorage to real ellipses
* chore: reordered requires in CloudStorage per coding style
* UX: switched "Close" and "Stay alive" in KeepAlive per UX style
* lang: improved message in CloudStorage
* chore: reordered requires in OTAManager per coding style
* lang: removed "your" from "Your KOReader is up to date" in OTAManager
7 years ago
Qingping Hou 1461574894 Support configurable extra plugin lookup path (#2693)
* plugin loader(feat): support loading plugins from user defined directories
Extra plugin lookup paths can be set in global reader setting via key
`extra_plugin_paths`. Value of the key can either be a string or an array
of strings.
* build(fix): also purge non-exist plugins on build
* plugin: migrate debug plugin to menu sorter
7 years ago
Frans de Jonge d91bd91840 Terminal plugin: minor language fixes
* ... should be a proper ellipsis
* "written" is a bit more end-user friendly than "dumped"
7 years ago
Hzj_jie 3ad3452d1a System Stat plugin (#2699) 7 years ago
Hzj_jie 339e16636b Terminal plugin (#2646) 7 years ago
Qingping Hou 1b700c0044 kobolight(fix): do not consume swipe event if not matched
Otherwise it will conflict with swipe to go back feature
7 years ago
Hzj_jie ed461c7f30 InputDialog is broken by #2672 (#2690)
This change also adds a tap_input_func in both TouchMenu and Button.
7 years ago
Hzj_jie 0318a048b4 Read timer plugin (#2672)
A countdown timer to notify user.
7 years ago
Frans de Jonge e0c2232237 Menus plugin typo fix 7 years ago
Frans de Jonge f22dcebb13 MenuSorter: fix overlooked new plugins
* frontlight gesture controller
* battery statistics
7 years ago
Frans de Jonge 425a4486e4 MenuSorter: fix orphaned storagestat 7 years ago
Frans de Jonge a970a1f034 MenuSorter: fix outside testability (for potential unit tests) 7 years ago
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 5b20106db7 MenuSorter: initial implementation
* Menus are now sanely configurable
* Custom separator placement for clearer menus
7 years ago
Hzj_jie 0b29e73e2e BatteryStat plugin and instruction of KoboLight plugin (#2643)
* Start battery stat plugin

* BatteryStat & kobolight

* Several minor improvements

* Remove a useless function

* flush settings

* Some review feedbacks

* Resolve review comments

* Remaining Minutes -> Remaining Hours

* Add dump_file

* typo

* realpath

* realpath on folder

* Remove useless os.time()

* Resolve review comments

* warning

* Add BatteryStat.debugging flag

* treat log as txt

* Minor improvement

* Charging hour should be positive

* Use warn instead of info

* onSuspend in Kobo

* Charging events for kobo and kindle

* More events

* dumpOrLog

* Warnings

* Typo

* More space

* Singleton

* slightly format change

* BatteryStat singleton

* Init

* Remove debugging flag

* sleeping percentage is still negative

* Read settings

* Do not need to change was_suspending and was_charging

* Typo

* Remove debugging flag

* Not charging should happen before suspend

* Resolve review comments

* was_suspend and was_charging should be updated each time in onCallback()
7 years ago
poire-z 8b295b5837 Fix KoboLight sensitivity
Which was increasing after each opening of a document.
Closes #2605
7 years ago
Hzj_jie e974476099 A crash will be triggered in evernote plugin if a history file is empty (#2604) 7 years ago
robert00s a2f2ac07a5 Ask for connection in GoodReads plugin while offline 7 years ago
Hzj_jie 819952ca54 Several minor improvements of evernote plugin (#2573)
* Several minor improvements of evernote plugin
7 years ago
Hzj_jie 7fb2dc8d5c Update kobolight plugin to support kindle (#2587) 7 years ago
robert00s 21f6c7dcc6 Ask for connection when clicking on TimeSync while offline 7 years ago
Robert 0cab4ca35e Day of week and months can now be translated (#2546)
* Day of week and months can now be translated
7 years ago
mblq 1e095afb15 fix overrides for plugin_kobolight_tap 7 years ago
Frans de Jonge 8476487c05 [plugins] TimeSync @lang fix comma splice 7 years ago
Hzj_jie 4a7225950a Update timesync plugin to use ntp (#2545)
* Improve several outputs

* Update timesync plugin to use ntp
7 years ago
Zijie He 4f1cabcdbc Improve several outputs 7 years ago
Frans de Jonge 6257bae77f Language: mostly Wikipedia-related changes 7 years ago
poire-z 7166efd777 ImageViewer: added zoom & pan via gestures
ImageWidget: removed 'autostretch' setting (replaced by scale_factor=0)
and renamed 'autoscale' setting to 'scale_for_dpi'.
7 years ago
robert00s 042eb660e8 Can't display the doc name in Statistics page 7 years ago
Hzj_jie 529d1b3d33 evernote: ReadHistory integration and text file output (#2498) 7 years ago
Nick Savage d33fee3a40 Statistics: Add percentage completed to Statistics plugin
Makes percentage completed easily accessible through the statistics plugin. It has always been accessible through the status bar, but not through the statistics menu.
7 years ago
Zijie He 8549d98805 Add checked tag for keepalive plugin 7 years ago
Hzj_jie 9b605c95a0 Rename onSaveSettings to saveSettings 7 years ago
Frans de Jonge 9e14fcc748 Fix "line thick" typo to "line thickness" (#2482)
Thanks to @kingu on Transifex.
7 years ago
Nick Savage 5346bbc935 StorageStat: Improve output #2486
This improves the output a little of StorageStat to make it easily read.
7 years ago
poire-z fc8d26ad89 Remove unnecessary PerceptionExpander:onSaveSettings()
All the explicite self:saveSettings() needed are done when needed,
and this onSaveSettings() made the file being rewritten unchanged on
each suspend/exit, and created even if people have never used the
plugin.
7 years ago
robert00s aa918c7773 Fix: wifi prompt in calibre wireless connection 7 years ago
Hzj_jie 6b8ff76507 EvernoteExporter plugin can be docless 7 years ago
Hzj_jie 489b46dedb StorageStat plugin (#2475) 7 years ago
Hzj_jie dbdce45129 Update statistics plugin to support docless mode 7 years ago
Hzj_jie f5601fe5ac Implement TimeSync plugin (#2459) 7 years ago
Qingping Hou 86e924aa45 ci(fix): run luacheck on plugins dir 7 years ago
Alexander Pletnev 2bc1be9956 #2447 Perception expander plugin (Improve peripheral vision) (#2455) 7 years ago
Hzj_jie ce6bc3df8d Implement keepalive plugin (#2456) 7 years ago
Qingping Hou ead5dfd9b4 readerview(feat): add registerViewModule method 8 years ago
Frans de Jonge 4f64ac4b69 Minor language fixes
Unsubscribe from was suggested by Allan Nordhøy (kingu) on Transifex.
8 years ago
Hzj_jie c662ca4cc8 Load plugins also in FileManager (#2426)
added is_doc_only plugin attribute
8 years ago
Frans de Jonge 4e2836187b Language: fixed a couple of Transifex issues
https://www.transifex.com/houqp/koreader/translate/#nb_NO/koreader/102219198
https://www.transifex.com/houqp/koreader/translate/#nb_NO/koreader/102219164
8 years ago
retrue eae730d140 Some uppercase fixes (#2421) 8 years ago
Qingping Hou a6c506dc10 kobolight(refactor): move into plugin & only enable for kobo 8 years ago
Qingping Hou bd43e59fe7 fix: disable network info menu when device is not connected 8 years ago
robert00s 14a3c5f7a8 Change GoodReadsApi to GoodreadsApi 8 years ago
Frans de Jonge 2bc7b01d78 Fix a few Goodreads-related typos 8 years ago
robert00s 2599c39d42 GoodReads Plugin (#2346)
GoodReads Plugin
8 years ago
Qingping Hou 854043e18d chore: fix all luacheck errors for plugins 8 years ago
robert00s 872ac457da Create reading progress page (#2312)
Create reading progress page
8 years ago
Qingping Hou 93873bfd69 plugins(chore): fix static check errors 8 years ago
robert00s 378ba2c7fe Extend current book statistics and fix bugs 8 years ago
Zijie He f36f8cb464 KOSync plugin should respect onNetworkConnected and onFlushSettings events 8 years ago
robert00s 42b705f47d Extend and fix statistics (#2300)
* Extend and fix statistics
* Add reading statistics: https://github.com/koreader/koreader/issues/2299
* Statistics / All Books shows only currently opened book : https://github.com/koreader/koreader/issues/2170
* Fix incorrect time: https://github.com/koreader/koreader/issues/2298
8 years ago
Frans de Jonge 6091378bc6 Various low-hanging language fruits
* Record to location, see https://github.com/koreader/koreader/pull/2268#issuecomment-252416860
* Defect size, see https://www.transifex.com/houqp/koreader/translate/#nl_NL/koreader/11979947?issue=yes
* Stop publisher/subscriber, see https://www.transifex.com/houqp/koreader/translate/#nl_NL/koreader/27031159?issue=yes and https://www.transifex.com/houqp/koreader/translate/#nl_NL/koreader/27031160?issue=yes and https://www.transifex.com/houqp/koreader/translate/#nl_NL/koreader/27031161?issue=yes
8 years ago
Hzj_jie fd7ae875c0 Whisper sync feature
Now KOReader supports more sync options, and most of the sync operation can be
executed automatically.
8 years ago
Frans de Jonge 88fd5501d9 kosync: improve a couple of strings 8 years ago
chrox 7ea12c0198 fix broken unit tests on Travis CI
1. It turns out that `device_id` is not defined in unit test environment
which makes the `assert(self.kosync_device_id)` fail and somehow makes `luajit` segmentation fault.
2. In the device spec, stubbing `io.open` will make subsquent `require`
all return boolean value and segmentation fault `luajit`.

This patch is a minimum viable change that makes CI work on both my
local box and Travis.
8 years ago
Zijie He 820a39c8f7 Update KOSyncClient 8 years ago
chrox 1d887f4fe1 book reading statistics for djvu documents 8 years ago
Qingping Hou 20eb36a03d feat: add network management UI for kobo 8 years ago
chrox 41f2fe85b7 fix #2119 by updating libSDL2.so and fix Evernote Plugin 8 years ago
Qingping Hou c22a3747d8 fix all the tests 8 years ago
Frans de Jonge 5638819f25 Removed a bunch of "successfully", replaced an ellipsis, and some deviant spellings of KOReader. 8 years ago
Allan Nordhøy bc16ed5035 Spelling of calibre and KOReader. Ellipsis. 8 years ago
Frans de Jonge b92e2264a1 Fix statistics translation 8 years ago
Qingping Hou 467199285f minor: rename Koreader to KOReader 8 years ago
Qingping Hou 7a22282dbe statistics: show current value in setting 8 years ago
Qingping Hou ac9888f106 fix: use ffi/md5 in plugins 8 years ago
Alex Pletnev 853e8581d0 fix error in case when process old statistics files 8 years ago
Qingping Hou bc8144ddfa statistics: ignore books with 0 total_time 8 years ago
Qingping Hou 11ee8d6fcc refactor: use new KeyValuePage widget for displaying statistics 8 years ago
Alex Pletnev fbf98ed920 #1710 FR: Add support of statistics plugin for pdf 8 years ago
Alex Pletnev a6ebbe9adb #1807 FR: Add separator into menu 8 years ago
Qingping Hou 2f0544b1b7 refactor(statistics): avoid magic 0.1 schedule with PostRender event 8 years ago
chrox 2ea217296b comments on the delayed stats initialization 8 years ago
chrox 6d3634b58d fix occationally stats being wiped out 8 years ago
Qingping Hou e19f73bdba style(util): rename tablelength to tableSize 8 years ago
Alex Pletnev 6bf9d75807 #1750 TB feature/statistics issue
Change time to read book formula to: ((total_read_time / read_pages) * (all_pages - current_page))
9 years ago
Alex Pletnev ce4e32e01c #1723 Add time to read into the status bar
Add new statuses:
TB - book time to read
TC - chapter time to read

Fix backward compatible in statistics plugin
9 years ago
Alex Pletnev daebb00f50 #1718 Save the statistics data into the history file 9 years ago
Alex Pletnev 698374c948 #1707 FR: Time to Read. Add "Time to read" into "current" section for statistics plugin 9 years ago
chrox 9d041fd5a3 fix FlushSettings event consumed by statistics plugin
so that ReaderUI cannot receive that event and all devices
don't flush settings when going into suspend or background.
9 years ago
chrox a60544b1ad Koreader Ubuntu-touch port
Currently only tested on Ubuntu-touch emulator with framework
ubuntu-sdk-14.10 for armhf.
The ubuntu-touch port is binary compatible with the Kobo port
major changes in this PR are:
1. rename the emulator device to sdl device since both the emulator
and the ubuntu-touch target use libsdl to handle input/output.
2. ubuntu-touch app has no write access to the installation dir so
all write-outs should be in a seperate dir definded in `datastorage`.
9 years ago
Alexander Pletnev 57d6d64ad3 Add Statistic plugin (#1581 Amount of hours spent on a book)
check for NaN in case when nothing read yet
9 years ago
Alexander Pletnev 24a4830bcc #1658 fix "All time" in statistics 9 years ago
chrox 9fd4ee8eac fix statistics translation 9 years ago
chrox 9e91512f5f add custom sync server option in Kosync plugin
This should fix #1619.
9 years ago
Alexander Pletnev 85f284440c Add Statistic plugin (#1581 Amount of hours spent on a book) 9 years ago
Alexander Pletnev c797bb53a4 Add Statistic plugin (#1581 Amount of hours spent on a book)
Add template
9 years ago
Alexander Pletnev c45328f14e Add Statistic plugin (#1581 Amount of hours spent on a book)
Changes based on comments
9 years ago
Alexander Pletnev 52d821df00 Add Statistic plugin (#1581 Amount of hours spent on a book) 9 years ago
chrox e416a58cd7 add missing refactoring of json parser for calibre plugin 9 years ago
chrox 8836225cec fix freeze when register for KOSync on Kindle 9 years ago
chrox d3bb0d159a disable Turbo on Android to save precious mcode
This is a workaround to fix #1456.
9 years ago
chrox dac9c85c3b fix show sync dialog on same page for PDF 9 years ago
chrox 055d3b0127 fix auto sync cannot be disabled 9 years ago
chrox 064992e3c1 localizations for messages from server 9 years ago
chrox 2a373e5f5b keep plugin naming consistent 9 years ago
chrox 25c7687c7d fix koplugin on Android 9 years ago
chrox d08e22ec2e add simple sync service as a plugin
The 'KOSync' plugin will synchronize furthest reading progress
across different koreader devices after users registering their
devices.

The synchronizing service is open-sourced as the project
[koreader/koreader-sync-server](https://github.com/koreader/koreader-sync-server).
9 years ago
chrox db064fc009 add toggle wifi status on PocketBook 9 years ago
Huang Xin 1f51cdc499 get rid of plugin name "calibre companion"
It's called "calibre wireless connection" now.
10 years ago
Frans de Jonge 73a6f71a0b Prevent spaces from being eaten by Transifex
Fixes #1276
10 years ago
Frans de Jonge 6a7e6ed6ca Some English improvements in evernote.koplugin 10 years ago
Frans de Jonge cf5f388a7f Correct "cannot connect to calibre server string" 10 years ago
Frans de Jonge e5029b54c1 Capitalization: change a few mentions of calibre to lowercase
The author likes it that way. See http://calibre-ebook.com/about
10 years ago
Frans de Jonge ff4e2f3458 Minor English improvements. 10 years ago
Hans-Werner Hilse 78b098e47d make functions in MD5 implementation local
also get rid of mostly unused helper libraries and some stylistic
oddities in the MD5 code
10 years ago
chrox b401bca59a get rid of unneccessary requirements 10 years ago
Hans-Werner Hilse 3066c86e38 Refactoring hardware abstraction
This is a major overhaul of the hardware abstraction layer.
A few notes:

General platform distinction happens in
  frontend/device.lua
which will delegate everything else to
  frontend/device/<platform_name>/device.lua
which should extend
  frontend/device/generic/device.lua

Screen handling is implemented in
  frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.

The same goes for input handling.
10 years ago
chrox 68265336f4 fix #1034 by refactoring path chooser to a download manager
Now directories visible in the filemanager should also
be visible in the path chooser
10 years ago
chrox 7eb58588fc add option to export highlights to local HTML files in Evernote plugin 10 years ago
chrox a4d5ec6534 plugin modules have 'name' field 10 years ago
chrox 508cf94f98 fix run out of memory when receiving large files from Calibre 10 years ago
chrox e002125696 use calibre ip address returned by receivefrom
This fixes unresolved hostname issue in some network configurations.
10 years ago
chrox 7871af3489 add Calibre Companion plugin
This plugin implements a simple Calibre Companion protocol that
communicates with Calibre Wireless Server from which users can
send documents to Koreader devices directly with WIFI connection.

Note that Calibre Companion(CC) is a trade mark held by MultiPie Ltd.
The Android app Calibre Companion provided by MultiPie is closed-source.
This plugin only implements a subset function of CC according to the
open-source smart device driver from Calibre source tree.

More details can be found at calibre/devices/smart_device_app/driver.py.
10 years ago
chrox 54ebfe8b2f refactoring: use pathchooser in zsync plugin 10 years ago
chrox a21c322499 add close button in InboxChooser 10 years ago
chrox b86a086a83 recalculate width in InboxChooser 10 years ago
Martín Fernández 58be50e45e Update main.lua 10 years ago
Martín Fernández 63dc9f7404 Update main.lua 10 years ago
pazos 9458936868 no need to translate trademarks v2 10 years ago
chrox 880e5499fb more informative notification 10 years ago
chrox d5860fa9fb no need to translate trademarks 10 years ago
chrox d1052a46fc prompt users to turn on Wifi if network is unreachable 10 years ago
chrox 4a3ecf59b4 ZSync now also synchronize document settings
This should implement #628.
10 years ago
chrox 2773ca9386 fix zsync cannot run properly in Kindle due to firewall 10 years ago
chrox 26f5a4731e add peer-to-peer file sharing plugin ZSync 10 years ago
chrox 162b1a69b5 don't clip page images when text is available 10 years ago
chrox e110492d16 fix no page field in pos when reflowing 10 years ago
chrox 3bba47b241 fix domain in login/logout menu not changed after switching domain 10 years ago
chrox 27148c3c8b check if booknotes are exported in this notebook
so that booknotes will still be exported after switching user account
10 years ago
chrox 55734f6aaa export highlighted rect in scanned page to Evernote 10 years ago
chrox dd278a4b1f fix inconsistant notes between myclipping and history 10 years ago
chrox 6a9adbacca incremental exporting of all notes 10 years ago
chrox 8e4eda579e add option to export notes to Yinxiang 10 years ago
chrox 5c1d5c3314 add Evernote plugin to export highlights and notes
The "My Clipping" file that storing highlights and notes for Kindle
native readers could also be parsed and exported. The parser is
implemented in `evernote.koplugin/clip.lua`.

Parsed highlights and notes in one book will be packed and rendered
into html node with a slt2 template `note.tpl` that complies with
evernote markup language(ENML).

Finally the evernote client will create or update note entries and
push them to Evernote cloud.
10 years ago