Commit Graph

2461 Commits (e3c17aa6d0f03ad9af56d5eb2d4ac899a3acda70)

Author SHA1 Message Date
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
8 years ago
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
8 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
8 years ago
robert00s ba74921c4b Fix showing footer on Kindle with Special Offers screensaver 8 years ago
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.
8 years ago
Frans de Jonge 2e43faedfe FileManager menu order: add synchronize_time
Fixes #2722.
8 years ago
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.
8 years ago
Frans de Jonge 3982170886 MenuSorter: fix findById 8 years ago
Frans de Jonge e9df73f6dc Developer documentation improvements
* Fixed up all of util and added when absent
* Updated widget examples to new coding style
8 years ago
Frans de Jonge 69b826781a gettext: unescape quotation mark
Fixes #2718.
8 years ago
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
8 years ago
Frans de Jonge b076ca1c29 ReaderFooter: fix quick browsing by tapping footer in flipping mode
Fixes #2649.
8 years ago
Frans de Jonge a6ca0f9b55 CreDocument: add "md" (Markdown) to supported filetypes
Fixes #2632.
8 years ago
Robert 3f0ce5de34 Remove invalid UTF8 chars from FTP (cloud storage) and sort order of requires (#2711) 8 years ago
Hzj_jie 3ad3452d1a System Stat plugin (#2699) 8 years ago
Robert a3c4254809 Added util.fixUtf8 (#2704)
* Remove invalid UTF-8 chars from OPDS
* add unit tests
8 years ago
Hzj_jie 339e16636b Terminal plugin (#2646) 8 years ago
Frans de Jonge eb641b6abc squash: mono-spaced font is necessary for ASCII-art type stuff
* reordered requires
8 years ago
Frans de Jonge e5a3ecd3e5 CreDocument: disable fancy formatting by default
It does significantly more harm than good. It can be reenabled with a `txt_preformatted` setting if desired. Fixes #1607.
8 years ago
Cosmin Gorgovan 10132d1c59 Disable the network asynchronously to avoid blocking the UI
Noticeable latency between toggling the power switch and the device
showing the screensaver has been tracked down to the two network
manager calls. This change allows the screen to be updated first.
Note that unloading the open source brcmfmac driver used on okreader
is slower than unloading the proprietary driver shipped by Kobo,
making this delay even more noticeable.

self.suspend() is scheduled after the network manager calls to avoid
race conditions.
8 years ago
Cosmin Gorgovan 11d6bfbc40 Fix typo in frontend/device/generic/device.lua 8 years ago
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.)
8 years ago
Cosmin Gorgovan 6aeecdba08 Only show the last character of a password after typing it 8 years ago
Frans de Jonge cee3603436 TouchMenu: keep hamburger menu on the right 8 years ago
Hzj_jie ed461c7f30 InputDialog is broken by #2672 (#2690)
This change also adds a tap_input_func in both TouchMenu and Button.
8 years ago
Hzj_jie ea2de9638b LuaSettings:wrap() / LuaSettings:child() function to create an LuaSettings to represent a sub table of an existing one (#2685) 8 years ago
Frans de Jonge bdbda9b405 ReaderMenu: fix MenuSorter-related typo (#2689)
Fixes #2688
8 years ago
Hzj_jie 0318a048b4 Read timer plugin (#2672)
A countdown timer to notify user.
8 years ago
Frans de Jonge 791d540a5a FileSearcher: filter .sdr directories
Fixes #2665
8 years ago
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.
8 years ago
Frans de Jonge f22dcebb13 MenuSorter: fix overlooked new plugins
* frontlight gesture controller
* battery statistics
8 years ago
Frans de Jonge 8b7e18a7d7 MenuSorter: resolve review comments
* simplify user config loop
* simplify unit test for Travis memory use
* remove unused util variable
8 years ago
Frans de Jonge 1e351e6b87 Menu: remove "Show advanced options"
See #2610 for discussion.
8 years ago
Frans de Jonge 99349173be TouchMenu [widget]: remove check for missing menu item 8 years ago
Frans de Jonge ddf590eb6d MenuSorter: split out menu order configuration 8 years ago
Frans de Jonge 33c848f813 MenuSorter: first unit tests 8 years ago
Frans de Jonge a970a1f034 MenuSorter: fix outside testability (for potential unit tests) 8 years ago
Frans de Jonge 653ff64438 MenuSorter: handle disabled 8 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
8 years ago
Frans de Jonge 56659ddb20 MenuSorter: avoid recursion in findById 8 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
8 years ago
Frans de Jonge aa0bf60ccb MenuSorter: pass config prefix for proper user override 8 years ago
Frans de Jonge 5b20106db7 MenuSorter: initial implementation
* Menus are now sanely configurable
* Custom separator placement for clearer menus
8 years ago
robert00s f2f0c376fa Minor Reader Fronlight modyfication 8 years ago
Qingping Hou 00cf81febc readercopt(fix): set view mode after reader is ready
Otherwise, self.xpointer might still be nil in
ReaderRolling:onChangeViewMode
8 years ago
robert00s a2bfc3858d changes after comments 8 years ago
robert00s 4479d686a0 Refresh status bar after resume 8 years ago
Qingping Hou a943b73303 fix: adjust pan rate for eink and non-eink screens 8 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
8 years ago
Hzj_jie 8f4ec13841 Remove powerd:refreshCapacity() (#2671) 8 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()
8 years ago
retrue 0edf1cca29 Minor fix in the sorting in language.lua
See https://github.com/koreader/koreader/pull/2662#issuecomment-287855474
8 years ago
poire-z 39d1afe37d Update footer when refreshing screen with diagonal swipe
And added diagonal swipe support to readerrolling.
8 years ago
robert00s 00d6403da4 Add supported language 8 years ago
poire-z 112e6a46e4 Fix crash when holding on unsupported image 8 years ago
Qingping Hou ee0e337433 opds(fix): avoid infinite loop on paging 8 years ago
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
8 years ago
Robert dccbf4cf96 Fix crash when downloading books with unknown characters in title (#2628) 8 years ago
poire-z 4316284260 Footer: added "memory usage" item
Helps following KOReader memory usage (and memory leaks).
8 years ago
Qingping Hou d168db9db5 kobo(suspend): put device back to sleep after unexpected wakeup 8 years ago
Qingping Hou 06562fa582 input(optimization): replace ev type reflection with table lookup 8 years ago
Qingping Hou 597beab616 minor: do not double log key input event 8 years ago
Qingping Hou 2aa9d5d64e test: add unit tests for docsettings 8 years ago
robert00s e07db0e7a0 Grayed out Open last document 8 years ago
Frans de Jonge ce8f568486 Revert "TouchMenu: keep file/exit button on the right" 8 years ago
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.
8 years ago
Bastien Dejean f72514f99d Use a simple gray line to separate menu items 8 years ago
Frans de Jonge a9b969b58f TouchMenu: keep file/exit button on the right
References #2555.
8 years ago
Qingping Hou 098ceeb95b fix: use psk for network authentication
also migrate to latest ljwpaclient with breaking api change
8 years ago
Qingping Hou d478eaeabe fix:(wpa_supplicant): show error from set_network operations 8 years ago
Qingping Hou 77b07255f0 chore: make input debug less verbose 8 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
8 years ago
Hzj_jie 7fb2dc8d5c Update kobolight plugin to support kindle (#2587) 8 years ago
Qingping Hou 4fce69d18d bookstatus(minor): read setting only once 8 years ago
Frans de Jonge 0566df5f28 FileSearcher: also show directory results
Fixes #2177
8 years ago
Frans de Jonge 47a40eb414 util: add some LDoc descriptions 8 years ago
Frans de Jonge da3ff5e336 History: add 'autoremove_deleted_items_from_history' setting 8 years ago
Frans de Jonge 827e77afbe FileManagerHistory: fix loop error 8 years ago
Frans de Jonge 2c80ff7d7b FileManagerHistory: remove harmful deletion code and turn it into a feature
Fixes the problem introduced in 51327911f2 and turns it into a feature that should fix #2477
8 years ago
robert00s 8b95b8fd96 Fix #2176 - Wrong book's review and rating stars are shown 8 years ago
Frans de Jonge 1ed0ce0c21 FileManager: fix up arrow issue 8 years ago
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.
8 years ago
Bastien Dejean ee54e127b1 FileManager: replace arrows by ellipsis to indicate cut-off long filenames 8 years ago
Bastien Dejean f0b63003e9 Use a smaller font to display the filename
More information regarding the file!
8 years ago
Frans de Jonge fed22b509d FileManager: rename hasSidecarDir to hasSidecarFile
Fixes #2550

Cf. b502047635
8 years ago
Zijie He 4f1cabcdbc Improve several outputs 8 years ago
Hzj_jie 726b15ad01 More sorting orders in file manager (#2535) 8 years ago
Zijie He faaca028e7 Remove empty sidecar folder 8 years ago
Zijie He 83d8606270 Crash on directory 8 years ago
Zijie He b502047635 Removing metadata file instead of purging .sdr folder 8 years ago
Frans de Jonge bec5f46245 Merge pull request #2524 from Hzj-jie/master2
Add characters in menu items to indicate sub menus
8 years ago
Hzj_jie 65e2d6630f Use small triangle 8 years ago
Frans de Jonge 3ea18208d7 Removed deprecated Confirmbox option cancel_on_tap_outside = true 8 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
8 years ago
Hzj_jie 18117584c0 Resolve review comments 8 years ago
poire-z 56d1a26a8b ImageViewer: allow zoom with vertical swipe on sides
For devices without multi touch support, where pinch & spreak don't work.
8 years ago
Frans de Jonge 6257bae77f Language: mostly Wikipedia-related changes 8 years ago
Hzj_jie c33d1aa43b Use 25b9 instead of > 8 years ago
Hzj_jie fa848719ae > 8 years ago
Hzj_jie 98a86ba62f prepose plus signal 8 years ago
Hzj_jie c90a484d01 Add a + for menu items with sub menu 8 years ago
Hzj_jie f91ad679d9 swithItemTable -> switchItemTable 8 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'.
8 years ago
Qingping Hou f402ee5f6f chore: remove all echo shell out in kobo resume routine 8 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.
8 years ago
robert00s 0bbb4bbc16 Fix: missing letters from portuguese language 8 years ago
Frans de Jonge 399190c520 Merge pull request #2508 from NickSavage/master
OPDS: Fixed Wifi prompt and enabled removing default catalogs.
8 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.
8 years ago
Nick Savage 85585a0973 Fixed bug where only calibre OPDS catalogs would prompt to enable Wifi.
Tested on Kindle PW3. The error message my device threw was different from what was coded in OPDSBrowser.lua in getCatalog(). Perhaps we should test other devices and see if there are other error messages thrown as well.
8 years ago
Nick Savage ebb290f0ba OPDSCatalog: Normalize default and user-added catalogs
This patch makes the OPDS Browser treat the default catalogs (Project Gutenberg, Feedbooks, etc.) the same as a user-added catalog. This makes them removable and editable if the user so chooses.
8 years ago
Frans de Jonge 81bc115cee ImageViewer: "best fit" to "scale" 8 years ago
poire-z 8f6a38db69 Fix sidecar file name
Get back "metadata." part forgotten while refactoring.
8 years ago
Hzj_jie 529d1b3d33 evernote: ReadHistory integration and text file output (#2498) 8 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.
8 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
8 years ago
poire-z 0577fde59e Better tracking, management and freeing of BlitBuffers
This should fix the most obvious memory leaks (noticable when
using images as screensaver).
ImageWidget: added a few more options needed by ImageViewer,
and removed 'overflow' option as logic was wrong.
8 years ago
poire-z d648d2b66c Added getImageFromPosition() and isXPointerInDocument()
Bump base (depends on koreader-base PR #470)
8 years ago
Zijie He 8549d98805 Add checked tag for keepalive plugin 8 years ago
robert00s fe5379814d Ask for connection when clicking on Wikipedia 8 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).
8 years ago
poire-z ebe0c08bfb dict/wiki: definitions' text justification
This can be disabled by adding ["dict_justify"] = false to settings.reader.lua
8 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.
8 years ago
robert00s 7ff1731aab Fix #2326 8 years ago
Robert 7bfbc9f06a Sanitize filename for vfat, fix #2433 (#2464) 8 years ago
Qingping Hou f95ad00b9e feat: add logger module & rewrite kobo suspend script in lua 8 years ago
Hzj_jie 5bda44473d Add dictionary to filemanager 8 years ago
Qingping Hou 581039aed5 opds(fix): unescape name and value 8 years ago
Qingping Hou d16688c43c feat: show full menu on menu key for touch devices 8 years ago
Qingping Hou cb195e9ce8 feat: support disable show file name in bold
also rename show_opened_doc_in_bold setting to show_file_in_bold
8 years ago
Robert 31218fa79e Skim to widget (New Go to page/location widget ) (#2460) 8 years ago
Hzj_jie ce6bc3df8d Implement keepalive plugin (#2456) 8 years ago
Qingping Hou ead5dfd9b4 readerview(feat): add registerViewModule method 8 years ago
Qingping Hou 0f931517ba doc: fix document build 8 years ago
Qingping Hou dc2746f1d7 chore: various minor cleanups 8 years ago
Qingping Hou 36763a1ad7 feat: new setting to show opened book name in bold 8 years ago
Robert 957e8ce768 Add open last book menu item in file manager (#2450) 8 years ago
Frans de Jonge 4f64ac4b69 Minor language fixes
Unsubscribe from was suggested by Allan Nordhøy (kingu) on Transifex.
8 years ago
robert00s ae9261b685 Fix #2440 8 years ago
Robert 187598deb2 Cloud storage - dropbox and ftp integration (#2424) 8 years ago
Hzj_jie c662ca4cc8 Load plugins also in FileManager (#2426)
added is_doc_only plugin attribute
8 years ago
Qingping Hou d2743b6f15 fix: migrate readermenu to use touch zone 8 years ago
Qingping Hou 33367d3a6c inputcontainer(fix): update gesture range on screen resize properly 8 years ago
Qingping Hou 070be5bfb1 fix: migrate readerrolling to touch zones 8 years ago
poire-z 5b2aee3c81 textboxwidget: added some sanity checks
fix #2434 and avoid strange things when holding from/to outside dimension.
Also fix crash when tap (move cursor) in an inputtext with no text at all.
8 years ago
poire-z 359c1ae265 textboxwidget: enhanced CJK text wrapping
(changes only in util.isSplitable(), but used by textboxwidget)
Implemented line breaking rules from :
https://en.wikipedia.org/wiki/Line_breaking_rules_in_East_Asian_languages
8 years ago
Frans de Jonge 0fb29e9cd3 Kobo: fix Kobo Aura second edition highlighting 8 years ago
poire-z a8dd8c6f30 textboxwidget: even better text wrapping
util.isSplitable() accepts now also the previous char to help
decide if a space can be used to split a line.
TextBoxWidget:_splitCharWidthList() : simplified logic
8 years ago
poire-z fe56ecd301 Clear readers' cache: invalidate in-memory references
This avoids crash on exit after clearing caches.
8 years ago
retrue eae730d140 Some uppercase fixes (#2421) 8 years ago
Frans de Jonge ba7377065e Doc: miscellaneous improvements. 8 years ago