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

9898 Commits

Author SHA1 Message Date
poire-z
626864f856 [chore] replace utf8 bytes with Unicode escape sequence 2023-08-02 01:28:24 +02:00
poire-z
7bff61150a util.prettifyCSS(): do better with more complex CSS 2023-08-02 01:28:24 +02:00
poire-z
b03992c077 ViewHTML: fix content messed up when consecutive nbsp
Fix bug in replace_in_html() when consecutive
matches.
Also ensure content after leading indentation is not
wrapped on the next line.
2023-08-02 01:28:24 +02:00
poire-z
08e9c27a32 Wikipedia EPUBs: re-add ToC in content
The ToC is no longer in the HTML we get from the
Wikipedia API. So, add it ourselves.
Also, as we can't get anywhere the Wikipedia localized
string for "Contents" (ie. "Sommaire" in French), use
thick <HR> to mark the start and end of this ToC.
2023-08-02 01:28:24 +02:00
ichnilatis-gr
583ae40e46
Greek keyboard: update to the new keyboard layout (#10734) 2023-08-02 00:34:48 +02:00
NiLuJe
9c8e55b3e5
Kobo: Yet another attempt at working around the hangs on the latest NXP boards (#10771)
* Notification: Drop the fencing from #10083; it never actually helped, and had subtle side-effects we could do without.
* VirtualKeyBoard: Flash on close, otherwise, some of the fast refresh glitches may be burned into the working buffer until a flash. Making sure we flash ourselves prevent it from sticking around on the page ;).
* util: Move `writeToSysfs` to base (i.e., `ffi/util`), as we need it there (and it actually makes more sense there anyway ;p).
* Bump base for https://github.com/koreader/koreader-base/pull/1645, which is where the actual workaround (hopefully) lives.

Re #8414, #9806, #10558
2023-08-01 23:53:10 +02:00
NiLuJe
689d9e2976
Kobo: Initial Elipsa 2E support (#10719)
Untested, but mostly everything should be there ;p.

Bumps base for MTK support (https://github.com/koreader/koreader-base/pull/1642)
2023-08-01 20:26:02 +02:00
NiLuJe
ef0bcbad3f
ReaderFooter: Don't reset the initial position marker like a cowboy (#10767)
Take a more tactful approach instead, should hopefully prevent issues like in https://github.com/koreader/koreader/pull/10114#issuecomment-1658913661
2023-08-01 18:43:48 +02:00
hius07
7164bc2bd9
Exporter: fixes (#10765) 2023-08-01 08:46:38 +03:00
NiLuJe
9ceb07a4c6
Kobo: Unbreak Aura One support (#10758)
Regression since #10728, Fix #10757
2023-07-28 20:48:28 +02:00
hius07
b36ccc7249
QuickMenu: add long-press on profile (#10671) 2023-07-28 18:10:35 +03:00
clach04
500eadf895
[plugin] Wallabag: strip trailing slashes from server URL (#10715)
Fixes #9187.
2023-07-27 09:29:29 +02:00
poire-z
4fa278ff0b Wikipedia: handle images in changed Wikipedia HTML
The HTML we get from Wikipedia has recently changed,
which has caused images to not be detected and shown
in DictQuickLookup, and to be missing or ugly in
saved EPUBs. Update our code and CSS to display them
again.
2023-07-26 01:05:15 +02:00
poire-z
eecdac930e View HTML: Show matched rules: ignore style & tweaks on long-press
On long-press on the "Show matched stylesheets rules"
buttons, ignore those from our epub.css/html5.css and
from styletweaks, which may make investigating a book
style simpler without their noise.
2023-07-26 01:05:15 +02:00
poire-z
e6d21ad371 bump crengine: CSS caption-side, SVG, CSS and table fixes
Includes:
- SVG: support embedded base64 images when no doc
- epub.css: hide <nav hidden="">
- Tables: fix possible specified width overflow
- Tables: fix caption and table width interactions
- CSS/Tables: add support for "caption-side: top/bottom"
- gatherNodeMatchingRulesets(): avoid messing document cache
- gatherStylesheetsMatchingRulesets(): add with_m_stylesheet param
2023-07-26 01:05:15 +02:00
hius07
47dae6c5dd
Dictionary: fix Fuzzy search setting appearance (#10721) 2023-07-24 09:25:53 +03:00
hius07
a311de6d8e
readerview: do not read/save inapplicable doc_settings items (#10710) 2023-07-24 09:25:16 +03:00
NiLuJe
21949c5521 Kobo: Apply the AW99703 smooth ramp off fix to all affected devices
e.g., at least the Clara 2E features the same controller & driver,
but it is likely found on a few other models.
2023-07-24 04:22:13 +02:00
NiLuJe
79b836b726 Build: Don't create the legacy history dir
Fix OTAs on fresh installs (via
https://github.com/koreader/koreader-base/pull/1643)
2023-07-24 04:22:13 +02:00
NiLuJe
f5e871d4ed NetworkInfo: Never show the token index
Now that I've seen it in action on a device, it's mostly useless, and,
if anything, confusing, because it's not static.
2023-07-24 04:22:13 +02:00
hasezoey
d087710140
Autowarmth: Change strings "set" / "unset" to "turn on" / "turn off" where appropriate (#10733) 2023-07-23 20:37:50 +02:00
Martín Fernández
0d40d9c99d
bump luajit-launcher: more devices (#10732) 2023-07-23 18:46:27 +02:00
hasezoey
618f065de4
DeviceListener:onToggleFrontlight: add notification of "unchanged" (#10727) 2023-07-23 13:33:24 +02:00
hasezoey
b1109a729e
Android: call "_decideFrontlightState" to keep "is_fl_on" in sync (#10731) 2023-07-23 13:31:10 +02:00
hasezoey
14347f0c18
Android - lights: return to previous level on cancel (#10726) 2023-07-23 13:29:53 +02:00
NiLuJe
d350418367 Env: Actually use the full ffi.load signature in our overload
We *do* actually use the optional global argument sometime...
Namely, for librt in ffi/posix_h.
c.f., https://github.com/koreader/koreader-base/pull/1586#issuecomment-1637184501
2023-07-18 02:11:25 +02:00
NiLuJe
8e063d5b39 macOS: Comment on the expected gettext behavior
Someone who can actually run otool will have to confirm whether
the intended behavior (glib being linked against a static gettext copy)
is actually what's happening...
2023-07-18 02:11:25 +02:00
NiLuJe
17bdd56e02 Never export LD_LIBRARY_PATH
It's been made redundant by the RPATH changes

The only platform that gets the dubious honor of actually needing an
LD_LIBRARY_PATH is PocketBook, because of InkView.

Co-authored-by: Benoit Pierre <benoit.pierre@gmail.com>

Bump base to pull in the aforementioned RPATH changes ;).

https://github.com/koreader/koreader-base/pull/1638
2023-07-18 02:11:25 +02:00
poire-z
8a240dd635
bump LunaSVG, crengine: add support for .docm (#10702)
Includes:
- bump LunaSVG: intermediate upstream bump, cleanup
- bump LunaSVG: minor upstream tweaks
crengine:
- DocX: add support for similar DocM format
- LVStyleSheet: fix LVCssDeclaration::getHash()
- CSS parsing: accept Unicode values for ID and classnames
- update for Harfbuzz 8, fix some compiler warning
Also fix input not restored when loading failed,
and KOReader not able to exit.
2023-07-16 19:18:10 +02:00
NiLuJe
dacc3c2f72
NetworkManager: Bypass isOnline on !hasWifiToggle platforms (#10697)
Followup to #10669, fix #10694
2023-07-15 23:58:51 +02:00
Frans de Jonge
3bec20fc25
NetworkManager: improve clarity for chatty framework user-facing explanation (#10696)
See https://github.com/koreader/koreader/pull/10669/files#r1263385527
2023-07-15 17:19:35 +02:00
hius07
3e43a21cf2
ArchiveViewer: view files (#10683) 2023-07-14 07:57:28 +03:00
NiLuJe
890dc81081 Bump base for webp rpath fixes
https://github.com/koreader/koreader-base/pull/1637
2023-07-13 06:26:22 +02:00
NiLuJe
f61dc0cdb5 macOS: We ship our own webp, don't pull brew's
c.f., https://github.com/koreader/koreader/pull/10687#issuecomment-1633450159
2023-07-13 06:26:22 +02:00
NiLuJe
9e1197c489
LuaJIT update (#10689)
* Bump base (https://github.com/koreader/koreader-base/pull/1636)
* Bump android/luajit-launcher (https://github.com/koreader/android-luajit-launcher/pull/424)
2023-07-13 04:40:45 +02:00
Glen Sawyer
73c4f09a88
FileChooser: re-add file sort by "last date read" (#10682)
Revert bits from eb299c30.
2023-07-12 22:33:14 +02:00
poire-z
d0e705a582
Font list menu: allow sorting by more recently set (#10662)
- Add a toggle in Font settings> allowing showing font
  ordered by most recently selected (long-press on
  it allows clearing this history).
- Keep in G_reader_settings a list of known fonts, so
  we can notice newly added user fonts, and put them
  at the start of the most recently selected. Show
  these new fonts with a symbol in the menu.
- TouchMenu: allows for a flag to trigger menu
  refresh when going up.
2023-07-12 22:29:13 +02:00
Frans de Jonge
c72b3dbae4
Bump base: update to HarfBuzz 8.0.1 (#10688)
https://github.com/koreader/koreader-base/pull/1635
2023-07-12 21:55:39 +02:00
NiLuJe
42235266e0
Ship all libwebp depencencies — Unbreak all the things ;o) (#10687)
https://github.com/koreader/koreader-base/pull/1634
2023-07-12 20:39:04 +02:00
Christian Kilb
6d7dccda13
[PocketBook]Add support for InkPad Color 2 (#10685)
Co-authored-by: Christian Kilb <christian.kilb@gmail.com>
2023-07-12 16:50:20 +02:00
hius07
e1ed3a71c5
Style tweaks: notification on toggling style tweak with a gesture (#10674) 2023-07-12 07:45:47 +03:00
NiLuJe
d0899f24e3 Bump android/luajit-launcher
https://github.com/koreader/android-luajit-launcher/pull/422

https://github.com/koreader/android-luajit-launcher/pull/423
2023-07-12 06:14:53 +02:00
NiLuJe
eb4a82a48b Bump base
https://github.com/koreader/koreader-base/pull/1631

https://github.com/koreader/koreader-base/pull/1633
2023-07-12 06:14:53 +02:00
NiLuJe
d57325aaf6
NetworkManager: Enable "before wifi" action support on every hasWifiToggle platform (#10669)
* Enable before_wifi_action & after_wifi_action on hasWifiToggle platforms (which is basically all of 'em except naked SDL).
* Decouple restoreWifiAsync from hasWifiManger, because we can do that on other platforms (namely, Kindle. Probably PB, too, but WiFi is already a mess there, and I can't test it).
* Implement restoreWifiAsync on Kindle.
* Properly flag rM as hasWifiManager & hasFastWifiStatusQuery, because it is actually both of those (it uses our wpa_supplicant backend).
* Update the KOSync checks to take these changes into account, to properly disable auto_sync if necessary.
* Really made the Network* event signaling consistent. For realz this time.
* In an effort to make the whole beforeWifiAction framework somewhat usable there, we now assume connectivity is always available on !hasWifiToggle platforms...
2023-07-12 02:42:16 +02:00
Benoit Pierre
41a07a2a66
crengine: fix clang release build (#10680)
https://github.com/koreader/crengine/pull/522
2023-07-12 01:42:40 +02:00
Benoit Pierre
20bd7f9a6d
Bump base (#10677)
* https://github.com/koreader/koreader-base/pull/1617
2023-07-11 20:17:18 +02:00
hius07
b1c90260e4
DropBox: unify error messages (#10666) 2023-07-11 07:49:52 +03:00
hius07
b33971b92d
OPDS fixes (#10657) 2023-07-11 07:49:27 +03:00
Benoit Pierre
d849d0e657
Bump base (#10673)
* https://github.com/koreader/koreader-base/pull/1624
* https://github.com/koreader/koreader-base/pull/1630
2023-07-11 03:54:50 +02:00
Benoit Pierre
3ac8a67c6d android: update to use NDK 23c 2023-07-10 22:46:53 +02:00