poire-z
7de022a617
bump crengine: adds DOCX and FB3 support ( #5498 )
...
Includes:
- (Upstream) Unified cache for chars and glyph's indexes
- (Upstream) Glyph caching: optional use of hash table instead of a linked list
- (Upstream) Adds docx and fb3 support
- Update hardcoded elements list and stylesheets
- DocX: build a HTML DOM instead of a FB2 DOM
- Text: allow wrap after '/' and '-'
- Text: with Harfbuzz, split measurement on text node change
- Clear fonts on load and re-rendering
5 years ago
poire-z
240b75ac50
Fix screensaver menu stability ( #5499 )
...
With some particular document switching workflows, the
screensaver menu could lose its last item, and shrink
to having zero item, and eventually cause a crash.
5 years ago
NiLuJe
f2f2aa6e4d
Minor state handling tweaks when the footer is disabled/invisible ( #5494 )
...
* Don't break `doc_pages` updates when it's completely disabled. (c.f., the commit's comment, doing it on every page turn seems a bit overkill, but I get that it's probably done that way because it was easier ;)).
* Detect the empty footerTextGenerator properly in `_updateFooterText` (it's `""`, not `nil`).
* Abort `_updateFooterText` early when the footer is invisible (and has been for a while/ever, i.e., when not requesting a repaint, like a mode switch would).
* Never send `SetBottomPageMargin` events twice.
* Minor tweaks to touchmenu & configdialog to avoid useless repaints (don't redraw the reader/fm unless we absolutely need to).
* Make sure we show the progress bar alone instead of nothing when disabling the last enabled mode in the menu.
5 years ago
Martín Fernández
87334801ea
android: fix ko paths when primary storage is a SD card
5 years ago
Robert
40ba01fd72
Fix footer with no_mode/disabled progress bar ( #5491 )
5 years ago
NiLuJe
9f4ba77fab
[Kobo] Always set the warmth on the KA1 ( #5468 )
...
It might be possible to instead only set the white led, but I don't
have the hardware to test that theory, se, eh.
Fix #5465 (probably.)
5 years ago
yparitcher
65fcd385c0
[chore] Fix typos ( #5474 )
5 years ago
Robert
5209493ba8
[UX] Option to show progress bar at the bottom of the screen ( #5442 )
5 years ago
poire-z
50f3aa252f
cre progress meter: avoid some warning with unit tests ( #5464 )
...
Quick fix for some warnings shown in unit tests output, see https://github.com/koreader/koreader/pull/5406#issuecomment-540059452
5 years ago
Frans de Jonge
99495aaed4
[Android, fix] Revert slightly more of the Noto business ( #5463 )
...
Follow-up to #5458 . Cf. https://github.com/koreader/koreader/issues/5381#issuecomment-539873843 .
5 years ago
Martín Fernández
b75fec4971
tweak timeouts, add haptic feedback support
...
Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
5 years ago
yparitcher
8ed088159c
[Plugin] Per directory defaults ( #5428 )
5 years ago
Max CW
a7ff9ba0dc
ImageViewer: start with image fullscreen with no buttons shown ( #5446 )
...
Tap any part of screen to toggle bottom buttons visibility.
Swipe south to quickly close it (as long as image is scaled
to fit, and there's no need for panning).
5 years ago
Frans de Jonge
1db7f2e444
[fix] Try to make screensaver settings slightly less error-prone ( #5460 )
...
Regression inadvertently caused by #5369 .
With the way this is constructed, this is almost guaranteed to happen.
Fixes #5459 .
5 years ago
Frans de Jonge
0fa1b44782
[UX] Add … button to highlight edit ( #5456 )
...
Shows regular highlight dialog. Fixes #5455 .
5 years ago
Mustafa Ali Mutlu
513fd807b0
Fix frozen confirmbox when keyboard shown ( #5452 )
5 years ago
Robert
7badb67e3d
Fix crash on book status change ( #5453 )
5 years ago
poire-z
529d2d91d6
cre: properly unmark link position markers ( #5451 )
...
By restoring the previous content instead of just drawing
a white rectangle.
5 years ago
Robert
27de8d9bdf
Fix: Footer overflow screen after resize emulator window ( #5439 )
5 years ago
Robert
056a4f9129
Fix: Crash toggleswitch when args are empty ( #5438 )
...
Fix : #5434
5 years ago
poire-z
3e3b00429f
EPUB: more support for RTL documents ( #5436 )
...
bump crengine: enhanced RTL block rendering.
Includes:
- Re-enable: Use the same FT load flags in HB as in FT
- Avoid redundant calls to getStyle()
- CSS: parse and store "direction:"
- Enhanced block rendering: handle RTL direction
- Enhanced block rendering: handle RTL tables
- Pagesplitting: account for lines' text direction
- CSS: add support for more pseudo-classes
- epub.css: a few updates for RTL documents
- Fix LVDocView::getBookmark() which could be slow or wrong
Add a few style tweaks useful to RTL readers.
Wikipedia Save as EPUB: build proper RTL documents from
persian, arabic, hebrew (and others) Wikipedia articles.
5 years ago
Frans de Jonge
f7861bc1eb
[feat] Add haptic feedback ( #5380 )
...
References <https://github.com/koreader/koreader/issues/5374 >.
5 years ago
Robert
a934d2d52e
[UX] Add fine tune for zoom(dpi) and font size ( #5432 )
...
Close : #5312
5 years ago
Frans de Jonge
d0f95ec669
[UX] Use ProgressWidget in frontlight ( #5373 )
...
This makes it behave like a pretty decent slider.
Cf. <https://github.com/koreader/koreader/issues/5314 >.
5 years ago
NiLuJe
abc86323fc
[Kobo/Cervantes] Always use setBrightness to set the brightness ( #5429 )
...
sysfs_light handles every case sanely already, no need to be cute ;).
This prevents always setting the warmth when setting the FL on NL
devices with a mixer, because, besides being useless, it's also slow
(lua does mmap'ed io, so every handle requires an fstat + mmap).
It was subtly affecting the fluidity of the toggle ramp, and much less
subtly wreaking havoc on #5373 ;).
KA1 owners might want to investigate keeping the fds around one way or
another, like we do for the fl ioctl, to alleviate the overhead of doing
that for not one but three or four fds...
I won't be doing that, since I lack the hardware to test it, and FL+NL
stuff is pain.
* Do the same on Cervantes
* Bump base to pickup related ioctl tweaks
5 years ago
Jörg Derungs
c8a6c144fa
[fix] Make set defaults self contained ( #5419 )
...
Fixes #5418 .
5 years ago
Robert
3de3ea04ff
[UX] Better align buttonprogress in configdialog ( #5427 )
...
Similar to #5420
5 years ago
yparitcher
09d49e29ad
[UX] Add inverse reading order to gesture manager ( #5423 )
...
Also fixes #5354 .
5 years ago
Robert
67abf9a26a
Better align toggleswitch in configdialog ( #5420 )
5 years ago
Robert
0778ec09fc
Fix: incorrect chapter markers ( #5425 )
5 years ago
NiLuJe
e7cfc65780
[Kobo] Unbreak the FL ramp-up/down ( #5421 )
...
I got my wires crossed.
It's fast on Mk. 5, slow on Mk. 7.
So, slow it down on Mk. 5 so we actually get a ramp and not a jump.
5 years ago
Robert
02218cb9e2
[UX] Add fine tune in contrast ( #5413 )
5 years ago
NiLuJe
f96cfe940b
Use the proper LED driver on the Libra ( #5416 )
...
So that we can actually set the warmth ;)
5 years ago
yparitcher
31b9f78384
[UX] Add Hebrew keyboard ( #5414 )
5 years ago
NiLuJe
bcceb94603
Hotfix the startup orientation on the Kobo Libra ( #5409 )
5 years ago
NiLuJe
1c2c471c5f
[Kobo/Cervantes] Prefer using the ioctl over sysfs when setting the FL. ( #5407 )
...
* Prefer using the ioctl over sysfs when setting the FL.
It's much lower latency (re #5373 ).
We can do so on NL devices with a mixer.
5 years ago
poire-z
5bc6bf046c
bump crengine, show progress meter on load/re-rendering ( #5406 )
...
Includes:
- Adds tinyNodeCollection::getStatistics()
- epubfmt.cpp: cleanup indentation and small optimisation
- Add more progress callback events
- Optimisation: avoid re-init for EPUBs with embedded fonts
- Fix: don't draw border when border-color: transparent
- CSS: ignore 'inherit' inside font-family
Show a small progress meter at top left of screen when
crengine is loading, re-rendering, and saving cache file
(after a 2 second delay to not be bothered on small books).
Also add a wrapper for the last remaining bit of code that
was accessing _document directly (:getPageOffsetX()).
5 years ago
Robert
e2c771dd2d
Two-line footer ( #5405 )
...
Close : #1933
New option that moves progress bar to separate line in footer.
5 years ago
Frans de Jonge
d456a076af
[feat, UX] Ignore hold corners ( #5404 )
...
Closes <https://github.com/koreader/koreader/issues/5401 >.
5 years ago
Robert
28e2e664b1
fix: Truncate text in spinwidget ( #5393 )
5 years ago
noEmbryo
fe9ab1c77c
Move accented Greek characters to the "Accented" group ( #5402 )
5 years ago
Robert
8c1610b4e9
Fix: Incorrect width of separator line ( #5403 )
...
Fix : #5399
5 years ago
noEmbryo
6a2e4b7a08
Update el_keyboard.lua ( #5400 )
...
Set the Greek characters as the default
Cf. https://github.com/koreader/koreader/pull/5318#issuecomment-532705016
5 years ago
tobiasarndt
a2f605ba38
[fix] added PocketBook InkPad 3 Pro to device.lua ( #5398 )
5 years ago
Robert
d08516bd89
Fix: footer offset when orientation changes ( #5396 )
...
Fix : #5395
5 years ago
Robert
a7c358b080
[UX] Sort footer elements ( #5389 )
...
Close : #5329
- new option for footer - `Sort items`
- new widget `SortWidget`
5 years ago
Robert
e315d8690d
[chore] Remove unnecessary indent on new line ( #5391 )
5 years ago
Robert
b7d464ae4b
Set screenshot output folder ( #5382 )
...
Close : #4230
5 years ago
Frans de Jonge
5bc9700c24
[feat] Allow setting any document cover as screensaver ( #5369 )
...
Cf. suggestion by @KenMaltby in <https://github.com/koreader/koreader/issues/3033#issuecomment-526657352 >.
5 years ago
poire-z
788e6d90df
Fix: don't create sidecar file when indexing pdf documents ( #5384 )
5 years ago
Robert
54568d4dcd
[UX] Add fine tune in line spacing ( #5375 )
...
See https://github.com/koreader/koreader/issues/5312#issuecomment-528506421
Progress widget has a new extra button ⋮ that triggers SpinWidget.
5 years ago
Frans de Jonge
672d29fbcc
[fix] WakeupMgr: pass through task epoch for proximity check
5 years ago
Frans de Jonge
0c290be055
WakeupMgr: add log when scheduling wakeup
5 years ago
Frans de Jonge
3836184f9d
[Kobo] Always write scheduled wakeup info to log
5 years ago
NiLuJe
4363576066
Support the Kobo Libra
...
(Hopefully?).
5 years ago
Frans de Jonge
e257c4e45e
[feat, Kobo] Autoshutdown ( #5335 )
...
The methods used here will likely work on most embedded devices, which is why I put them in their own WakeupMgr interface/scheduler module, separate from Kobo.
See https://www.mobileread.com/forums/showthread.php?p=3886403#post3886403 for more context.
Fixes #3806 .
5 years ago
Robert
9163a85b3c
Messages in numberpicker widget ( #5353 )
...
See: #5342
5 years ago
Frans de Jonge
0dad707e2e
[fix, Kobo] Don't crash trying to sync frontlight with Nickel. ( #5361 )
...
When reasonably possible, the program should only crash in debug mode.
Adds a couple of extra unit tests to prevent regressions and adds docs.
Fixes <https://github.com/koreader/koreader/issues/5356 >.
5 years ago
Robert
deaa5d98e6
Disable show chapter markers when progress bar is hidden in footer ( #5345 )
5 years ago
Frans de Jonge
6c93415f67
[fix] Filesearcher crash on empty file attributes ( #5351 )
...
Fixes <https://github.com/koreader/koreader/issues/5343 >.
5 years ago
Frans de Jonge
ed4396821f
[fix] ReadSettings Inverse reading order ( #5350 )
...
`self.inverse_reading_order == nil and G_reader_settings:has("inverse_reading_order")` could easily be false, which would then incorrectly turn the setting off.
Fixes <https://github.com/koreader/koreader/issues/5346 >.
5 years ago
Frans de Jonge
07116b9898
[fix] Add keyboard layout to filemanager menu ( #5338 )
...
Overlooked in <https://github.com/koreader/koreader/pull/5318 >.
5 years ago
Frans de Jonge
59355200dc
[fix] PdfDocument: Hash collision ( #5337 )
...
A typo introduced in <https://github.com/koreader/koreader/pull/5282 >.
This might resolve <https://github.com/koreader/koreader/issues/5323 >, <https://github.com/koreader/koreader/issues/5327 >.
5 years ago
NiLuJe
a3acc667d6
[Kobo] Restart KOReader after a crash ( #5328 )
...
* Restart KOReader after a crash, after showing a fancy crash recap screen (our very own Gray Screen of Death!).
Kobo only, because it's possibly the platform where getting booted out
of KOReader is the most annoying.
Keeps track of crashes, to be able to give up after a while, in order to
avoid boot loops in the unlikely event of a crash loop on startup.
Adds a dev option to *always* exit KOReader after the crash screen.
5 years ago
Frans de Jonge
872c145f3a
[fix] ReaderGesture: Use getCurrentNetwork().ssid ( #5334 )
...
Otherwise ffi/util.template crashes on a table.
5 years ago
Frans de Jonge
17e437dbd0
[UX] Allow keyboard layout selection ( #5318 )
...
Fixes <https://github.com/koreader/koreader/issues/3998 >.
This isn't quite what I want but I've been letting this slip for
too long due to fancier keyboard interaction concepts.
5 years ago
Martín Fernández
20ebb55703
[Cervantes] Disable wifi before returning to QT, improved sysfs read ( #5326 )
5 years ago
NiLuJe
5f189beba9
You have failed this city! ( #5321 )
...
Switch two finger swipe icons to double arrows
5 years ago
Frans de Jonge
7019ff15bd
[chore] Drop SDL 1.2 ( #5324 )
...
Depends on https://github.com/koreader/koreader-base/pull/963 .
Also includes Initial import of <linux/rtc.h> related stuff https://github.com/koreader/koreader-base/pull/965
5 years ago
Robert
2d95a09e93
[UX] Option to show horizontal line separator in footer ( #5309 )
...
The separator is hidden by default.
5 years ago
Martín Fernández
cb2a3d9e72
Cervantes: Add back to stock reader ( #5316 )
5 years ago
Robert
ae50569055
Frontlight - Add checkbox use system settings ( #5307 )
...
See: https://github.com/koreader/koreader/issues/5205#issuecomment-526935357
Devices with `hasLightLevelFallback = true` (for now Android) has extra checkbutton `Use system settings`. Default unchecked.
5 years ago
Frans de Jonge
2cd9b50137
[Android] Don't ship Noto ( #5310 )
...
Follow-up to <https://github.com/koreader/koreader/pull/5252 >. This greatly reduces the Android package size.
See discussion in <https://github.com/koreader/koreader/pull/5264#issuecomment-525517001 >.
5 years ago
NiLuJe
d66cf7ab61
[fix] Allow setting a fine-tuned font size as default ( #5306 )
...
And a couple bugfix this unearthed:
* Always set the default as the *current* value, no matter what (by chance, this was not an issue for margins).
* Don't crash on the hold gesture in the -/+ buttons for the horizontal margins (regression since #5303 ).
5 years ago
Frans de Jonge
b2554ba5da
[fix] Prevent crash when no page boxes ( #5289 )
...
Can occur with invalid page numbers, for example by changing the font size in a reflowable MuPDF document.
Discussion in <https://github.com/koreader/koreader/pull/5282#issuecomment-526842921 >.
5 years ago
Frans de Jonge
49589901b1
[fix] Let UIManager handle suspend logic ( #5304 )
...
See <https://github.com/koreader/koreader/issues/2431#issuecomment-526925910 >.
Supersedes <https://github.com/koreader/koreader/pull/5302 >.
5 years ago
Frans de Jonge
4cdc3ab99b
[feat, plugin] Add AutoTurn ( #5295 )
...
Fixes <https://github.com/koreader/koreader/issues/3019 >.
5 years ago
Robert
b038fa3046
[UX] Add fine tune buttons to horizontal margins ( #5303 )
...
Similar to top and bottom margins I add fine tune buttons to L/R margins.
5 years ago
Frans de Jonge
1b17ce8ba0
[fix, Kobo] Save frontlight state on shutdown after suspend ( #5305 )
...
Fixes <https://github.com/koreader/koreader/issues/5292 >.
5 years ago
Frans de Jonge
621f36b4a9
[fix] GetText: guard against empty strings in translation ( #5301 )
...
Fixes <https://github.com/koreader/koreader/issues/5293 >.
5 years ago
Robert
d7d99d8b8b
New memory icon for footer ( #5300 )
...
See: https://github.com/koreader/koreader/pull/5203#issuecomment-525849264
Old memory icon: ⌨
New: ≡
5 years ago
Frans de Jonge
0b62fc56ee
[doc] Add NumberPickerWidget developer docs ( #5298 )
5 years ago
Robert
3f3443b2e2
[UX] Reorganize tap corner menu in Gesture Manager ( #5294 )
...
Reorganize submenu tap corner like other submenus
Settings -> Tap and gestures -> Gesture manager -> Tap corner
5 years ago
Frans de Jonge
bc2412a67a
[doc] Convert koptinterface comments to LDoc format ( #5290 )
5 years ago
Frans de Jonge
37bab4fe89
[fix] Pass plain link to link:onGotoLink ( #5286 )
...
Internal links carry more baggage than external ones.
See <https://github.com/koreader/koreader/pull/5282#issuecomment-526813719 >.
5 years ago
Frans de Jonge
258b13d344
[fix] Fallback in case of missing HOME variable
5 years ago
Frans de Jonge
860759cd48
Support loading GUI fonts from any known folder
5 years ago
Frans de Jonge
418aa1e5d6
Cache fontlist
5 years ago
Frans de Jonge
a47b3b1a5b
[doc] Add internal documentation references ( #5285 )
...
Also some minor grammatical fixes.
5 years ago
Frans de Jonge
f1f6eebce0
[feat] Add MuPDF EPUB/FB2 dynamic font size ( #5282 )
...
Closes #4368 .
5 years ago
Frans de Jonge
f6270278aa
[feat] Implement fulltext search direction ( #5283 )
...
Closes <https://github.com/koreader/koreader/issues/5054 >.
5 years ago
Frans de Jonge
ac16c8d547
[UX] Treat inverse_reading_order as a proper setting ( #5284 )
...
This is supported by ReaderPaging and ReaderRolling, but the menu entry was only shown in ReaderPaging.
Hold now sets the global default.
Fixes <https://github.com/koreader/koreader/issues/4983 >.
Fixes <https://github.com/koreader/koreader/issues/4089 >.
5 years ago
Frans de Jonge
cfa73be940
[feat, Kobo] Implement shutdown from suspend ( #5280 )
...
This allows to shutdown straight from suspend just like Nickel.
Fixes <https://github.com/koreader/koreader/issues/2431 >.
5 years ago
Frans de Jonge
dd4bfb0a45
[UX] Ignore page flipping toggle while bookmark flipping ( #5276 )
...
See https://github.com/koreader/koreader/issues/5265#issuecomment-525626930
5 years ago
Frans de Jonge
2104bb6f98
[fix] Distinguish bookmark/page flipping in menu ( #5266 )
...
Fixes <https://github.com/koreader/koreader/issues/5265 >.
5 years ago
Frans de Jonge
cddca1a5b5
[fix] Remove gettext util dependency ( #5270 )
...
A simple `string.gmatch()` should do the trick here, which avoids the need for refactoring.
Fixes <https://github.com/koreader/koreader/issues/5269 >.
5 years ago
Frans de Jonge
be87fb27a0
[chore] Convert a couple more todos ( #5267 )
...
Cf. <https://github.com/koreader/koreader/pull/5244 >.
Also update check.
5 years ago
Frans de Jonge
f3c3989b7f
[chore] readertypeset: normalize string indentation
...
Same as <ece884a368/frontend/ui/widget/configdialog.lua (L1015-L1019)
>.
5 years ago
Frans de Jonge
3ab51b1f85
[spec] Test all gettext codepaths & support language with no plurals ( #5260 )
5 years ago
Frans de Jonge
06d26ed13e
[doc] gettext developer docs
5 years ago