Frans de Jonge
4513718a2a
[fix] MenuSorter: ignore separator as first item
...
See https://github.com/koreader/koreader/pull/3107#issuecomment-323581851
2017-08-20 21:12:17 +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
Frans de Jonge
63241a20ea
[UX] Add CheckButton and use it for show password
...
Normal textinputs stay the same, password textinputs automatically gain a show password checkbutton underneath.
Thanks to @robert00s for the idea.
2017-08-20 11:44:15 +02:00
Frans de Jonge
9f3ec235ff
[fix] wbuilder crash
2017-08-20 11:44:15 +02:00
poire-z
a074876cc2
Added french keyboard
...
Same as std keyboard with only lowercase and uppercase letters layouts
adapted from QWERTY to the traditional french AZERTY layout.
2017-08-19 21:57:28 +02:00
Robert
a2320d2d9d
Prevent potential firewall problem with git clone ( #3094 )
...
The better solution might well be to do this locally, using either
```
git config --global url."https://".insteadOf git://
```
or
```
git config --global url."https://github.com ".insteadOf git://github.com
```
However, we don't live in an ideal world so this commit intends to lower the barrier to entry.
See https://stackoverflow.com/questions/16298986/unable-to-connect-to-github-com-for-cloning for more information.
2017-08-19 21:21:20 +02:00
poire-z
967a09c810
ImageViewer: make Hold (trigger full refresh) easier
2017-08-19 17:24:16 +02:00
poire-z
3cf419defa
Purge .sdr: also remove .old backup file
...
Otherwise, this .old backup is used when re-opening the document,
and we could never reset docsettings.
2017-08-19 16:49:52 +02:00
poire-z
3159548f3e
Avoid warning on input timeout on the emulator
2017-08-19 16:30:43 +02:00
poire-z
c3778bdb2a
Button and TextWidget: added max_width attribute
...
Simple way to ensure overlong text is truncated.
Used by dictquicklookup to truncate long titles.
2017-08-19 13:02:25 +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
Frans de Jonge
a8a7ebe1d4
[doc] some widget docs
2017-08-18 11:43:46 +02:00
Frans de Jonge
cda148e4b7
[UX] Add CheckMark and use in TouchMenu checkable indicator
...
Uses `✓` overlaid on `▢` to create the checkbox.
2017-08-18 11:43:46 +02:00
Frans de Jonge
7376c57ceb
[ci] after_success.sh: add --verbose flag to luacov-coveralls
2017-08-18 10:51:59 +02:00
poire-z
3dd18d2a3b
Fix "start with history" misalignment
...
due to a side effect with coverbrowser. CenterContainer is no
more needed as History is now full screen.
2017-08-18 10:37:46 +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
Frans de Jonge
7277059176
add unit test
2017-08-17 11:18:28 +02:00
Frans de Jonge
c8c4df2f31
[fix] util.isEmptyDir() crashes on non-existent dir
...
lfs.dir will crash rather than return nil if directory doesn't exist
Proper fix for 9f5e446701
which is nothing but a workaround. However, I do think creating more of those data dirs automatically is more user-friendly because otherwise Android users will have to look it up or guess.
2017-08-17 11:18:28 +02:00
Frans de Jonge
6bdb96c0f8
[UX] FileManager: add ConfirmBox for purge .sdr
...
Notified of destructive action without confirmation in https://www.mobileread.com/forums/showthread.php?p=3566978#post3566978
2017-08-17 08:54:10 +02:00
Zijie He
2ba079e3eb
Reserve last good docsetting
2017-08-17 08:50:15 +02:00
Frans de Jonge
1fd8989906
[ci] readerlink_spec.lua: #nocov on failing tests
2017-08-16 17:44:16 +02:00
Frans de Jonge
7b12954cad
[ci] #nocov on BatteryState
...
All tests fail while trying to do coverage.
2017-08-16 17:15:12 +02:00
Frans de Jonge
9ba69f4c4f
fix coverage
2017-08-16 16:32:21 +02:00
Robert
7f58a13626
Ability to setup clock ( #3085 )
...
* Ability to setup clock
2017-08-15 19:54:02 +02:00
Frans de Jonge
76a2dbc7c5
Bump base (LuaJIT to 2.1.0-beta3)
2017-08-14 22:57:11 +02:00
Frans de Jonge
16f8f7226e
[chore] util: deprecated string.gfind to string.gmatch
2017-08-14 22:39:38 +02:00
robert00s
ddd36d4150
Fix: Zsync -> Share this document crashes
2017-08-14 20:30:52 +02:00
Frans de Jonge
23cd585fae
Support history as default view for filemanager ( #3058 )
...
Fixes #2774
* make history view borderless
* add new menu for what to start with
Should combine nicely with #2940
2017-08-14 13:15:12 +02:00
robert00s
5e402419ed
Swipe down to close config menu
2017-08-14 12:59:54 +02:00
robert00s
6bded7aaf7
readerconfigmenu(fix): override pan gesture from scrolling
2017-08-14 11:24:40 +02:00
Robert
27c4e28e84
Fix: Cloud Storage not working on Kobo Aura ONE ( #3077 )
...
* Fix: Cloud storage opens in landscape mode when display is in portrait mode
Fix: If return is pressed when in root, koreader crashes
2017-08-13 12:57:19 +02:00
Frans de Jonge
74f3d6e820
Revert #3071 bump sdcv
...
Turns out it was merrily compiling for x86 instead of the intended architectures. Fixes #3075 but obviously needs follow-up.
2017-08-12 21:27:08 +02:00
Frans de Jonge
9f5e446701
[fix] DataStorage: create data/dict to prevent Android crash
...
```
08-12 14:32:17.325 9188 9216 E luajit-launcher: Failed to run script: frontend/util.lua:291: cannot open /storage/emulated/0/koreader/data/dict: No such file or directory
08-12 14:32:17.333 9188 9216 V threaded_app: android_app_destroy!
```
2017-08-12 14:39:02 +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
Marcin Mielniczuk
128d60a6d3
Fall back to ANDROID_NDK if NDK not set ( #3064 )
...
* Fall back to ANDROID_NDK if NDK not set
2017-08-11 17:28:54 +02:00
Frans de Jonge
8073a1d12f
Bump base (sdcv to upstream)
...
Should fix #2951
2017-08-11 16:42:10 +02:00
Frans de Jonge
7545d38198
fix: really skip en_US:us
in gettext.changeLang
...
`new_lang` isn't `en_US` but `en_US:en`
Also see https://github.com/koreader/koreader/issues/3069#issuecomment-321769322
2017-08-11 14:56:23 +02:00
Frans de Jonge
06d7eea507
[Kindle] Add support for Kindle PW3 "manga" model
...
Model number either `0LK` or `0LL`
See discussion in https://www.mobileread.com/forums/showthread.php?p=3565878#post3565878
2017-08-11 00:05:32 +02:00
robert00s
dfba135f10
Fix: Advanced settings crashes
2017-08-09 20:54:29 +02:00
Frans de Jonge
e3c17aa6d0
Travis: run luacheck on unit tests ( #3059 )
...
* Travis: run luacheck on unit tests
2017-08-08 13:35:40 -07:00
Robert
1bfad22af0
Fix: Footer hides text ( #3056 )
...
This patch should resolve issue #2257 (Footer hides text)
Sometimes, depending on an epub style, some text is hidden by the progress bar (the mini one at the bottom).
2017-08-08 19:06:11 +02:00
robert00s
64529b5391
Option to choose gesture to open menu
2017-08-08 18:45:14 +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
poire-z
0d38547990
Wikipedia save as epub: fix some image download failures
2017-08-07 13:37:08 +02:00
robert00s
7919026a19
Fix: crash when incorrect value in input page number
2017-08-06 15:58:37 +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
Robert
21c63a297e
Gesture to show only config menu ( #3051 )
...
* Gesture to show only config menu
* Show config menu from bottom
2017-08-05 21:49:00 +02:00
robert00s
4b9fc6333f
Fix: Unable to click on highlighted text in tap menu zone
2017-08-04 17:26:50 +02:00
Robert
46c19ba8e9
Option to disable keyboard flashing ( #3050 )
...
* Option to disable keyboard flashing
2017-08-04 14:01:06 +02:00