2
0
mirror of https://github.com/koreader/koreader synced 2024-11-08 07:10:27 +00:00
Commit Graph

969 Commits

Author SHA1 Message Date
poire-z
c15915a4ee Added util.getFriendlySize() (#3381)
* Added util.getFriendlySize()

* Allow for GB
2017-10-20 15:48:32 +00:00
Robert
3c99600835 close button alignment (#3367) 2017-10-16 18:23:50 +02:00
Robert
9f50ef696f [Goodreads] lookup improvement (#3354)
* add navigation button (next, prev) on the bottom of screen
* flash item when selecting
* small lookup improvements
* fix refresh "Please wait..."
2017-10-14 17:55:26 +02:00
poire-z
561caadc5c Avoid recalculation of partial_md5_checksum at each opening (#3352)
This is done by/for kosync plugin at each opening, because
the docsettings was re-opened and saved for this, but later
overwritten by the current koreader docsettings - so it was
redone each time. This correctly adds this partial_md5_checksum
to the current koreader docsettings, which will be saved on
document closing - so it will not be redone next time.
Note: this partial_md5_checksum is not (yet) used by anything.
2017-10-13 19:18:36 +02:00
poire-z
efd0d4f0de calibre 'series' metadata fixes (#3349)
Decode XML entities in series metadata and display decimal in series number
if any.
2017-10-13 00:31:40 +02:00
Robert
31f8372c87 [fix] Statistics: onPosUpdate and save stats when closing document (#3332) 2017-10-10 08:49:13 +02:00
poire-z
66e521f34b Fix stats in cre scroll mode (#3331) 2017-10-09 20:22:34 +02:00
Robert
ddf700043d [ReadTimer] Time from now (#3311) 2017-10-07 16:19:40 +02:00
Robert
0b2b2bbc2b refresh footer (#3313) 2017-10-07 12:28:08 +02:00
poire-z
b483c54be8 Fix footer, stats, TOC position with cre in scroll mode (#3304)
This gives the page position to these modules even in scroll mode.
Also, in readerrolling: don't query battery/charging status
when crengine does not need it (used only when it shows its top
progress bar).
2017-10-05 21:49:59 +02:00
Robert
ceb7cf9771 Migrate Goodreads to https (#3298) 2017-10-04 18:31:54 +02:00
poire-z
b55265ba91 CoverBrowser: avoid crash when indexing some cre documents (#3293) 2017-10-03 00:31:36 +02:00
Frans de Jonge
23e2183931 [fix] KOSync plugin server location (#3288)
This is only step one. It remains to be determined why the connection is downgraded to sslv3, which will result in a handshake failure.
2017-10-02 09:51:34 +02:00
Robert
f45188fb9d Time reader with normal time format v2 (#3279) 2017-10-01 18:15:59 +02:00
poire-z
e350e0e35a CoverBrowser: use a cache for crengine books extraction (#3277)
We previously disabled cache, but that may cause excessive
memory usage with big books. We now use a temporary
cache directory, that we clean when no more needed.
2017-09-30 18:02:35 +02:00
poire-z
48d888bedb CoverBrowser: use MuPDF for down-scaling images (#3272) 2017-09-28 21:47:05 +02:00
Robert
8d765e7d0d Add back button to statistics (#3267)
Closes: #3236 and #3235
Details:

> Also, when looking in days, we see info how many hours we read. It would be great if we could tap a day, it opens info on book(s) we read that day with info pertaining to that day, and if we tap on book, we receive book info for that book.

>  Statistics plugin is really great, I started to look in my reading statistics now much more, but all the time I can go only in one way. And I need to exit at lowest level of info. It would be great if I can use statistics plugin like part of menu, to go up and down within statistics data and exit at my wish, not when I have to.

Also added:

 * new statistics book by week
 * new statistics book by month
 * last year by week now we can see days in selected week
2017-09-28 15:35:25 +02:00
Frans de Jonge
ff3ca5d98d [Android] Enable CoverBrowser (#3264)
I was reminded by @KenMaltby that this is disabled on Android.

https://www.mobileread.com/forums/showthread.php?p=3586162#post3586162
2017-09-28 15:03:04 +02:00
mwoz123
e7da93da89 Adapt ND to changes in code where 0 means no limit (#3258)
+ reorganize config, improved comments
2017-09-24 18:30:45 +02:00
Frans de Jonge
8f3a5353e5 [fix] statistics: typo (#3252) 2017-09-23 22:03:28 +02:00
Frans de Jonge
a6be301695 Added Size module 2017-09-23 20:24:45 +02:00
Frans de Jonge
9eb073a524 [travis] Add protection against unscaled sizes
As pointed out by @poire-z

* [fix, UX] SkimToWidget scaling

* [fix] Button scaling

* [fix, UX] Scale ProgressWidget

* [fix, UX] Scale confirmbox

* [fix, UX] Scale just about everything
2017-09-23 20:24:45 +02:00
Robert
f0b9a66359 Book information for all books (#3250) 2017-09-23 19:51:58 +02:00
poire-z
4d18ac1100 Some History fixes and enhancements (#3247)
Made the onHold buttons table similar to the one of File browser.
Added "Purge .sdr" and "Delete" to these buttons.
Moved the purgeSettings and removeFileFromHistoryIfWanted
logic into filemanagerutil functions.
Stay on the same page when manipulating history (previously, we were
always put back on first page).
Really keep deleted files in history (unless setting says otherwise).
Show deleted files in grey or dimmed in classic History and all
CoverBrowser display modes.
2017-09-22 18:24:38 +02:00
Robert
019513f785 Prevent crash Timer in Filemanager (#3237) 2017-09-18 19:53:06 +02:00
Robert
2c3936ddb4 Refactoring readerfooter statistics - TB and TC (#3223) 2017-09-16 13:36:54 +02:00
Robert
7c88bad189 [fix] Statistics settings reset to default when on save without change (#3188)
* Fix: #3186
2017-09-14 22:31:25 +02:00
Robert
e5eb015f1b Statistics in bookstatuswidget (#3218) 2017-09-14 22:29:09 +02:00
Robert
b617efa21f Disable Current book when statistics are disabled (#3210) 2017-09-12 18:35:23 +02:00
Robert
392209c200 Change message after import (#3197) 2017-09-10 13:12:19 +02:00
Robert
c948472b66 On monthly statistics we can see the daily stats (#3175) 2017-09-09 20:19:05 +02:00
Robert
807c4a256d Fix problem with import old .stat files (#3195) 2017-09-09 20:18:16 +02:00
Hzj_jie
12af617b46 Revert last change to autofrontlight.koplugin 2017-09-05 12:30:55 -07:00
Robert
a003b375c2 Fix: Remove primary key from page_stat (#3157)
* Fix: Remove primary key from page_stat

* Fix: Prevent crash on Reading progress when no data from last 7 days

* Add indexes
2017-09-01 22:05:57 +02:00
Hzj_jie
1ff46a67b4 SwitchPlugin and BackgroundTaskPlugin with tests (#3137) 2017-08-31 16:37:39 +02:00
Frans de Jonge
a8d65aad35 [fix] Statistics: translation (#3151)
* [fix] Statistics: translation
2017-08-30 21:53:13 -07:00
Robert
7cec63e77a database name change to statistics.sqlite3 (#3147)
Clearer filename.
2017-08-29 20:42:17 +02:00
Robert
0e2d20353a Statistics plugin v2 (SQLite) (#2893) 2017-08-29 17:34:49 +02:00
poire-z
2595dbb0ec Add some settings to Display mode/Other settings menu (#3129) 2017-08-25 17:01:18 +02:00
Hzj_jie
b89435b432 Move PluginShare.backgroundJobs into PluginShare module (#3128) 2017-08-24 09:10:57 +02:00
poire-z
031df2ffee Added PicDocument:getCoverPageImage() and :getProps()
So an image file can have a cover in coverbrowser's display.
It also allows for an alternative viewer (ImageViewer widget)
when holding on file / View full size cover.
2017-08-20 19:59:15 +02:00
poire-z
cf95f5e8d3 Ensure TextWidget's width and heigth are integer
And removed workarounds in coverbrowser plugin.
2017-08-18 23:01:37 +02:00
poire-z
b4e7dc947c Added TextBoxWidget.has_split_inside_word flag
Used by coverbrowser's Text covers to choose the best font size.
2017-08-18 23:01:37 +02:00
poire-z
3b5cd4c23b CoverBrowser plugin: alt views for File Browser and History (#2940)
* CoverBrowser plugin: alt views for File Browser and History

* Added Prune cache and Compact cache menu actions

* Support for book descriptions, and settings stored in db
2017-08-17 19:34:36 +02:00
robert00s
ddd36d4150 Fix: Zsync -> Share this document crashes 2017-08-14 20:30:52 +02:00
Frans de Jonge
16dd5170b8 Newsdownloader: add HTTPS support and fixes
* Fixes #3041 (HTTPS)
* Fixes unlimited (limit = 0) was broken
* Fixes titles and links with attributes
2017-08-11 21:02:21 +02:00
Hzj_jie
a8513c95b6 Several minor fixes (#3057)
1. Android.getScreenBrightness() is used in frontend/device/android/powerd.lua to retrieve the frontlight intensity.
2. kosync.koplugin won't save settings for whisper sync.
3. batterstat.koplugin won't work correctly if several on* events are fired.
2017-08-08 08:29:57 +02:00
Frans de Jonge
b4167672fd Read timer: various improvements
* no timeout on alarm
* autoclose menu when starting timer
* show time in menu when active
2017-08-05 21:49:41 +02:00
Hzj_jie
c9a997f42c BackgroundRunner (#3008)
* Use getCapacityHW() to ensure latest battery capacity can be retrieved

* BackgroundRunner

* Start background_runner_spec.lua

* AutofrontLight plugin now uses BackgroundRunner plugin
2017-07-28 16:48:19 +02:00
robert00s
a675d21e34 Enable text justification in GoodReads review 2017-07-25 21:26:15 +02:00
mwoz123
b0cf2ca18a News downloader settings menu entry (#2990)
Placeholder with info.
2017-06-29 20:40:42 +02:00
Hzj_jie
e67ff2ab98 Use PluginShare to exchange data between plugins (#2981) 2017-06-26 21:39:23 -07:00
Hzj_jie
4ec96e377a Use getCapacityHW() to ensure latest battery capacity can be retrieved 2017-06-25 18:38:28 +02:00
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
2017-06-24 09:55:31 +02:00
Hzj_jie
7d2ed4c3d0 Move kobo auto-suspension logic out of UIManager (#2933) 2017-06-23 10:04:11 -07:00
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.
2017-06-19 19:00:36 -07:00
Hzj_jie
53eb4dee50 AutoFrontlight plugin (#2941)
* Add AutoFrontlight plugin

* Add configuration to control autofrontlight feature
2017-06-14 19:32:16 +02:00
Zijie He
0a02b529ae Remove BatteryStat:initCurrentState() 2017-05-31 22:21:35 +02:00
Hzj_jie
d4756d777f (chore)Fix A typo in BatteryStat plugin (#2912) 2017-05-21 10:44:53 +02:00
Hzj_jie
cc020b901a Fix KOsync crash when closing document (#2911) 2017-05-21 08:36:41 +02:00
mwoz123
66b0c54d4d (chore) NewsDownloader: don't require restart for changing download directory (#2901) 2017-05-17 22:24:49 +02:00
Frans de Jonge
87049a8020 (minor) NewsDownloader: Koreader to KOReader 2017-05-16 22:49:09 -07:00
Hzj_jie
30378eb2a8 Add restart koreader function and ensure FlushSettings event can be delivered to all widgets (#2772) 2017-05-16 02:11:11 -07:00
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
2017-05-15 21:48:18 -07:00
mwoz123
79830f3041 News Downloader: Select Custom download folder (#2886) 2017-05-14 01:46:12 -07:00
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
2017-05-08 22:15:42 +02:00
Qingping Hou
6d3349d84b goodreads(fix): remove incorrect image_disposable setting 2017-05-08 02:39:51 -07:00
Qingping Hou
3541320cd2 goodreads(fix): double free 2017-05-08 09:55:02 +02:00
Frans de Jonge
e1aa57f27e Font: unify font styling 2017-04-29 03:01:38 -07:00
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
2017-04-29 03:01:38 -07:00
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
2017-04-24 08:27:29 +02:00
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
2017-04-19 17:59:45 +02:00
Hzj_jie
999898fa69 Merge various information into systemstat (#2764)
* Merge various information to systemstat
2017-04-14 21:12:28 +02:00
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.
2017-04-09 15:03:21 -07:00
robert00s
a51941c397 Add Last suspend and resume time into System statistics 2017-04-09 20:27:53 +02:00
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
2017-04-06 21:56:56 -07:00
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
2017-04-06 11:12:35 +02:00
Frans de Jonge
d91bd91840 Terminal plugin: minor language fixes
* ... should be a proper ellipsis
* "written" is a bit more end-user friendly than "dumped"
2017-04-03 01:28:52 -07:00
Hzj_jie
3ad3452d1a System Stat plugin (#2699) 2017-04-02 14:46:19 -07:00
Hzj_jie
339e16636b Terminal plugin (#2646) 2017-04-01 23:50:24 -07:00
Qingping Hou
1b700c0044 kobolight(fix): do not consume swipe event if not matched
Otherwise it will conflict with swipe to go back feature
2017-03-30 10:59:04 -07:00
Hzj_jie
ed461c7f30 InputDialog is broken by #2672 (#2690)
This change also adds a tap_input_func in both TouchMenu and Button.
2017-03-28 15:47:18 -07:00
Hzj_jie
0318a048b4 Read timer plugin (#2672)
A countdown timer to notify user.
2017-03-26 21:42:58 -07:00
Frans de Jonge
e0c2232237 Menus plugin typo fix 2017-03-26 13:14:56 +02:00
Frans de Jonge
f22dcebb13 MenuSorter: fix overlooked new plugins
* frontlight gesture controller
* battery statistics
2017-03-26 11:29:34 +02:00
Frans de Jonge
425a4486e4 MenuSorter: fix orphaned storagestat 2017-03-26 11:12:44 +02:00
Frans de Jonge
a970a1f034 MenuSorter: fix outside testability (for potential unit tests) 2017-03-26 11:12:44 +02:00
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
2017-03-26 11:12:44 +02:00
Frans de Jonge
5b20106db7 MenuSorter: initial implementation
* Menus are now sanely configurable
* Custom separator placement for clearer menus
2017-03-26 11:12:44 +02:00
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()
2017-03-23 23:36:15 -07:00
poire-z
8b295b5837 Fix KoboLight sensitivity
Which was increasing after each opening of a document.
Closes #2605
2017-03-11 21:10:12 +01:00
Hzj_jie
e974476099 A crash will be triggered in evernote plugin if a history file is empty (#2604) 2017-03-02 20:43:04 -08:00
robert00s
a2f2ac07a5 Ask for connection in GoodReads plugin while offline 2017-02-28 01:01:02 -08:00
Hzj_jie
819952ca54 Several minor improvements of evernote plugin (#2573)
* Several minor improvements of evernote plugin
2017-02-26 23:41:06 -08:00
Hzj_jie
7fb2dc8d5c Update kobolight plugin to support kindle (#2587) 2017-02-26 02:19:20 -08:00
robert00s
21f6c7dcc6 Ask for connection when clicking on TimeSync while offline 2017-02-25 18:04:52 +01:00
Robert
0cab4ca35e Day of week and months can now be translated (#2546)
* Day of week and months can now be translated
2017-02-19 13:12:45 -08:00
mblq
1e095afb15 fix overrides for plugin_kobolight_tap 2017-02-19 12:15:49 -08:00
Frans de Jonge
8476487c05 [plugins] TimeSync @lang fix comma splice 2017-02-19 12:15:13 -08:00
Hzj_jie
4a7225950a Update timesync plugin to use ntp (#2545)
* Improve several outputs

* Update timesync plugin to use ntp
2017-02-17 18:38:49 -08:00
Zijie He
4f1cabcdbc Improve several outputs 2017-02-16 08:23:04 +01:00
Frans de Jonge
6257bae77f Language: mostly Wikipedia-related changes 2017-02-02 02:09:51 -08:00
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'.
2017-01-30 08:28:51 -08:00
robert00s
042eb660e8 Can't display the doc name in Statistics page 2017-01-24 20:14:36 -08:00
Hzj_jie
529d1b3d33 evernote: ReadHistory integration and text file output (#2498) 2017-01-21 01:32:42 -08:00
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.
2017-01-20 02:58:11 -08:00
Zijie He
8549d98805 Add checked tag for keepalive plugin 2017-01-18 07:03:22 -08:00
Hzj_jie
9b605c95a0 Rename onSaveSettings to saveSettings 2017-01-18 06:33:49 -08:00
Frans de Jonge
9e14fcc748 Fix "line thick" typo to "line thickness" (#2482)
Thanks to @kingu on Transifex.
2017-01-15 07:02:25 -08:00
Nick Savage
5346bbc935 StorageStat: Improve output #2486
This improves the output a little of StorageStat to make it easily read.
2017-01-14 20:29:55 -08:00
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.
2017-01-12 19:10:52 -08:00
robert00s
aa918c7773 Fix: wifi prompt in calibre wireless connection 2017-01-11 20:25:47 -08:00
Hzj_jie
6b8ff76507 EvernoteExporter plugin can be docless 2017-01-09 00:58:19 -08:00
Hzj_jie
489b46dedb StorageStat plugin (#2475) 2017-01-08 01:38:24 -08:00
Hzj_jie
dbdce45129 Update statistics plugin to support docless mode 2017-01-08 01:14:22 -08:00
Hzj_jie
f5601fe5ac Implement TimeSync plugin (#2459) 2017-01-01 10:29:29 -08:00
Qingping Hou
86e924aa45 ci(fix): run luacheck on plugins dir 2016-12-29 00:02:22 -08:00
Alexander Pletnev
2bc1be9956 #2447 Perception expander plugin (Improve peripheral vision) (#2455) 2016-12-27 16:37:26 -08:00
Hzj_jie
ce6bc3df8d Implement keepalive plugin (#2456) 2016-12-27 02:03:11 -08:00
Qingping Hou
ead5dfd9b4 readerview(feat): add registerViewModule method 2016-12-25 12:13:53 -08:00
Frans de Jonge
4f64ac4b69 Minor language fixes
Unsubscribe from was suggested by Allan Nordhøy (kingu) on Transifex.
2016-12-22 01:39:47 -08:00
Hzj_jie
c662ca4cc8 Load plugins also in FileManager (#2426)
added is_doc_only plugin attribute
2016-12-19 23:19:54 -08:00
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
2016-12-16 22:49:08 -08:00
retrue
eae730d140 Some uppercase fixes (#2421) 2016-12-14 11:08:57 -08:00
Qingping Hou
a6c506dc10 kobolight(refactor): move into plugin & only enable for kobo 2016-12-10 16:06:51 -08:00
Qingping Hou
bd43e59fe7 fix: disable network info menu when device is not connected 2016-11-27 16:48:42 -08:00
robert00s
14a3c5f7a8 Change GoodReadsApi to GoodreadsApi 2016-11-22 09:09:05 +01:00
Frans de Jonge
2bc7b01d78 Fix a few Goodreads-related typos 2016-11-19 12:35:00 -08:00
robert00s
2599c39d42 GoodReads Plugin (#2346)
GoodReads Plugin
2016-11-18 09:09:30 -08:00
Qingping Hou
854043e18d chore: fix all luacheck errors for plugins 2016-11-07 21:24:34 -08:00
robert00s
872ac457da Create reading progress page (#2312)
Create reading progress page
2016-11-04 14:35:20 -07:00
Qingping Hou
93873bfd69 plugins(chore): fix static check errors 2016-11-01 00:31:24 -07:00
robert00s
378ba2c7fe Extend current book statistics and fix bugs 2016-11-01 00:05:51 -07:00
Zijie He
f36f8cb464 KOSync plugin should respect onNetworkConnected and onFlushSettings events 2016-10-25 23:24:42 -07:00
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
2016-10-24 10:15:56 -07:00
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
2016-10-17 10:19:33 -07:00
Hzj_jie
fd7ae875c0 Whisper sync feature
Now KOReader supports more sync options, and most of the sync operation can be
executed automatically.
2016-10-07 11:23:27 -07:00
Frans de Jonge
88fd5501d9 kosync: improve a couple of strings 2016-08-28 21:12:20 +02:00
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.
2016-08-11 18:17:09 +08:00
Zijie He
820a39c8f7 Update KOSyncClient 2016-08-10 10:42:51 -07:00
chrox
1d887f4fe1 book reading statistics for djvu documents 2016-07-15 23:00:46 +08:00
Qingping Hou
20eb36a03d feat: add network management UI for kobo 2016-07-11 23:50:19 -07:00
chrox
41f2fe85b7 fix #2119 by updating libSDL2.so and fix Evernote Plugin 2016-07-05 22:16:42 +08:00
Qingping Hou
c22a3747d8 fix all the tests 2016-04-19 00:01:28 -07:00
Frans de Jonge
5638819f25 Removed a bunch of "successfully", replaced an ellipsis, and some deviant spellings of KOReader. 2016-04-16 12:37:08 +02:00
Allan Nordhøy
bc16ed5035 Spelling of calibre and KOReader. Ellipsis. 2016-04-15 15:04:41 +02:00
Frans de Jonge
b92e2264a1 Fix statistics translation 2016-04-04 17:39:02 +02:00
Qingping Hou
467199285f minor: rename Koreader to KOReader 2016-03-27 18:50:23 -07:00
Qingping Hou
7a22282dbe statistics: show current value in setting 2016-03-05 12:59:32 -08:00
Qingping Hou
ac9888f106 fix: use ffi/md5 in plugins 2016-02-27 12:58:11 -08:00
Alex Pletnev
853e8581d0 fix error in case when process old statistics files 2016-02-15 15:58:46 +02:00
Qingping Hou
bc8144ddfa statistics: ignore books with 0 total_time 2016-02-15 02:18:10 -08:00
Qingping Hou
11ee8d6fcc refactor: use new KeyValuePage widget for displaying statistics 2016-02-14 21:54:17 -08:00
Alex Pletnev
fbf98ed920 #1710 FR: Add support of statistics plugin for pdf 2016-02-12 16:55:02 +02:00
Alex Pletnev
a6ebbe9adb #1807 FR: Add separator into menu 2016-02-11 18:47:27 +02:00
Qingping Hou
2f0544b1b7 refactor(statistics): avoid magic 0.1 schedule with PostRender event 2016-02-07 14:03:53 -08:00
chrox
2ea217296b comments on the delayed stats initialization 2016-02-06 23:39:11 +08:00
chrox
6d3634b58d fix occationally stats being wiped out 2016-02-06 23:33:52 +08:00
Qingping Hou
e19f73bdba style(util): rename tablelength to tableSize 2016-01-31 14:58:05 -08:00
Alex Pletnev
6bf9d75807 #1750 TB feature/statistics issue
Change time to read book formula to: ((total_read_time / read_pages) * (all_pages - current_page))
2015-12-21 08:49:03 +02:00
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
2015-11-27 17:13:01 +02:00
Alex Pletnev
daebb00f50 #1718 Save the statistics data into the history file 2015-11-23 21:37:36 +02:00
Alex Pletnev
698374c948 #1707 FR: Time to Read. Add "Time to read" into "current" section for statistics plugin 2015-11-07 00:44:38 +02:00
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.
2015-10-26 22:11:11 +08:00
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`.
2015-10-03 14:48:51 +08:00
Alexander Pletnev
57d6d64ad3 Add Statistic plugin (#1581 Amount of hours spent on a book)
check for NaN in case when nothing read yet
2015-10-02 23:31:00 +03:00
Alexander Pletnev
24a4830bcc #1658 fix "All time" in statistics 2015-10-02 23:18:18 +03:00
chrox
9fd4ee8eac fix statistics translation 2015-09-26 13:00:50 +08:00
chrox
9e91512f5f add custom sync server option in Kosync plugin
This should fix #1619.
2015-09-17 23:28:42 +08:00
Alexander Pletnev
85f284440c Add Statistic plugin (#1581 Amount of hours spent on a book) 2015-09-16 12:12:31 +03:00
Alexander Pletnev
c797bb53a4 Add Statistic plugin (#1581 Amount of hours spent on a book)
Add template
2015-09-15 22:36:43 +03:00
Alexander Pletnev
c45328f14e Add Statistic plugin (#1581 Amount of hours spent on a book)
Changes based on comments
2015-09-13 22:34:20 +03:00
Alexander Pletnev
52d821df00 Add Statistic plugin (#1581 Amount of hours spent on a book) 2015-09-07 20:06:17 +03:00
chrox
e416a58cd7 add missing refactoring of json parser for calibre plugin 2015-03-21 14:18:37 +08:00
chrox
8836225cec fix freeze when register for KOSync on Kindle 2015-03-21 13:19:00 +08:00
chrox
d3bb0d159a disable Turbo on Android to save precious mcode
This is a workaround to fix #1456.
2015-03-20 10:15:41 +08:00
chrox
dac9c85c3b fix show sync dialog on same page for PDF 2015-03-16 21:51:17 +08:00
chrox
055d3b0127 fix auto sync cannot be disabled 2015-03-11 12:23:23 +08:00
chrox
064992e3c1 localizations for messages from server 2015-03-10 15:49:33 +08:00
chrox
2a373e5f5b keep plugin naming consistent 2015-03-10 15:12:44 +08:00
chrox
25c7687c7d fix koplugin on Android 2015-03-10 15:09:42 +08:00
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).
2015-03-09 20:20:36 +08:00
chrox
db064fc009 add toggle wifi status on PocketBook 2015-02-01 15:16:27 +08:00
Huang Xin
1f51cdc499 get rid of plugin name "calibre companion"
It's called "calibre wireless connection" now.
2014-12-21 19:12:58 +08:00
Frans de Jonge
73a6f71a0b Prevent spaces from being eaten by Transifex
Fixes #1276
2014-11-28 22:38:54 +01:00
Frans de Jonge
6a7e6ed6ca Some English improvements in evernote.koplugin 2014-11-19 17:33:45 +01:00
Frans de Jonge
cf5f388a7f Correct "cannot connect to calibre server string" 2014-11-12 13:34:29 +01:00
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
2014-11-12 13:10:48 +01:00
Frans de Jonge
ff4e2f3458 Minor English improvements. 2014-11-12 12:29:38 +01:00
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
2014-11-11 15:53:26 +01:00
chrox
b401bca59a get rid of unneccessary requirements 2014-11-05 16:58:48 +08:00
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.
2014-11-02 21:19:04 +01:00
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
2014-10-28 17:14:06 +08:00
chrox
7eb58588fc add option to export highlights to local HTML files in Evernote plugin 2014-10-16 18:25:02 +08:00
chrox
a4d5ec6534 plugin modules have 'name' field 2014-10-09 12:26:52 +08:00
chrox
508cf94f98 fix run out of memory when receiving large files from Calibre 2014-09-29 14:22:33 +08:00
chrox
e002125696 use calibre ip address returned by receivefrom
This fixes unresolved hostname issue in some network configurations.
2014-09-18 20:39:50 +08:00
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.
2014-09-18 14:03:55 +08:00
chrox
54ebfe8b2f refactoring: use pathchooser in zsync plugin 2014-09-13 14:23:20 +08:00
chrox
a21c322499 add close button in InboxChooser 2014-08-12 22:26:59 +08:00
chrox
b86a086a83 recalculate width in InboxChooser 2014-08-12 22:14:04 +08:00
Martín Fernández
58be50e45e Update main.lua 2014-08-09 16:16:20 +02:00
Martín Fernández
63dc9f7404 Update main.lua 2014-08-09 16:15:44 +02:00
pazos
9458936868 no need to translate trademarks v2 2014-08-09 13:56:49 +02:00
chrox
880e5499fb more informative notification 2014-08-01 22:01:57 +08:00
chrox
d5860fa9fb no need to translate trademarks 2014-07-17 21:06:01 +08:00
chrox
d1052a46fc prompt users to turn on Wifi if network is unreachable 2014-07-17 21:01:31 +08:00
chrox
4a3ecf59b4 ZSync now also synchronize document settings
This should implement #628.
2014-07-04 02:28:33 +08:00
chrox
2773ca9386 fix zsync cannot run properly in Kindle due to firewall 2014-06-25 21:32:50 +08:00
chrox
26f5a4731e add peer-to-peer file sharing plugin ZSync 2014-06-23 22:35:41 +08:00
chrox
162b1a69b5 don't clip page images when text is available 2014-05-16 14:02:08 +08:00
chrox
e110492d16 fix no page field in pos when reflowing 2014-05-15 20:04:59 +08:00
chrox
3bba47b241 fix domain in login/logout menu not changed after switching domain 2014-05-15 17:53:56 +08:00
chrox
27148c3c8b check if booknotes are exported in this notebook
so that booknotes will still be exported after switching user account
2014-05-15 17:27:23 +08:00
chrox
55734f6aaa export highlighted rect in scanned page to Evernote 2014-05-15 16:11:26 +08:00
chrox
dd278a4b1f fix inconsistant notes between myclipping and history 2014-05-15 16:11:26 +08:00
chrox
6a9adbacca incremental exporting of all notes 2014-05-12 18:07:20 +08:00
chrox
8e4eda579e add option to export notes to Yinxiang 2014-05-01 18:38:43 +08:00
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.
2014-04-23 22:30:36 +08:00