Commit Graph

7401 Commits

Author SHA1 Message Date
mwoz123
8b4f1ca42e Wallabag remove from history setting fixes (#6059) v2020.04 2020-04-15 15:25:29 +02:00
mwoz123
0b52fe9771 Wallabag remove from history setting (#6048)
Solves: #5045
2020-04-15 12:50:13 +02:00
poire-z
ba4e175ee6 Statistics: fix md5 leaking between newly opened books (#6052)
Which could cause a same book appearing multiple times
as different entries in statistics.
2020-04-15 08:52:16 +02:00
Martín Fdez
f756a6aaa7 stardict path override 2020-04-14 20:39:08 +02:00
Martín Fernández
9a789335c3 mobiscribe: add full screen update support (#6051) 2020-04-14 20:27:58 +02:00
poire-z
abdaf6e18c Non-Touch: fix hang on bottom config menu navigation (#6047) 2020-04-14 12:20:11 +02:00
Martín Fdez
8e831eb756 desktop: disable battery on touch menu and reader footer
isDesktop and isEmulator are now different entities
2020-04-13 19:24:28 +02:00
NiLuJe
2ae796eb2a [Kindle] Be more thorough when toggling WiFi (#6039)
Fix #6019
2020-04-11 21:03:42 +02:00
poire-z
635f784dfd [UX] Gestures: add action "Statistics calendar view"
Also flush current stats when showing calendar view.
2020-04-10 22:52:57 +02:00
poire-z
41aad475ce File browser: sane fallback when home_dir invalid or missing 2020-04-10 22:52:57 +02:00
Frans de Jonge
3418e440a3 Bump base (#6034)
Fixes #6027, fixes #6033
2020-04-09 20:09:39 +02:00
dfhall
04ca12bb7f Fix remarkable pen input (#6031)
fixes #6030
2020-04-08 08:06:23 +02:00
NiLuJe
5f771ed9c8 Workaround more weird XText/HB issues on Kindle armv6 (#6025)
* Bump base for HB on armv6 tweaks

https://github.com/koreader/koreader-base/pull/1073
https://github.com/koreader/koreader-base/pull/1074
2020-04-05 04:29:50 +02:00
Frans de Jonge
2945a2fb79 Add EPUB3 extension to MuPDF document (#6013)
Loads fine, see 026140f809 (commitcomment-38122799)
2020-03-29 14:38:07 +02:00
NiLuJe
bb39853521 [Kindle] Try harder when restoring the title bar (#6009) 2020-03-29 05:39:41 +02:00
poire-z
026140f809 Adds ReaderPageMap, to optionally show source pages numbers
bump crengine: support for EPUB3 nav toc and page maps
Includes:
- Fix lvRect:isRectInside(rc) with 0-width or 0-height rect
- TOC: parse EPUB3 nav toc, fallback to spine when no toc
- Parse and cache various hardcopy page list maps
- epub.css: hide EPUB3 <span epub:type="pagebreak"> content
cre.cpp: add a few PageMap helper functions.

Adds ReaderPageMap which will add a new menu (under TOC and
Bookmarks) that will allow:
- to list source page numbers (like a TOC)
- to show visible page labels in the right margin
- to use these source page numbers in the footer, the TOC,
  the GoTo and SkimTo widgets, and to use the source page
  number in the standard bookmark and highlight initial text.
2020-03-27 18:36:48 +01:00
poire-z
1cb3be324a TextBoxWidget: fix infinite loop when very small width 2020-03-27 18:36:48 +01:00
poire-z
b5867c3ead BookInfo: add File date, handle zip sub-suffix (.fb2.zip) 2020-03-27 18:36:48 +01:00
mwoz123
904a61009d plugins/NewsDownloader: add never download images (#6003)
Closes #5924.
2020-03-27 14:21:20 +01:00
NiLuJe
0b898624ac [Kindle] More accurate on/off FL detection/toggle (#5989)
* Kindle FL shenanigans

Either fix #5986, or break a whole crapload of weird corner-cases.
Possibly the insane AutoFrontLight checks.

* Make fl step 0 usable on devices where 0 doesn't turn the light off.

By fudging an extra step on our own side.

* Also, add some debug logging around wmctrl to try to figure out what's
happening there...
2020-03-26 04:56:34 +01:00
poire-z
55d7109042 Terminal plugin: a few tweaks (#5985)
- Show output in a TextViewer with a monospace font.
- Include stderr, so errors are shown
- Use Trapper to allow interrupting command (and to fix
  some refresh issues)
2020-03-20 23:41:36 +01:00
poire-z
8e68dc11db Highlights: turn page when start or end crosses pages (#5984)
More generally: switch to the page that contains the highlight
edge that we are currently moving.
2020-03-20 21:58:58 +01:00
yparitcher
e9d0c7a96e [fix] don't crash when enabling statistics on new book (#5971) 2020-03-20 12:01:38 +01:00
Sergey Avseyev
7a0fe89ab7 Add DJVU MIME type to OPDS browser (#5982) 2020-03-20 09:18:16 +01:00
poire-z
593d7706ec bump crengine: support font-variant, more FB2 metadata (#5980)
Includes:
- FB2: merge other metadata in returned keywords and description
- CSS: adds support for font-variant
Also:
- Rebase MD5 module against upstream
- Update cURL to 7.69.1
2020-03-19 13:19:46 +01:00
Martín Fernández
e7b191ca6a android: same version code for all archs (#5972)
+ new Boyue model
2020-03-16 22:57:07 +01:00
yparitcher
08359ee1b6 [UX] Next/Previous Bookmark Gestures (#5968)
Fixes #5965
2020-03-16 16:52:09 +01:00
NiLuJe
4a5a2eb708 Unbreak nightmode on Cervantes (#5966)
* Unbreak nightmode on Cervantes

Regression after https://github.com/koreader/koreader-base/pull/1047 (I
thought it was already implemented).

Fix #5963

* make luacheck happy
2020-03-16 01:05:17 +01:00
poire-z
8d8b8cd0f7 FB2 footnotes: some more tweaks
- Add some style tweaks to allow displaying FB2 end notes
  in-page too - and to allow showing them without a smaller
  font size.
- Show footnote number in bold in popup footnotes.
2020-03-15 19:19:47 +01:00
poire-z
9510d3e491 bump crengine: handle block elements inside inline element
Includes:
- FB2 footnotes: disable hardcoded handling as in-page 2
- CSS: also support gray colors spelled "grey"
- Text: move past floats when wide image or inlineBox does not fit
- Fix list item marker clipping check
- Ensure nodeDisplayStyleHash change when boxing prevented by cache
- Text: adds LFormattedText.is_reusable
- Handle block elements inside inline element
- Fix getBookmark() on multi-pages embedded block
- (Upstream) Support raw picture in RTF
- (Upstream) Fixed integer overflow in cache size calculations
- Add libCURL's CA bundle to the ignore list
- FB2 footnotes: fix setBoxingWishedButPreventedByCache()
- fb2.css: handle body[name="comments"] as footnotes

Also: Update base/thirdparty/turbo to v2.1.3.
2020-03-15 19:19:47 +01:00
mergen3107
73f1b1aad6 [UX] More compact dictionary download window (#5960)
Dictionary download window: combine the first two titles to save space and fit 3x complete dictionary selections on one page (Kindle PW3)

Closes #5955
2020-03-15 11:40:24 +01:00
NiLuJe
9ce22f53b9 [Kindle] Hide the status bar on current FW, too. (#5943)
Via wmctrl
2020-03-15 01:28:37 +01:00
NiLuJe
098c1a7844 [fix] Don't break OPDS parsing on HR tags (#5949)
Apply the same crappy workaround as for BR.

Fix #5948
2020-03-14 21:17:42 +01:00
NiLuJe
bb0c01757d Blacklist a few Amazon Ember styles to get the main ones to behave. (#5951)
Fix #5950
2020-03-14 11:14:23 +01:00
mergen3107
7d51fa2b5d [UX] Update Russian keyboard layout (#5957)
Closes #5953.
2020-03-14 11:13:46 +01:00
Frans de Jonge
c2aac0f71e [fix] DocumentRegistry: only add provider once (#5947)
Fixes <https://github.com/koreader/koreader/issues/5946>.
2020-03-13 21:29:13 +01:00
Jon
d65f2c8367 Add additional MIME types to OPDS Browser (#5940)
added a few new mime types to the OPDS browser as a temporary workaround for #5478
v2020.03.2
2020-03-13 12:18:46 +01:00
Frans de Jonge
ad0a7ed3a5 [fix] Support proper local links (#5945)
Only one style was supported.

Fixes <https://github.com/koreader/koreader/issues/5941>.

See <https://github.com/koreader/koreader/issues/5941#issuecomment-598633973> for discussion.
2020-03-13 12:13:15 +01:00
Frans de Jonge
27c3711c81 Bump base for PB build compatible with ancient 2014 firmware (#5942)
Fixes https://github.com/koreader/koreader/issues/5939

Also includes Update LodePNG to 20200306 and Update FBInk to 1.22.0 https://github.com/koreader/koreader-base/pull/1061
2020-03-12 22:54:11 +01:00
Frans de Jonge
f9a57a3dff Bump base (#5935)
* Update cURL to 7.69.0 (koreader-base#1059)
* Parentheses in awk call (koreader-base#1060)
v2020.03.1
2020-03-10 09:09:24 +01:00
poire-z
c1f19e943a Make xpointers migration ConfirmBox non-dismissable (#5931)
Because dismissing it by tapping outside would have
"not for this book" selected, which is the least
welcome action.
2020-03-08 20:22:12 +01:00
clarkspark
1d58eb8b6c Correct Frontlight status on suspend when screensaver mode is 'Leave … (#5928)
Also use a var in place of a long function name
v2020.03
2020-03-08 08:46:46 +01:00
Frans de Jonge
da8151f84a [i18n] Bump translations submodule for v2020.03 release (#5927) 2020-03-07 20:17:18 +01:00
poire-z
8502a96a6a PathChooser: fetch 'show_hidden' setting on each use (#5923) 2020-03-06 21:10:01 +01:00
Frans de Jonge
8da77b0fec Bump base for SDL2 MacOS HiDPI and fribidi 1.0.9 (#5917)
* Tell SDL2 to handle HiDPI shenanigans for us https://github.com/koreader/koreader-base/pull/1056
* [CI] Run action on PR https://github.com/koreader/koreader-base/pull/1058
* thirdparty/fribidi 1.0.9 https://github.com/koreader/koreader-base/pull/1057
2020-03-04 10:29:55 +01:00
poire-z
72f2cef472 Style tweaks: enable EPUB/FB2 in-page footnotes by default (#5908)
Set these 2 tweaks as default global tweaks for new users
(and existing users that have not set any global defaults).
One can disable them by long-press on each of them.
Only per-specs EPUB and FB2 footnotes (other in-page footnotes
tweaks may trigger on non-footnote content on some books, so
let enabling them be a user decision).
2020-02-28 23:06:58 +01:00
poire-z
8a3d4a1d25 TOC: validate and fix misordered page numbers (#5907)
Our code expects (rightfully) the TOC items to be ordered
and to have increasing page numbers, but we may occasionally
not get that from the engines (usually, because of bugs or
duplicated IDs in the document).
Check for that and fix page numbers (possibly making them
wrong) to have a working TOC.
2020-02-28 22:56:12 +01:00
poire-z
85a06ff995 Bookmarks: fix dogear not shown when highlights on same page
Depending on the random ordering of bookmarks and highlights
on a same page, the binary seach could not notice that a
bookmark exists for this page.
Solve this by putting bookmark before highlights on a same
page in the list, and skip them when searching.
2020-02-27 23:59:02 +01:00
poire-z
e6612eefe1 CoverBrowser: fix no content with Pathchooser in RTL UI
Really needed these :resetLayout() (as done in Menu.lua)
when stuff is right aligned (otherwise, first computation
of x-offset, when there was no content, being Screen.width,
would stick, and would draw the content off-screen on the
right - no issue noticed when left-aligned as the offsets
would stay being 0 whether there is content or none).
2020-02-27 23:59:02 +01:00
poire-z
a5232594d9 FB2 footnotes: handle them just as other footnotes
- FB2 footnotes are no more rendered in-page by default
- In-page rendering can be enable by the added Style tweak
- FB2 footnotes can also show in footnote popup (with
  some added not-so-nice CSS so MuPDF can render them
  as crengine)
2020-02-27 21:22:28 +01:00