2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

1608 Commits

Author SHA1 Message Date
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.
2017-06-29 08:23:32 +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
Robert
bd92d68b7f Remove Set default Fine Tuning (#2971) 2017-06-19 08:34:01 +08:00
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
2017-06-19 00:08:57 +08:00
Hzj_jie
53eb4dee50 AutoFrontlight plugin (#2941)
* Add AutoFrontlight plugin

* Add configuration to control autofrontlight feature
2017-06-14 19:32:16 +02:00
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.
2017-06-03 11:14:36 +02:00
Frans de Jonge
750be8cc5a Revert "(chore) Remove storage satistics menu order leftovers (#2922)"
This reverts commit 8fc50335df.
2017-05-30 03:02:16 -07:00
Frans de Jonge
8fc50335df (chore) Remove storage satistics menu order leftovers (#2922)
Fixes #2921. Leftover from #2764.
2017-05-27 09:29:41 -07:00
Qingping Hou
ed36ab3f9b language: remove out of date Russian translation 2017-05-24 10:55:58 +02: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
Martín Fernández
474c011f21 [kobo]: add reboot and poweroff menu actions (#2888) 2017-05-14 09:43:08 -07:00
poire-z
9e346f5559 Allow wikipedia lookup from filemanager
Also allow taking screenshot when on dictionary window.
2017-05-12 19:10:26 +02:00
Qingping Hou
bde2139b27 wifi(fix): quote ssid and password for wpa_passphrase 2017-05-09 09:43:47 +02: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
Robert
f21550b3d5 minor: translate "Save as epub" and "Close" in full Wikipedia window (#2875)
* translate save as epub and close

* epub to EPUB
2017-05-08 18:14:29 +02:00
Qingping Hou
3541320cd2 goodreads(fix): double free 2017-05-08 09:55:02 +02:00
Qingping Hou
23c2955500 chore: style cleanup for infomessage 2017-05-08 09:38:48 +02:00
Robert
0b47c81b1a Add Greek keyboard (#2866)
* Add Greek keyboard

* Fix fix raw to row in comments
2017-05-07 13:28:01 +02:00
Frans de Jonge
e7f4af1065 DevDocs: ui.downloadmgr 2017-05-06 18:25:24 -07:00
Frans de Jonge
773e24fc79 (chore) some require sorting. 2017-04-29 11:41:24 -07:00
Frans de Jonge
e1aa57f27e Font: unify font styling 2017-04-29 03:01:38 -07:00
Frans de Jonge
19928f2b1b KeyValuePage: smaller font and padding 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
Frans de Jonge
bb70ae9eaf Dev docs: some widgets 2017-04-27 01:29:54 -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
Qingping Hou
6f037cec30 ota(fix): do not create 0 size installed file if index is missing 2017-04-23 08:25:28 +02:00
Qingping Hou
76e427cbb4 kodev: add device simulation option for run command (#2802) 2017-04-23 12:32:58 +08:00
Qingping Hou
f2671a3e20 plugin(fix): catch crash in addToMainMenu 2017-04-22 00:22:37 -07: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
Qingping Hou
4a2ef591b7 tweak quick start guide formatting 2017-04-16 22:41:36 +02:00
Frans de Jonge
89099e2c94 Swipe for menu and quickstart guide (#2761)
* Swipe for menu and quickstart guide

Because swiping for the menu is a big change from what we're used to, this commit includes a new quickstart guide.

Fixes #2608.

* add some dev docs
* add FileConverter spec
* add QuickStart spec
* add Version module
* add Version spec
2017-04-15 14:45:56 +02:00
Qingping Hou
1922b2526b fix: normalize require path to reuse import result 2017-04-14 21:28:38 +02:00
Frans de Jonge
485295657c Docs: fix typo in listview.lua example 2017-04-12 22:45:42 +02:00
Frans de Jonge
c847d628e1 Docs: cosmetic updates and additions
* Content from wiki had some cosmetic leftover glitches
* Added/adapted some docs for other modules
2017-04-12 11:27:22 -07:00
Qingping Hou
15fd7fc0ff bring back support for disabling progressbar in footer (#2753)
* footer(optimize): remove dead code

* footer(fix): disable auto refresh time option when current time is not checked

* fix: support disable progress bar again
2017-04-11 11:44:58 +02:00
Frans de Jonge
f1c0b4b3bb UIManager docs & lang: add some docs and correct "quiting" to "quitting" 2017-04-09 15:31:37 -07:00
Robert
59873ae293 Screensaver option on Kindle devices (#2734)
* Screensaver on Kindle devices
2017-04-08 23:21:03 +02:00
Frans de Jonge
e8721887ba InputContainer: add cancel_text and ok_text
Makes it easier to comply with UX style.

* Change "OK" to "Search dictionary" in Dictionary lookup to comply with UX style
* Change "OK" to "Search all text" in Fulltext search to comply with UX style

Tacked on but highly related:

* change "OK" to "Search Wikipedia" in Wikipedia lookup to comply with UX style
* change "OK" to "Set default" in ConfigDialog to comply with UX style

Chore:

* fixed up order of requires
2017-04-08 03:27:18 -07: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
Frans de Jonge
dd7251e66d Menu order and separators
* Add separators to navigation menu
* Move speed reading to "typeset" (reading experience) menu
* Move Goodreads over to search

See https://github.com/koreader/koreader/issues/2562#issuecomment-290379241
2017-04-06 21:52:48 -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
a8b3873c8c Help submenu
This commit seeks to improve the paltry help menu item. It breaks the "try to have at least three items in a submenu" rule in anticipation of an upcoming quickstart guide and show quickstart guide setting. This guide will explain that (soon) you will have to swipe south at the top of the screen to activate the menu.

Also see the somewhat related #1371, which would also go in the submenu.
2017-04-04 09:31:25 -07:00
Frans de Jonge
2e43faedfe FileManager menu order: add synchronize_time
Fixes #2722.
2017-04-04 08:04:14 -07:00
Frans de Jonge
da48a54727 Fix LuaCheck error
"frontend/ui/menusorter.lua:110:13: value assigned to variable 'sub_menu_content' is unused"

Kind of the point, I'm assigning it nil after all. This way it probably shouldn't complain.
2017-04-04 08:04:14 -07:00
Frans de Jonge
3982170886 MenuSorter: fix findById 2017-04-04 08:04:14 -07:00
Frans de Jonge
e9df73f6dc Developer documentation improvements
* Fixed up all of util and added when absent
* Updated widget examples to new coding style
2017-04-04 08:01:15 -07:00
Frans de Jonge
1c25d0fd1b Language: improve confirmboxes
Generic "OK" buttons should be avoided. Thanks to @lightonflux for pointing this out https://github.com/koreader/koreader/issues/2555#issuecomment-291039945
2017-04-04 07:56:09 -07:00
Hzj_jie
3ad3452d1a System Stat plugin (#2699) 2017-04-02 14:46:19 -07:00
Robert
a3c4254809 Added util.fixUtf8 (#2704)
* Remove invalid UTF-8 chars from OPDS
* add unit tests
2017-04-02 16:17:49 +02:00
Hzj_jie
339e16636b Terminal plugin (#2646) 2017-04-01 23:50:24 -07:00
Hzj_jie
1a2e4f5b55 Force Kobo to suspend (#2691)
Without this change, the device resumed randomly. With this change, the device had not resumed randomly anymore. (Technically speaking, it still randomly resumed, but got suspended immediately.)
2017-04-01 17:14:06 +02:00
Cosmin Gorgovan
6aeecdba08 Only show the last character of a password after typing it 2017-04-01 15:31:04 +02:00
Frans de Jonge
cee3603436 TouchMenu: keep hamburger menu on the right 2017-03-30 10:36:50 -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
Cosmin Gorgovan
3e656d71e0 WiFi manager bugfix: delete the cached psk when changing the password
Previously, the cached psk, which is derived from the password and
passed to wpa_supplicant, was not updated when changing the password.
2017-03-26 20:23:39 -07: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
8b7e18a7d7 MenuSorter: resolve review comments
* simplify user config loop
* simplify unit test for Travis memory use
* remove unused util variable
2017-03-26 11:12:44 +02:00
Frans de Jonge
1e351e6b87 Menu: remove "Show advanced options"
See #2610 for discussion.
2017-03-26 11:12:44 +02:00
Frans de Jonge
99349173be TouchMenu [widget]: remove check for missing menu item 2017-03-26 11:12:44 +02:00
Frans de Jonge
ddf590eb6d MenuSorter: split out menu order configuration 2017-03-26 11:12:44 +02:00
Frans de Jonge
33c848f813 MenuSorter: first unit tests 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
653ff64438 MenuSorter: handle disabled 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
56659ddb20 MenuSorter: avoid recursion in findById 2017-03-26 11:12:44 +02:00
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
2017-03-26 11:12:44 +02:00
Frans de Jonge
aa0bf60ccb MenuSorter: pass config prefix for proper user override 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
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
2017-03-24 00:20:37 -07:00
Hzj_jie
8f4ec13841 Remove powerd:refreshCapacity() (#2671) 2017-03-24 00:18:03 -07: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
retrue
0edf1cca29 Minor fix in the sorting in language.lua
See https://github.com/koreader/koreader/pull/2662#issuecomment-287855474
2017-03-21 10:19:09 -07:00
poire-z
39d1afe37d Update footer when refreshing screen with diagonal swipe
And added diagonal swipe support to readerrolling.
2017-03-20 11:19:14 -07:00
robert00s
00d6403da4 Add supported language 2017-03-20 11:13:04 -07:00
Qingping Hou
ee0e337433 opds(fix): avoid infinite loop on paging 2017-03-19 15:09:57 +01:00
Robert
4f40250b88 Prompt users to turn on Wifi in Cloud Storage and OPDS Browser (#2650)
* prompt users to turn on Wifi in Cloud Storage and OPDS Browser
2017-03-18 13:49:28 +01:00
Robert
dccbf4cf96 Fix crash when downloading books with unknown characters in title (#2628) 2017-03-15 00:59:42 -07:00
Frans de Jonge
ce8f568486 Revert "TouchMenu: keep file/exit button on the right" 2017-03-04 09:35:08 +01:00
Adrian Sampaleanu
fc5e8f1242 OPDS catalog: improve download dialog (#2445)
* Add action clarification to format download dialog

The format download dialog now has a title reflecting where a format will be downloaded with a prefix making it clear that choosing a format will download it.
2017-03-03 00:12:36 -08:00
Bastien Dejean
f72514f99d Use a simple gray line to separate menu items 2017-03-02 22:36:06 -08:00
Frans de Jonge
a9b969b58f TouchMenu: keep file/exit button on the right
References #2555.
2017-03-02 22:13:55 -08:00
Qingping Hou
098ceeb95b fix: use psk for network authentication
also migrate to latest ljwpaclient with breaking api change
2017-02-27 11:08:57 +01:00
Qingping Hou
d478eaeabe fix:(wpa_supplicant): show error from set_network operations 2017-02-27 11:08:57 +01:00
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
2017-02-26 13:50:59 -08:00
Qingping Hou
4fce69d18d bookstatus(minor): read setting only once 2017-02-26 07:38:52 +01:00
robert00s
8b95b8fd96 Fix #2176 - Wrong book's review and rating stars are shown 2017-02-25 22:35:19 +01:00
Frans de Jonge
1ed0ce0c21 FileManager: fix up arrow issue 2017-02-25 15:34:28 +01:00
Frans de Jonge
6458c8e9eb File Manager: rename to "KOReader File Browser" and add up arrow to ".."
This should make it clearer to new users what's going on. Fixes #2529.
2017-02-23 23:28:49 -08:00
Bastien Dejean
ee54e127b1 FileManager: replace arrows by ellipsis to indicate cut-off long filenames 2017-02-20 18:08:28 -08:00
Bastien Dejean
f0b63003e9 Use a smaller font to display the filename
More information regarding the file!
2017-02-20 19:39:23 +01:00
Hzj_jie
726b15ad01 More sorting orders in file manager (#2535) 2017-02-11 18:55:31 -08:00
Zijie He
b502047635 Removing metadata file instead of purging .sdr folder 2017-02-08 10:38:24 -08:00
Frans de Jonge
bec5f46245 Merge pull request #2524 from Hzj-jie/master2
Add characters in menu items to indicate sub menus
2017-02-08 10:43:40 +01:00
Hzj_jie
18117584c0 Resolve review comments 2017-02-03 20:26:47 -08:00
poire-z
56d1a26a8b ImageViewer: allow zoom with vertical swipe on sides
For devices without multi touch support, where pinch & spreak don't work.
2017-02-02 02:15:12 -08:00
Frans de Jonge
6257bae77f Language: mostly Wikipedia-related changes 2017-02-02 02:09:51 -08:00
Hzj_jie
c33d1aa43b Use 25b9 instead of > 2017-02-01 19:52:47 -08:00