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

5843 Commits

Author SHA1 Message Date
poire-z
8c897a086f HTML dict: enable color rendering and per-dict user fix html func (#3585)
Also fix possibility of crash in HtmlBoxWidget:free()
2018-01-09 21:38:49 +01:00
poire-z
30200b516f Fix scroll with swipe in scrollhtmlwidget (#3586) 2018-01-09 21:37:50 +01:00
poire-z
91092c442d Fix negative nb of enabled dictionaries (#3584)
Happened when some dictionaries files have been removed, while
these were still referenced in the 'dicts_disabled' setting.
2018-01-09 13:28:17 +01:00
poire-z
262e55d0ae Dict: make html and text results look similar (#3582) 2018-01-08 16:16:39 +01:00
poire-z
bfb07c79ef Fix: scale html dict result font size (#3581) 2018-01-08 12:23:36 +01:00
TnS-hun
06a8a33d39 HTML dictionary support (#3573)
* Adds a generic HTML widget modeled after the text widget, and HTML dictionary support. HTML dictionaries can have their own CSS (for X.ifo it must be X.css). The base CSS just resets the margin and sets the font.

Note that the widget doesn't handle links, that wasn't needed for the dictionary.

Closes <https://github.com/koreader/koreader/issues/1776>.

* Show tag stripped HTML if the dictionary entry isn't valid HTML

* Simulate the normal <br/> behavior

* Bump base
2018-01-07 20:24:15 +01:00
Mahmoud Nagy
5245f018a6 [fix] small skim problem (#3580)
in relative page turning in skim, errors appear when page number is less than 10, and you press -10 in skim it gives warning and the page doesn't change, this happens in pdf.
"update" method solves this if it comes first.
2018-01-06 21:47:45 +01:00
poire-z
98abcafa1b Screensaver: change default & show messages on reboot and poweroff (#3572)
Use "message" as the default for screensaver (instead of "disable") (https://github.com/koreader/koreader/pull/3535#issuecomment-353337143)

On Kobo 
Fix: display message on poweroff or reboot (https://github.com/koreader/koreader/pull/3535#issuecomment-352355865)
Allows for overwritting these default messages with the classic screensaver settings, by just prepending "poweroff_" or "reboot_" to them. (https://github.com/koreader/koreader/pull/3535#issuecomment-352498497)

So one can manually add to its settings.reader.lua:
```
"poweroff_screensaver_type" = "random_image" or "message", "cover", "bookstatus", "readingprogress", "disable",
"poweroff_screensaver_dir" = "path to same as screensaver_dir or alternate dir for poweroff image(s)",
"poweroff_screensaver_message" = "message to use instead of Powered off",
```
```
"reboot_screensaver_type" = "random_image" or "message", "cover", "bookstatus", "readingprogress", "disable",
"reboot_screensaver_dir" = "path to same as screensaver_dir or alternate dir for reboot image(s)",
"reboot_screensaver_message" = "message to use instead of Rebooting...",
```
2018-01-06 13:21:26 +01:00
Fabian Müller-Knapp
88c03c08d1 Partial fix for 3477 (#3568)
Partial, as it will safe the state when suspending the reader by pressing the power-button.

However, it will still not safe the state when Pocketbooks autoPowerOff-Feature kicks in, as this does not create an event (e.g. no EVT_BACKGROUND) of any kind.

* Clean up device.lua

* Save state on suspend
2018-01-06 13:14:26 +01:00
Robert
22a8cfde7c Fix missing createFolder() function and fix KOReader File Browser is no longer tappable (#3576) 2018-01-05 21:24:24 +01:00
poire-z
6df0824474 kodev: two small fixes (#3575)
- kodev-run: fix use of $args
- kodev-build: build the emulator in debug mode, for consistency
with kodev-run
- kodev build: add --debug / --no-debug options
2018-01-04 18:35:02 +01:00
poire-z
7797c2369e
credocument: deal with loadDocument() failures (#3570)
cre:loadDocument() may fail in recognizing the document format, and
koreader would previously keep calling other methods on it, which would
make crengine segfaults. We now check loadDocument success at the
various places it is called, and try to deal the best way we can when it fails.
2018-01-03 09:43:49 +01:00
Robert
6f41cecab2 Add info when copy or cut file (#3571) 2018-01-02 16:21:00 +01:00
Robert
227584de22 New option - create new directory (#3555) 2018-01-01 16:31:39 +01:00
Ben Kelly
f9ac8b138b Basic fixes to calibre-sync (#3558)
* Properly create intermediate directories when receiving books from Calibre.

This fixes an issue where you can't receive books except into directories that
already exist on the Kobo, which, in particular, causes problems when your
configuration in Calibre is something like "put books in $Author/$Title.epub"
and you haven't previously synced any books by that author.

* Wake up periodically to process ZMQs if any are registered.

This fixes an issue where if there are any timed events (such as the suspend
timer) in the queue, ZMQ events may not get processed until the timed event
fires, which is a problem when (for example) the suspend timer goes off in
an hour and you have something trying to send a book to the kobo over wifi
*right now*.

With this change, the event loop will wake up every 50ms to check for ZMQ
events and process them if necessary. If there are no ZMQs registered (which
is typical), it uses the original behaviour -- so this won't affect battery
life under normal usage.
2018-01-01 15:40:28 +01:00
Robert
79517eb166 Truncate path in filemanager (#3565) 2017-12-31 11:40:28 +01:00
poire-z
b2ec0eba8d
Bump base for MuPDF build without ICC/lcms2 (#3569) 2017-12-31 00:18:20 +01:00
Robert
1d1b005b1a
copying file with .sdr (#3563) 2017-12-27 15:03:53 +01:00
Robert
b855eff1b9
Remove not empty folder (#3562) 2017-12-25 16:07:05 +01:00
Frans de Jonge
a16c500ac7
README: add CBT to list of supported formats (#3560)
Was added in https://github.com/koreader/koreader/pull/3554
2017-12-24 15:46:23 +01:00
TnS-hun
15ec47d7e0 cbt support (#3533) (#3554) 2017-12-21 22:22:04 +01:00
poire-z
69ec6c07c5 Wikipedia Save as EPUB: fix some wiki links and speedup download (#3551)
- Fix links to wikipedia pages containing '?oldid=123', that
  wouldn't work when used back thru the API.
- Make external links to other wikipedias with a different langage
  work (they didn't work when non-ascii page titles)
- Speedup download of images by using a newly added 'fast_refresh'
  option to Trapper:info() to bypass UIManager.
2017-12-20 15:26:01 +01:00
TnS-hun
89164dcbd7 MuPDF 1.12 (#3547)
* addMarkupAnnotation expects a float array

* Use the latest from koreader-base with koreader/koreader-base#577

Closes #3519.
2017-12-20 15:16:13 +01:00
Robert
fe4d52c406 Remove unneeded string S.DARKEST (#3552) 2017-12-18 22:13:49 +01:00
Robert
a692b5adfb KeyValuePage: option to align value to the right (#3550)
Applied in Reading statistics plugin
2017-12-17 22:08:13 +01:00
Robert
efa0d06df9 Add new options to screensaver (#3535)
* Prevent open screensaver more than one in the same time

* Add option to enable/disable background in message screensaver

* fallback to random images if this book cover is excluded feature + fix Disabled (leave screen/page as it is)

* Autostretch disable by default, more fallback options, leave screen as it is
2017-12-17 18:27:24 +01:00
poire-z
70f2aa09ea Adds Wikipedia history (#3549)
Just like Dictionary lookup history.
Also changed Disable to Enable in some menu items to be more positive.
2017-12-17 13:02:08 +01:00
Fabian Müller-Knapp
279329227a Add PB623 alias Touch Lux (#3542) 2017-12-10 20:02:33 +01:00
poire-z
8886e16baa Small fix to wikipedia epub stylesheet (#3534) 2017-12-05 17:43:34 +01:00
poire-z
17bbf68dac [Fix] actually use 'reverse_collate' saved setting (#3532) 2017-12-04 17:25:27 +01:00
Fabian Müller-Knapp
f0f59afcdd Added Pocketbook 624 alias Basic Touch (#3528)
Fix #3525
2017-12-02 10:28:11 +01:00
Huang Xin
f384a8311c
Fixed zlib has no soname on Kindle (#3523) (#3524) 2017-11-29 13:21:45 +08:00
Frans de Jonge
6b205fba97
README: add a few more pointers (#3512) 2017-11-28 16:35:46 +01:00
Huang Xin
a44b39fda6
[build] Darwin build of Android port (#3520) 2017-11-28 02:23:54 +08:00
Frans de Jonge
021e3db002
kobo/device: finetune KoboStar (Aura 2) viewport (#3513)
See https://github.com/koreader/koreader/issues/2418#issuecomment-346287297 and  https://github.com/koreader/koreader/issues/2418#issuecomment-346426685
2017-11-24 17:15:37 +01:00
TnS-hun
cdd8055e28 [fix] wbuilder blitbuffer issue (#3514) 2017-11-23 21:08:56 +01:00
Frans de Jonge
3e19ff81ce
[fix] kodev: grep filter debug/no-debug dir (#3506)
Fixes https://github.com/koreader/koreader/issues/3504.
2017-11-21 09:49:24 +01:00
poire-z
2697a30166 [fix] Optimize cre highlights onTap and drawing (#3508)
drawXPointerSavedHighlight() and onTapXPointerSavedHighlight were
looping thru all credocuments highlights, which was expensive.
Now, we first check with cheaper getPageFromXPointer() the highlights
are on the current page before doing more expensive stuff.

Closes #3503.
2017-11-20 21:58:58 +01:00
Robert
a6de9ff7d4 [UX] Right align keyvaluepage in statistics (#3507) 2017-11-20 18:08:55 +01:00
TnS-hun
29b376fdd9 [UX] Option to show dictionary in large window (#3499) 2017-11-20 09:40:00 +01:00
Robert
b37ae2d681 [UX] Fix bookstatuswidget truncated at the bottom in landscape (#3498) 2017-11-19 09:15:54 +01:00
poire-z
ce910cf2e7 Disable Purge .sdr and Delete for currently opened book (#3500) 2017-11-19 09:12:53 +01:00
TnS-hun
2c97b8d31c Ignore -debug builds (#3497) 2017-11-18 20:38:15 +01:00
Frans de Jonge
fa5e68e828
README: put ccache website in relevant list item (#3495) 2017-11-18 10:37:59 +01:00
poire-z
8192a2f947 Small decrease of ToggleSwitches width
Just to add some margin, needed on large screen DPI
2017-11-17 14:05:08 +01:00
poire-z
445926ab1c Fix live refresh when changing pdf contrast
nextTick somehow prevented a full refresh of the screen
scheduleIn, as used by other widgets, makes that ok
2017-11-17 14:05:08 +01:00
poire-z
8360164e24 Use toggle for CRE Contrast in bottom menu (#3490) 2017-11-17 12:37:49 +01:00
poire-z
338d14edb7 Speedup dictionaries init (#3489)
When looking for .ifo to populate Dictionary settings menu,
avoid walking sub-directories once we found a .ifo, as these
sub-directories may contain a lot of images and other subdirs.
2017-11-16 14:04:59 +01:00
Frans de Jonge
2538189473
[doc] WidgetContainer: fix some typos 2017-11-15 09:02:33 +01:00
Frans de Jonge
06dfe4fb78
[feat] Add Device:hasClipboard() (#3465)
References https://github.com/koreader/koreader/issues/3441
2017-11-14 19:20:58 +01:00