Commit Graph

8976 Commits

Author SHA1 Message Date
NiLuJe d2ee9d8d4e TimeVal: Do a runtime check for CLOCK_BOOTTIME support (#8832)
And create a few aliases with an automatic fallback to another clock source.
2022-02-28 16:25:32 +01:00
Frans de Jonge 0144d0eb43 Update translations for 2022.02 (#8852) v2022.02 2022-02-27 14:54:02 +01:00
Frans de Jonge f6acb98227 Add Pocketbook 740-3 (#8851)
Thanks to @uatel.

Fixes #8850.
2022-02-27 14:51:22 +01:00
Frans de Jonge 836a886099 [fix, i18n] Add gettext() to info text about UI fallback fonts (#8849)
Fixes #8810.
2022-02-27 12:27:17 +01:00
zwim eef4dc1c0d Terminal: fix regression from #8845 (#8848)
This should fix a regression introduced with #8845 with reopening a running shell.

Adds more checks and more verbose logging messages on failures.
2022-02-27 12:16:22 +01:00
yparitcher 59a63c11b1 RadioButtonTable: CheckButton does not have onFocus (#8847)
Fixes #8841
2022-02-27 09:02:47 +01:00
zwim 1cd396f9c4 Teminal: fix crash when grantpt or unlockpt fail (#8845)
* Fix crash when grantpt or unlockpt fail
* Disable plugin if grantpt or unlockpt fail
2022-02-26 18:16:36 +01:00
hius07 ee593e6b17 naturallightwidget: revert movable 2022-02-22 16:30:22 +01:00
hius07 ed4290089b frontlightwidget: revert movable 2022-02-22 16:30:22 +01:00
Frans de Jonge 67445beea5 [plugin] Terminal: remove stray space at end of string (#8831) 2022-02-20 16:34:32 +01:00
yparitcher 7172adc6ec Toc: expanded_nodes: loopless O(1) instead of O(n) 2022-02-20 16:09:39 +01:00
yparitcher d8087b37e3 Toc: collapse child when parent is collapsed 2022-02-20 16:09:39 +01:00
yparitcher 73bb76f92d menu: separate indentation from text 2022-02-20 16:09:39 +01:00
yparitcher 60f68023d8 BD invert: enable for TOC BookMap & PageBrowser 2022-02-20 16:09:39 +01:00
yparitcher 42dd5aadca Bidi: add Bidi.invert() 2022-02-20 16:09:39 +01:00
yparitcher 62c6c757cc _mirroredUI do not set at require time 2022-02-20 16:09:39 +01:00
contrun 57188311da kosync: send progress as a string to the server (#8758)
Currently the progress sent to the server can be either a string or an int (depending on whetther the document has pages).

The following are both payload sent from koreader to the server.

```
{"percentage":0.005,"device":"device_name","device_id":"B78EA04ACC3A453DBA220D720C0BE102","document":"348e34463a44ba68659fc6fe814a6778","progress":3}
```
where document `348e34463a44ba68659fc6fe814a6778` is a pdf file.

```
{"percentage":1,"device":"device_name","device_id":"B78EA04ACC3A453DBA220D720C0BE102","document":"4eb484b229696cb39cd8fe5495aa1bbe","progress":"\/body\/DocFragment[30]\/body\/p\/img.0"}
```
where document `4eb484b229696cb39cd8fe5495aa1bbe` is an epub file.

This may add extra work to the backend server. A few commits were added to my personal fork of [kosyncsrv](https://github.com/yeeac/kosyncsrv) (a kosync backend server). kosyncsrv initially tries to decode progress as a string. It then failed on document with pages (in which, progress is just integer page number). I then change the field's type, only to [revert it later](https://github.com/contrun/kosyncsrv/commit/8a642e31a0bcb061a04ececd4af57a27836b7928).

I believe it is more appropriate for us to fix the progress type to string.
2022-02-20 16:08:56 +01:00
Frans de Jonge 8ff8a05ff3 [plugin] Terminal: move stray newlines outside of translated string (#8830) 2022-02-20 16:08:23 +01:00
Frans de Jonge 4d6a789f6d [plugin] Terminal: fix @translators comments (#8829) 2022-02-20 16:07:57 +01:00
Scarlett c3332f355f NewsDownloader: add support for RDF feeds (#8822)
Fixes #8799.
2022-02-20 09:17:59 +01:00
hius07 8bfd7ca340 warning on file size over 400000 b 2022-02-19 22:04:12 +01:00
hius07 fbdb021268 Update filemanager.lua 2022-02-19 22:04:12 +01:00
hius07 8dbfead03d gestures: free long-press on FM home button 2022-02-19 22:04:12 +01:00
hius07 56b277f72e filemanager: free home button, text viewer 2022-02-19 22:04:12 +01:00
Robert-Jan de Dreu e5e140d5fd Fix invert for pocketbooks by disabling hardware invert (#8803)
With the inkview library inverting the screen seems possible but needs some 
discussion with the developers of Pocketbook. For now disable HWInvert so 
this feature is not broken while we figure out how to change the invert with inkview.
2022-02-19 19:50:52 +01:00
hius07 e167388e52 End of document action menu: radiomark (#8812) 2022-02-18 12:37:02 +01:00
hius07 8026370d5c ReadHistory: force reload history after files changes (#8813) 2022-02-17 14:17:21 +02:00
hius07 8bb08b503a Cloud storage: enhance download dialog, fix Dropbox uploading (#8809)
(1) ButtonDialogTitle: new method setTitle()

(2) OPDSbrowser
-use setTitle() instead of open/close ButtonDialogTitle (no visual changes to the download dialog)
-reduce logger.info output to avoid flooding crash.log

(3) CloudStorage
-enhance download dialog (similar to OPDS), much optimized code of downloadFile
-fix a bug: cannot create new folder or upload files to the root of the Dropbox storage
2022-02-17 10:53:15 +01:00
hius07 c9fc9496aa BookShortcuts: fix folders handling (#8795) 2022-02-15 12:04:07 +02:00
hius07 4ccdbc90a5 Doc settings reset: fix default block_rendering_mode (#8792) 2022-02-10 12:08:51 +02:00
NiLuJe fb45576429 Kobo: Use the right input protocol on the Nia (#8794)
c.f., https://github.com/baskerville/plato/issues/220
2022-02-09 23:25:37 +01:00
NiLuJe 6f45c076ec Bump android-luajit-launcher
https://github.com/koreader/android-luajit-launcher/pull/360
https://github.com/koreader/android-luajit-launcher/pull/359
https://github.com/koreader/android-luajit-launcher/pull/357
2022-02-08 00:25:13 +01:00
NiLuJe 5e174b6fca Bump base
https://github.com/koreader/koreader-base/pull/1452
2022-02-08 00:25:13 +01:00
NiLuJe 35776f1f87 "Simplify" HW/SW dithering checks
Make it a real Document property, updated at init & toggle time.

Also, simplify a bunch of redundant nested lookups in ReaderView
(self.ui.view is self, self.ui.document is self.document).
2022-02-08 00:25:13 +01:00
NiLuJe afe1dc9681 Don't show SW dither toggle on devices w/ HW dithering 2022-02-08 00:25:13 +01:00
NiLuJe 3122bcd9bc KOptOptions: Allow toggling SW dithering
Fix #8748
2022-02-08 00:25:13 +01:00
NiLuJe b2ef81527b Kobo: Disable the jump marker on the Libra 2
Temporary (?) workaround for the Libra 2 EPDC race issues,
since we haven't really found any better solution,
and so far, newer kernels haven't really helped...

Re #8414
2022-02-08 00:25:13 +01:00
NiLuJe 2d4e1584c7 Kobo: Drop deprecated comment
Inherited from the original Device abstraction implementation,
7 years ago, but it never made any sense on Kobo ;).
2022-02-08 00:25:13 +01:00
NiLuJe eca27fe497 Disable the WAIT_FOR ioctls on the Libra 2
Much like the Libra, it seems to be having issue with these...

Fix #8664
Re #8414
2022-02-08 00:25:13 +01:00
hius07 a9a75f503f FilemanagerShortcuts: call from PathChooser 2022-02-07 22:08:26 +01:00
hius07 c7666221ec Pathchooser: add folder shortcuts 2022-02-07 22:08:26 +01:00
hius07 b02ffa7c10 RadioButtonTable: RadioButton replaced with CheckButton with RadioMark 2022-02-07 22:02:54 +01:00
hius07 e7b3952fa2 CheckButton: insert RadioMark 2022-02-07 22:02:54 +01:00
hius07 aaa3a980f3 NaturalLightWidget: insert TitleBar, movable 2022-02-07 22:01:22 +01:00
hius07 fe19ca2478 FrontLightWidget: insert TitleBar, movable 2022-02-07 22:01:22 +01:00
poire-z 5e224d541f PageBrowser: allow changing nb of chapter levels shown (#8772)
Instead of using the depth configured in Book map, start
with max depth, and allow decreasing (and reseting when
at 0) with long-press on the (i) top left icon.
2022-02-05 01:46:24 +01:00
hius07 12344261f0 RadioMark: down shift (#8771) 2022-02-04 06:08:07 +02:00
hius07 cb7e670c4a MultiInputDialog: do not refresh full screen on show (#8760)
Fix ugly full screen flashing on show.
2022-02-02 20:31:24 +01:00
hius07 59f04ab018 ReaderProgress: insert TitleBar 2022-02-02 17:05:28 +01:00
hius07 77d3882eed CalendarView: remove close button! 2022-02-02 17:05:28 +01:00