Commit Graph

9345 Commits

Author SHA1 Message Date
zwim
d7c63edca6 Random optimizations (#9657) 2022-10-28 07:51:27 +02:00
poire-z
e72211a5bf bump base: xtext, cre, ffi, harfbuzz (#9696)
Includes:
- Update to HarfBuzz 5.3.1, libffi 3.4.4
- LPeg: Minor cosmetic tweaks
- cre.cpp: add cre.softHyphenateText(lang, text)
- xtext: properly support soft-hyphens
- xtext: option to allow limiting usage of soft-hyphens
- xtext: better ellipsis support with Arabic text
- ffi: Add fflush to posix_h
- fb_mxcfb: Don't wraparound update markers until UINT32_MAX
2022-10-27 22:57:16 +02:00
zwim
31b16ba3e1 UIManager: get rid of self._running and self._run_forever (#9669) 2022-10-27 22:08:38 +02:00
zwim
88add4ed6f [spec] _task_queue has to be sorted! (#9694) 2022-10-27 21:14:25 +02:00
hius07
d37803a8e7 Dispatcher: preserve profile name, show actions count (#9682)
(1) Preserve profile name when selecting the "Nothing" action.
(2) Show number of actions instead of "Many".
2022-10-27 14:29:50 +02:00
Dylan Calvin
07be320722 [plugin] OPDS: Add stream from page (#9681) 2022-10-26 11:31:16 +02:00
Martín Fernández
3530aef891 exporter.koplugin: send the right mimetype when sharing text. (#9194)
Add an option to send title too. Currently unused.
2022-10-26 11:18:27 +02:00
zwim
db8e2a9403 [spec] Get rid of argc in the _task_queue (#9684)
argc was eliminated in #9624

Thanks to @hius07  https://github.com/koreader/koreader/pull/9680#issuecomment-1290440793

Plus a minor change in the scheduling test, so that the _task_queue is not filled only from one end.
2022-10-25 21:55:22 +02:00
weijiuqiao
ad89742e9b Keyvaluepage: better alignment (#9672) 2022-10-25 21:50:40 +02:00
hius07
1d9c81de6e ScrollableContainer: fix 'argc' (#9680) 2022-10-25 14:51:14 -04:00
Roygbyte
724db87755 ButtonDialog: add documentation about layout (#9505) 2022-10-25 13:50:21 +02:00
sonix-github
eb56948fac Keyboard: add Slovak virtual keyboard (#9656) 2022-10-25 13:44:19 +02:00
zwim
dc2cc5cba2 AutoDim: close trapper widget explicitly (#9675) 2022-10-25 13:42:21 +02:00
poire-z
48eb02318d Dispatcher: avoid multiple cre rerenderings when many settings changed (#9651)
When a gesture/profile was updating multiple cre settings,
each setting handler would emit UpdatePos which each would
force a re-rendering.
When this might be happening, postpone the rerendering
until all are set.
Needs some bit of refactoring to the events at play:
introduce "DocumentRerendered" event, and use it where
we used "UpdatePos" or "UpdateToc" to mean exactly that.
2022-10-25 13:16:01 +02:00
hius07
d1abbbfdd8 Document settings submenu: add Save as default (#9643) 2022-10-25 12:34:23 +02:00
hius07
b8d9944a07 Profiles: optional registration in Dispatcher (#9623) 2022-10-25 12:29:22 +02:00
weijiuqiao
6bd7dfdf41 Vocabulary builder: add "Open..." to Dispatcher (#9634)
So it can be called from a gesture.
Also accommodate reset all in reversed order.
2022-10-25 12:27:07 +02:00
weijiuqiao
edf7cc9a61 Vocabulary builder: support extracting context from pdfs (#9622)
Move getSelectedWordContext(), now document specific,
from ReaderHighlight into each document module.
2022-10-25 12:23:18 +02:00
weijiuqiao
58613d66e7 UI font fallbacks: use bold fonts if present for bold (#9621) 2022-10-25 12:18:46 +02:00
hius07
4d4b04359c ReadHistory: refactoring with binary search (#9603)
Get rid of indexing and sorting, reduce flushing.
2022-10-25 12:15:59 +02:00
NiLuJe
54fae2987e Support Android AArch64 (#9645)
c.f., https://github.com/koreader/koreader-base/pull/1540 & https://github.com/koreader/android-luajit-launcher/pull/390
2022-10-25 01:54:18 +02:00
NiLuJe
f04beb157b Bump base
https://github.com/koreader/koreader-base/pull/1541
https://github.com/koreader/koreader-base/pull/1539
2022-10-25 01:47:01 +02:00
NiLuJe
82b5f64178 time: Fix another subtle FP issue in split_s_us
The us part wasn't actually truncated properly.
2022-10-25 01:47:01 +02:00
NiLuJe
318d0e0ff0 UIManager: Modernize commented out debugging code
If you've ever enabled the main loop debugging, you'll know that
actually dumping the full window stack was *hilarious*.
Just print table counts, it's often good enough to debug what's
happening in the exceedingly rare cases you need this ;).
Also, it'll actually be readable, unlike the previous insanity ^^.
2022-10-25 01:47:01 +02:00
NiLuJe
390c875c80 Fix: key_events cannot be nil anymore since #9586 2022-10-25 01:47:01 +02:00
NiLuJe
d2ac2ca6e7 Cleanup: Remove unused onAnyKeyPressed handlers
And simplify the few we do catch by using aliases instead of duplicated
functions;).
2022-10-25 01:47:01 +02:00
NiLuJe
78381c3afa ScreenSaverWidget: Actually enable the onAnyKeyPressed handler
Which allows us to exit the screensaver on, well, any key press ;o).
2022-10-25 01:47:01 +02:00
NiLuJe
854cbe9f94 Kobo: Unbreak frontlight toggle for some specific values
Because of floating point computery math stuff.

Regression since #9609
c.f., https://github.com/koreader/koreader/pull/9609#issuecomment-1288187080
2022-10-25 01:47:01 +02:00
Martín Fdez
ee35257f99 update metadata & translations v2022.10 2022-10-23 10:26:20 +02:00
Martín Fdez
17246f0534 fix update-metadata script 2022-10-23 10:26:20 +02:00
Frans de Jonge
6139aab167 Update translations for 2022.10 (#9670) 2022-10-23 09:26:04 +02:00
poire-z
3dbcccb1a8 TextViewer: correct keyboard layout after long-press on Find (#9668) 2022-10-23 09:21:11 +02:00
hius07
e3fd612518 ConfigDialog: fix a bug with default values (#9666) 2022-10-22 07:28:43 -04:00
hius07
60a16c7e00 configdialog: fix bug with default values (#9662) 2022-10-21 14:33:07 -04:00
weijiuqiao
bb03cf7310 Chinese keyboard: fix harmless typo (#9633) 2022-10-20 21:15:54 +02:00
Benoit Pierre
1d6f4acad0 CoverBrowser: fix some button callback overrides (#9647)
Broken since b0eb0ce0: the custom callbacks for the "Reset settings"
& "Book information" buttons are not being called anymore because
patching those is done to early (before instead of after creating
the new modified dialog).
2022-10-20 20:53:50 +02:00
weijiuqiao
effddbc1ee zh_keyboard: make number pad symbol mode (#9654)
This PR makes zh_keyboard's number pad symbol mode instead of shift mode, so that numbers are shown when the keyboard is called expecting numeral input.
2022-10-20 19:37:22 +02:00
sonix-github
ac79da05f4 [plugin] AutoStandby: Make "Update" string translatable (#9655) 2022-10-20 19:35:09 +02:00
bigdale123
cda419dd7a OPDS-PS: Fix hardcoded namespace in count (#9650)
Turns out the namespace is dynamic, so, just look for ':count' and hope there won't be any conflicts ;).
2022-10-20 16:45:05 +02:00
zwim
dbafcb0311 UnitTests: Nits and misspellings (#9629) 2022-10-18 15:56:57 +02:00
NiLuJe
23c410344b UIManager: Minor code cleanup (#9641)
* Remove a check made redundant by #9617
* Bump base (https://github.com/koreader/koreader-base/pull/1538)
2022-10-16 01:43:47 +02:00
NiLuJe
741562e84c Cleanup: Use Lua's native setvbuf wrapper instead of reinventing the wheel (#9636)
Sidenote for the crazy win32 people out there: it doesn't has a concept
of line-buffering, so native win32 should use "no" here, but I'm
*hoping* MinGW transparently handles this nonsense.
2022-10-14 18:44:36 +02:00
NiLuJe
d9eb6e9717 Kobo: Always use open/write/close for sysfs writes (#9635)
Also simplifies a few UIManager log messages (re: https://github.com/koreader/koreader-base/pull/1537)
2022-10-14 01:50:03 +02:00
hius07
2a354912f4 buttondialogtitle: align upper borders (#9631) 2022-10-13 07:12:53 -04:00
sp4ke
f3620b6d1f Exporter plugin: allow adding book md5 checksum when exporting highlights (#9610)
This allows interoperability between different readers who want to
import highlights on different devices/file systems. All that is
needed then to import highlights is to match the local books and
their path based on the checksum.
2022-10-12 23:50:44 +02:00
weijiuqiao
7fc803ffee Vocabulary builder: supports review in reverse order (#9605) 2022-10-12 23:45:29 +02:00
weijiuqiao
ae8156ff9e Vietnamese keyboard: TELEX method backed by generic_ime 2022-10-12 23:41:48 +02:00
weijiuqiao
6a5a13dfc8 Generic keyboard IME bump: supports auto seperation when code is unique 2022-10-12 23:41:48 +02:00
yparitcher
e424fcf5de Dispatcher: Fix subtle bug with modified items being added twice to the sort index (#9628)
Discovered by @poire-z in https://github.com/koreader/koreader/pull/9531#issuecomment-1274839234
2022-10-12 23:17:10 +02:00
NiLuJe
da65ac8b02 Cleanup various varargs shenanigans (#9624)
* Iterate over varargs directly via select if possible
* Use table.pack otherwise (https://github.com/koreader/koreader-base/pull/1535).
* This allows us to simplify a few Logger calls, as logger now handles nil values.
2022-10-12 19:59:48 +02:00