Commit Graph

6324 Commits (85ac59ae0074c321861d57ccc1c3e52518e1d60e)
 

Author SHA1 Message Date
poire-z 85ac59ae00 CreDocument: fix document loading interferences (#4349)
When a main document is opened for displaying, some other
document openings (for getting metadata or cover image)
could affect the main document.
Split some code from CreDocument:init() into another new
method CreDocument:setupDefaultView(), that will only be
called by ReaderUI when opening the main document (and not
by these other openings like Book inforation, View cover...)

Also speed up some of these other openings (Search, Screensaver)
by using doc:loadDocument(false) to load only metadata and
avoid parsing the HTML.

Details in https://github.com/koreader/koreader/issues/4346#issuecomment-440036496
6 years ago
poire-z 872c908a02 [UX] ConfigDialog: larger tap area around font and icons (#4351)
The font size items (Aa Aa ... Aa) and the align & column
items (for PDF) had a non-tapable spacing between them,
which could make hitting an item difficult.
This replaces this spacing by padding on each side of the item,
so a tap in between will always catch one item, for easier
selection.
6 years ago
NiLuJe f6fb2ded5d Fix frontlight sysfs path on the PW4 (#4350)
Fix toggling the FL on/off (as that's the only instance we're not using
lipc)
6 years ago
Yann Muller 3f7f5f07bf Wallabag fixes and improvements (#4347)
* Improved error handling.

* Removed unused variable.

* [fix] Skip remote deletes if disabled.

* Addded Wallabag preffix to logger output.
6 years ago
Frans de Jonge fb1c3606d7
[fix, build] kodev: test for PB TC in $PATH (#4344)
Includes and depends on base bump with:

* [build, fix] Support PocketBook TC in path https://github.com/koreader/koreader-base/pull/765
6 years ago
Frans de Jonge 49192c96d8
[fix, lang] Replace CSS jargon with natural English (#4343)
See https://github.com/koreader/koreader/pull/4307/files#r234400330
6 years ago
poire-z afc4be3ae0
Double-tap chapter nav: add origin page to location stack (#4339) 6 years ago
Martín Fernández 6a844136cf [Cervantes]: wifi fix & misc improvements. (#4341)
* remove unused setting 'internal_storage_mount_point

use filemanagerutil.getDefaultDir() instead
https://github.com/koreader/koreader/blob/master/frontend/apps/filemanager/filemanagerutil.lua#L15

* more info about device frontlight/naturalLight capabilities

* make stock reader fonts available in KOReader

* remove restore-wifi-async leftovers

* wireless: fix wpa_supplicant configuration:

make it compatible w/ debian wheezy binaries
don't try to run enable-wifi.sh more than once
6 years ago
NiLuJe 32ccada2c4
Don't try to deal with KPVBooklet shenanigans when run from KUAL (#4342)
re #2848
6 years ago
NiLuJe bd6c852cc8
Fix Kindle FW detection (#4336)
* Fix version comparisons...
6 years ago
NiLuJe c14eae335a
Bump base & Android launcher (#4335)
* Bump luajit-launcher (luajit)
* Bump base (libjpeg-turbo 2.0.1)
6 years ago
poire-z f8199dd493
Fix a few edge cases crashes and issues (#4334)
- ReaderConfig does not need to call again self:initGesListener() on
  screen rotation/resize, as it uses the TouchZone infrastructure
  that deals itself with rotation. So, it was adding new gestures
  that were overriding tap on footer and preventing it from working.
- ReaderFooter: fix refresh area (which was too small when toggling
  from hidden to visible)
- ReaderToc: fix crash when showing TOC in scroll mode after rotation
- Menu: fix crash when no onReturn defined (could happen when tap on
  bottom left corner when showing an empty TOC)
6 years ago
poire-z f92136e3c9 Bump crengine: fix segfault and CSS classname check (#4327)
Includes:
- Fix CSS class check when on elements with multiple class names
- Fix ignore occasional space at start of line, avoid segfault
6 years ago
NiLuJe 772cdefe92
Support the Kindle PW4 (#4324)
* Fix version checks on FW >= 5.10.x
* Bump base
6 years ago
NiLuJe 419769d07e
Initial Kobo Forma support (#4325)
* Initial Kobo Forma support

re #4291
c.f., https://www.mobileread.com/forums/showpost.php?p=3771404&postcount=2994
& https://www.mobileread.com/forums/showpost.php?p=3772378&postcount=2998

Big fat warning: something is *definitely* rotten in the state of
Denmark:

* FrontLight/NaturalLight might need some more testing/tweaks
* Rotation (initial or accelerometer-induced) is *NOT* handled.
  This'll require someone with an actual Forma, shell access,
  and a bit of courage, because rotation is hell.
  Programming chops greatly appreciated!
6 years ago
Martín Fdez b69882fa34 add safemode tool support
https://github.com/pazos/cervantes-safemode

ref: https://www.mobileread.com/forums/showpost.php?p=3760905&postcount=2 - kodeps.tar.gz
6 years ago
Martín Fdez 6c6bec35ec wireless: make QBookApp happy across switches 6 years ago
Martín Fdez 6424176922 wireless: sleep unconditionally, do not launch wpa_supplicant if is already running and a bit of formatting 6 years ago
Martín Fdez b06c9a5e57 suspend again on power wake, like in kobos 6 years ago
Martín Fdez e98b0c8ec8 wireless: use sysfs, do not ping 6 years ago
Martín Fdez 4e1a4978cc wireless: read wireless carrier from sysfs 6 years ago
Martín Fdez 56a1b14418 remove spaces from model names 6 years ago
Martín Fdez acfd21112f enable fbink feedback during OTA updates 6 years ago
frio 4ae43aee2c [fix, cervantes] Old Cervantes devices should return false for hasNaturalLights (#4320) 6 years ago
poire-z 5d6807620f Fix footnote size after screen rotation (#4316) 6 years ago
xelxebar 05e687f570 [Feature] Support DjVu metadata (#4314) 6 years ago
Frans de Jonge f71627cf1d [spec] Version: slight refactor 6 years ago
Frans de Jonge be32144829 [fix] Version pattern: add two extra numbers for point release
Also see #4303.
6 years ago
Frans de Jonge 472b9cf32a
README.md: add note about `--appimage-extract` (#4304)
Fixes #3886.
6 years ago
poire-z 26aeb6121c
bump crengine: fix vertical-align and others (#4307)
bump crengine, which includes:
- Avoid uneeded re-rendering on load when with full status bar
- Update french hyphenation pattern
- Fix border-collapse on table cells in some cases
- Fix line-height inheritance when no unit
- Fix: don't ignore space following an image
- Fix: ignore occasional space at start of line
- Fix possible segfault when viewing HTML
- Fix and extend support of vertical-align

Also add a style tweak to middle align images with text, which
may make some text with inline icons and such nicer (depending
on images sizes and selected Zoom/DPI).
6 years ago
Frans de Jonge 42548939bc
[spec] version_spec: forget about rev and commit (#4303)
Stable doesn't have them.
6 years ago
Frans de Jonge 349485e240
[fix] Minor kodev shellscript issues (#4302)
Use `-z` instead of `! -n`.

See https://github.com/koalaman/shellcheck/wiki/SC2236
6 years ago
Frans de Jonge b5911076bc
[fix, lang] Bottom left/right adjective order (#4301)
Also put left first, which seems more logical.
6 years ago
Frans de Jonge e636a0b231 [hotfix] tonumber makes an empty string nil 6 years ago
Frans de Jonge bdb81c72f1
[hotfix] Version: empty pattern max is an empty string, not nil! (#4299)
Fixes #4298.
6 years ago
Martín Fernández 1e69fae7bc [feat] Add support for BQ/Fnac devices (#4294)
Adds support for devices found in https://blog.bq.com/es/bq-ereaders-developers-program/. Tested on BQ Cervantes 4 (last BQ device from 2017).

It adds a new touch input event handler (discussed in #4275) which should work on other single touch devices (ie: Kobo Touch, Mini, Glo, Aura HD) but wasn't tested.

Includes base bump with: [feat] Add BQ/Fnac device support (https://github.com/koreader/koreader-base/pull/745)
6 years ago
Frans de Jonge d1298ff8e5
[feat] Smaller version on annotated tag (#4295) 6 years ago
Frans de Jonge f3ce1c224d
Bump base (#4293)
Includes:

* [fix] HarfBuzz Android build with newer libtool https://github.com/koreader/koreader-base/pull/749
* [CI] Update Docker images https://github.com/koreader/koreader-base/pull/748
6 years ago
Frans de Jonge c01d105bb3
[build, AppImage] Update to AppImageTool 11 (#4288)
It came out last week: https://github.com/AppImage/AppImageKit/releases/tag/11

I also fixed the `libcairo` issue from https://github.com/koreader/koreader-base/issues/730 in https://github.com/koreader/virdevenv/pull/21
6 years ago
Martín Fernández 29835b3072 [chore] Refactor sysfs_light (#4283) 6 years ago
Yann Muller 3fa2dad0b7 Fix for Internet Archive URL. 6 years ago
Yann Muller 030a02dfc4 Escape &, < and > when removing CDATA. 6 years ago
Yann Muller f747b24a45 Removed accidental white line. 6 years ago
Yann Muller 9c251185eb Filter out CDATA. 6 years ago
poire-z dc4f1888d7 bump base: cre text selection: grab word when not panning 6 years ago
poire-z 2a8ab2b311 View HTML: adds Prettify button to CSS viewer
Quick and non-full-proof prettification, but quite good
and enough to make unreadable/minified CSS files readable
for Style tweaks cooking.
6 years ago
poire-z b3efd5a333 ReaderDictionary:dismissLookupInfo(): avoid forceRePaint()
Avoid forceRePaint() (and showing the full page without any
widget) between closing the "Looking up..." info message and
displaying the Dictionary result window, as it's not really
needed (I must have added it for symmetry with
ReaderDictionary:showLookupInfo() where it is needed.)
This avoids some occasional refresh competition glitches.

Also trim spaces at start or end of selection (can't hurt),
and replaced ugly string.gsub(text) with text:gsub().
6 years ago
poire-z 233f375af4 Cleanup onSetStatusLine()
Follow up to fa0117bb (#4268), to make things a bit clearer:
Only ReaderRolling get the 'SetStatusLine' event, and tells
crengine about the change, and then send the 'UpdatePos' event.
ReaderFooter now just gets a :setVisible() method.

Now, all the code that calls a self.ui.document:set* method, that
most probably triggers a full re-rendering by crengine, do signal
'UpdatePos' immediately after. This event signals that all page
number, pages count, positions... are no more valid and must be
queried or computed again.
This could also be used if we ever want to cache Page Links or
Screen Boxes: this event will have us dropped these caches.
6 years ago
Yann Muller 653741dfac [fix] Wallabag: fix for un-configured plugin error (#4277) 6 years ago
Yann Muller 64d00b2969 [UX] Display the author in OPDS catalogs. (#4278) 6 years ago