2
0
mirror of https://github.com/koreader/koreader synced 2024-11-04 12:00:25 +00:00
Commit Graph

6096 Commits

Author SHA1 Message Date
poire-z
9e4cb59327
Re-order typeset menu (#3946)
And add symbols for default and fallback to the Hyphenation
menu, as it was done recently to the Font menu.
2018-05-14 20:35:49 +02:00
onde2rock
c0e80461ff [feat] Integrated Dropbear SSH server (#3842)
* Add a menu item to start an ssh server

* Add blank login option
2018-05-13 21:27:52 +02:00
Robert
fbd549bcfd
End of document action (#3943)
* End of document action

* Rev1

* Rev2

* Rev3

* File browser
2018-05-13 13:07:23 +02:00
poire-z
5b7664b064
Style tweaks: use css snippets to tweak book styles (#3944)
Adds a new menu "Style tweaks", with a few CSS snippets
that can make some things better with some books.
2018-05-12 23:24:43 +02:00
poire-z
a9905c5129
Font menu: add symbols for default and fallback fonts (#3941)
Also allows for updating the fallback font and see results
in real-time on the underlying document.
Bump crengine for: fix updating fallback font

Also adds a menu item to generate a html document showing some
sample text rendered with each available font (only if the user has
a file koreader/settings/fonts-test-sample.html with some HTML
snippet of his choice).
2018-05-11 17:48:26 +02:00
NiLuJe
e3b7524d9c Another round of Kobo Fixes (#3939)
* Trim unneeded stuff from startup script

I was somehow convinced I'd already done that...
While we're there, explain why we need to siphon those specific vars

* Fix a stray eth0

-> $INTERFACE

* Be very very sure we have INTERFACE set in our env

re #3936

* Make getFirmwareVersion less fragile on Kobo

Not that we actually use it right now, but, still. :D

* Use the same syntax as the PRODUCT check

* Actually implement getProductId

Instead of a stray c/p ^^

* Properly identify the Rev2/Mark7 variants of existing devices

Namely, the H2O² and Aura SE
Not that the H2O²r2 support is still broken, this just allows us to
implement it cleanyl without breaking handling of the original H2O²

re #3925

* Tweak sleeps a bit around Kobo WiFi modules...

See if that jog things up (re #3936)

* Try harder not to suspend with WiFi on on Kobos

Because otherwise, things go boom. (re #3936)
2018-05-10 12:26:07 +02:00
poire-z
62630706bb
bump base/crengine: stylesheet handling improvements (#3934)
Includes:
- Fix a few CSS selector issues
- CSS: add support for some pseudo-classes
- Hyphenation: update fr & de patterns
- CSS: Fix non-lowercasing of specific elements names
- Revert parts of recent BR handling fixes
2018-05-07 23:58:12 +02:00
Robert
fedb34c558 Close filemanger after open last document (#3933) 2018-05-06 14:59:09 +02:00
Frans de Jonge
e83a0c1078
bump base (#3931)
Includes:

* [feat] Add dropbear as an SSH server https://github.com/koreader/koreader-base/pull/640
* [fix] SDL2: resolve rotation issues https://github.com/koreader/koreader-base/pull/665
* [fix, build] Makefile target should be dropbearmulti, not dropbear https://github.com/koreader/koreader-base/pull/666
2018-05-06 00:20:44 +02:00
Robert
e6518c4f68 Use RenderImage:renderImageData insteed of Pic.openJPGDocumentFromMem (#3930) 2018-05-05 15:07:16 +02:00
poire-z
8b2253b3e9
bump base: crengine, freetype, libjpeg-turbo (#3928)
Includes:
- [build] FreeType: bump to 2.9.1
- [build] bump libjpeg-turbo to 1.5.3
- bump crengine:
 - Fix CSS selector specificity computation
 - [fix] crengine/src/lvfntman.cpp: improve letter_spacing limit
 - [fix] crengine/src/lvxml.cpp: add all empty HTML elements
 - html head styles: fix styles not being applied
 - Hyphenation: increase MAX_PATTERN_SIZE from 16 to 35
 - html documents: proper handling of <BR> tags
 - Allows requesting old (broken) XML/DOM building code
- cre.cpp: setStyleSheet(): accept filepath and/or css text,
  and added getIntProperty() and getStringProperty()

credocument/readerrolling: request older XML/DOM building code
for books previously opened, to not lose bookmarks and highlights

(unit tests update because of new handling of consecutive BR via css
pushed links down in the book)
2018-05-05 00:38:50 +02:00
Robert
4bf4578d17 Add HTML widget in GoodReads review (#3929) 2018-05-04 23:44:09 +02:00
Robert
9e67c5a614 CloudStorage: Allow use reserved characters in FTP username and FTP password (#3924)
Depends on RFC 3986 compliant util.urlEncode() and adds unit tests for the new functions.
2018-05-04 17:06:58 +02:00
Frans de Jonge
22950b24f7
bump base for MuPDF 1.13.0 (#3927)
https://github.com/koreader/koreader-base/pull/660
2018-05-04 00:35:41 +02:00
poire-z
43d09e245d
bump base/crengine: stylesheet handling improvements (#3922)
Includes:
- Stylesheets: adds support for '!important'
- Stylesheets: fix parsing of 'inherit' property value
- Stylesheets: implement CSS selectors specificity
2018-05-02 00:16:22 +02:00
mezzarobba
a3e16b3920 [fix] make wifi control work with my Kobo Touch N905 (#3920) 2018-05-01 14:49:37 +02:00
poire-z
24d4ab43c4
dict: convert htmlentities in non-html text results (#3921) 2018-05-01 13:30:02 +02:00
onde2rock
dad7f209fa [CI] Add a check to detect tab in lua files (#3919) 2018-04-29 15:15:11 +02:00
poire-z
0fc7a5ed6d
ProgressWidget: add some bound checks (#3916)
Avoid drawing the fill bar our of the progress bar.
Avoid zero divided by zero that return 'nan' (Not a Number),
that does not bother lua code, but will crash libblitbuffer.so
when it gets nan as a coordinate.
2018-04-27 22:22:33 +02:00
poire-z
cb46412049
bump base/crengine: various fixes (#3917)
Includes:
- html documents: use css defined in <head><style>
- Fix borders color rendering
- Fix some CSS case sensitivity issues
- LVCssDeclaration::parse(): use auto-resizing buffer
2018-04-27 22:10:03 +02:00
poire-z
5db7bab876
bump base/crengine: various fixes (#3908)
Includes:
- table captions: fix link, highlighting and possible segfault
- update French.pattern
- ldomXPointer::toPoint(): add optional use_getRectEx param
cre.cpp: make getPosFromXPointer() uses use_getRectEx=true for better
coordinates accuracy
2018-04-22 19:07:15 +02:00
poire-z
113aefba2e remove dev comment 2018-04-22 17:00:29 +02:00
poire-z
4bb3999cbc RenderImage: factorize all image rendering and scaling code
New module RenderImage (alongside existing RenderText) to provides
image rendering and scaling facilities.
Uses MuPDF, but tries first giflib on GIF.
Allows for getting all the frames from an animated GIF.
2018-04-22 17:00:29 +02:00
poire-z
7a2bf21434 PicDocument:getCoverPageImage(): use first page instead of MuPDF
The dedicated image format library may often give better results
than MuPDF (eg: for animated GIFs).
2018-04-22 17:00:29 +02:00
poire-z
782a57121c ImageViewer: allow viewing a list of images
Mostly useful for browsing the frames of animated GIFs
(but generic enough for other uses).
2018-04-22 17:00:29 +02:00
onde2rock
c6c740d1da [build] Remove kindle5 target (#3902) 2018-04-22 15:22:11 +02:00
Frans de Jonge
f6f2670e87
bump base (#3907)
Includes:
* Adds Pic.openGIFDocumentFromData() https://github.com/koreader/koreader-base/pull/657
* [build] Remove the kindle5 target https://github.com/koreader/koreader-base/pull/650
2018-04-22 15:01:39 +02:00
poire-z
d601eabc4a TextBoxWidget: optimize memory usage (#3904)
By reducing the number of data structures, and avoiding nested tables,
which seemed to impose a lot of work on the garbage collector.
2018-04-21 22:16:14 +02:00
onde2rock
941df475b6 [Menusorter] Ignore warning for the plus_menu. (#3903)
The plus_menu break the assumption of the menusorter about a tab beeing
always present.
See : https://github.com/koreader/koreader/pull/3844#issuecomment-383092219
2018-04-21 22:02:38 +02:00
NiLuJe
3cc9313cc6 Update OTA mirrors (#3901)
Drop outdated mirror
Relocate mine, and give them actually accurate name given their location
2018-04-21 13:34:07 +02:00
NiLuJe
2d713c55ce
Merge pull request #3900 from Frenzie/bump-base
bump base
2018-04-20 23:13:41 +02:00
Frans de Jonge
c4811dcacc bump base
Includes:
* picdocument: fix rendering of animated GIFs https://github.com/koreader/koreader-base/pull/653
* [build] Some minor build tweaks https://github.com/koreader/koreader-base/pull/651
* [chore, CI] Update to latest Docker images https://github.com/koreader/koreader-base/pull/654
* [chore, Kobo] Deprecate Kobo always UTF8Filename() patch https://github.com/koreader/koreader-base/pull/655 (upstream integrated workaround for https://github.com/koreader/koreader/issues/542 previous fix in https://github.com/koreader/koreader/pull/3845)
2018-04-20 16:56:02 +02:00
NiLuJe
95bc5d7081 [fix] tar args order & Kobo IR grid regression (#3895)
* Fix order of tar args

Otherwise, current tar versions abort

* Unbreak Kobo IR grid resume workaround

Regression after f402ee5f6f

I'm going to assume my H2O is really, really weird, because that
commit's more than a year old o_O.
2018-04-19 21:08:55 +02:00
Ruoyu Sun
7f15b3a142 Fix the bug where "Press" key does not open config menu on Kindle 4 NT (#3898) 2018-04-19 20:44:13 +02:00
poire-z
9e4e71d630 coverbrowser: close sqlite db after init (#3897)
Don't keep a handle on bookinfo_cache.sqlite3 when
"Start with: last book"
2018-04-19 17:06:36 +02:00
poire-z
7f6aebe399
cre hyphenation: allow for setting min left/right fragment length (#3890)
When hyphenating a word, the existing algorithms enforced a minimal
length of 2 for each word fragments on left or right side.
This adds a widget to allow changing these minimal sizes (from 1 to 10).
2018-04-19 14:24:04 +02:00
Frans de Jonge
3223ae670f bump base for crengine (#3896)
Various improvements, mostly hyphenation.
2018-04-19 13:56:30 +02:00
poire-z
58f6352d60 Wiki saved as EPUB: stylesheet fix (#3894)
Removed width:80% as it was never supported by crengine (the effect
was achieved thanks to margins and paddings).
Wikipedia saved articles from now on won't be effected by a double
effect if we later add full support for width: into crengine.
2018-04-18 22:13:44 +02:00
Frans de Jonge
138cc0f497
[fix] Better fix for libSDL2-2.0.so.0 (#3893)
Systems with libSDL2.so seem to have libSDL2-2.0.so.0, but those without only have libSDL2-2.0.so.0
2018-04-18 16:21:53 +02:00
Frans de Jonge
1934ebd911
[fix] Build AppImage on more system configurations (#3892) 2018-04-18 15:35:34 +02:00
NiLuJe
3f92525ec7 Fix WiFi on Kobo (#3891)
Regression after bdb82d09c1
TL;DR: That thing is race-y as hell.

The more I play with Kobos, the more it feels like the whole thing's
held together by pieces of fraying strings...
2018-04-18 09:09:58 +02:00
NiLuJe
a36407080b Don't use a square icon on Kobo (#3889)
We ship it for use with fmon, and that means it gets processed by
Nickel, which expects an optimal AR of 0.75
2018-04-18 00:32:40 +02:00
Frans de Jonge
698778f4d4 bump base for BB:dimRect/lightenRect: add missing bounds check when use_cblitbuffer (#3887)
Fix segfaults with highlights spanning multiple pages
2018-04-16 17:08:03 +02:00
Frode Austvik
f12f317e9d [spec] Replace custom assert[Not]AlmostEquals with assert.is[_not].near (#3885)
Also, change "make static-check" to also check the tests.
2018-04-15 23:49:08 +02:00
Frans de Jonge
88dee4194d
[feat] SDL2: add window icon (new logo) (#3884)
Also update Ubuntu Touch icon

Fixes #2000, fixes #3858
2018-04-15 23:39:42 +02:00
onde2rock
ed36173e38 [fix, build] release kindle5 and kindlepw2 (#3883) 2018-04-15 22:52:58 +02:00
Frans de Jonge
975a5834d7
[Android] Update icon to new logo (#3882)
Includes
https://github.com/koreader/android-luajit-launcher/pull/83

References
koreader/koreader-icons#1
koreader/koreader#3881
koreader/koreader#3858
koreader/koreader#2000
2018-04-15 22:49:20 +02:00
Frans de Jonge
4993d577e5
README: add new logo and links from koreader.rocks homepage (#3881)
References #3858 #2000
2018-04-15 20:35:02 +02:00
NiLuJe
bdb82d09c1 [chore] A round of Kobo specific script cleanup (#3876)
* Flag those scripts as executable in git

Somewhat irrelevant because we'll end up living on a FAT32 drive, but,
still.

* Cleanup Kobo startup script

Support KFMon >= 0.9.5

Don't siphon PRODUCT from nickel, it's exported by rcS, so fmon/KFMon
already inherit it.
Siphon NICKEL_HOME, on the off-chance nickel fails to figure that one
out for itself on restart.
Siphon LANG (This may be a terrible idea, rcS sets LANG to en_US.UTF-8,
while we set LC_ALL to en_US.UTF-8, but I don't know if nickel itself
ever updates LANG, since I have mine set to en_US also ;)).
My secret hope if that everything's working as it should and this ensures
we default to Nickel's locale on fresh installs?

Remove the extra sync on startup, both @Baskerville's fmon and KFMon are
smart enough not to do anything overly stupid, and recent FW versions
have a slightly more resilient DB anyway (rollback journal -> WAL).
This effectively shaves over a second off our startup time.

* Slimmed down the nickel restart script.

Based on current rcS
Scrapped a bucketload of irrelevant & legacy crap, since we're never
bootstrapping nickel, only restarting it.

* Update Kobo install instrcutions.

Point to KSM09, @Baskerville's fmon, and KFMon.
Deprecate legacy fmon, and as such, stop shipping a useless KoboRoot
tarball.
2018-04-15 15:05:45 +02:00
onde2rock
2e094f97c9 [chore] Remove kindle4 from legacy target (#3879)
Same hardware/software as kindle5, see https://github.com/koreader/koreader-base/pull/640#issuecomment-379886833
2018-04-15 14:56:45 +02:00