Commit Graph

8653 Commits (61d02923e91b2f384fc8dee46628c4dabaf9f66f)
 

Author SHA1 Message Date
NiLuJe 48da545e32 Kobo/Elipsa: More fine-grained control over the amount of online CPU
cores

* Only keep a single core online most of the time.
* Device: Add an enableCPUCores method to allow controlling the amount of
  online CPU cores.
* Move the initial core onlining setup to Kobo:init, instead of the startup script.
* Enable two CPU cores while hinting new (e.g., cache miss) pages in PDF land.
* Enable two CPU cores while processing book metadata.
* Drive-by fix to isolate the DocCache pressure check to KoptInterface
  and actually apply it when it matters most (e.g., k2pdfopt stuff).
3 years ago
NiLuJe 65abac9431 TextBoxWidget: Fix getSize when recycling an instance.
* Make sure we have a BB to measure in getSize, in case the instance is
  recycled. (fix #8241)

* nil `line_num_to_image` early in `:free`

* Hide the _renderText calls that are used across the whole module to
  simply update the text layout & instantiate the inner bb behind a
  wrapper function with a slightly less obscure name.
3 years ago
hius07 3a01ab7899
fontlist: disable/enable some Kindle fonts (#8233)
Some Kindle system fonts cannot be registered and cause errors in crash.log.
Disabling them, and enabling one good font.
Tested on PW4, Voyage, Oasis.

Also https://github.com/koreader/koreader/issues/8228#issuecomment-922335608.
3 years ago
hius07 ed68445626
crash.log: write plugin regular information only in debug mode (#8230)
* Update pluginloader.lua

* Update filemanager.lua

* Update readerui.lua
3 years ago
hius07 859327dea5
Input dialogs: keep size in rotation (#8223) 3 years ago
roygbyte a4763a613f
[chore] Newsdownloader: Fix more luacheck warnings (#8220) 3 years ago
hius07 5b049a5a82
Help text fixes (#8217)
* Update css_tweaks.lua

* Update readersearch.lua
3 years ago
Frans de Jonge b48cce7fa0
Dispatcher: adjust "screen and lights" to style guide (#8215)
Same as "Taps and gestures"
3 years ago
roygbyte 0af6500c88
[chore] Newsdownloader: Fix warnings from luacheck (#8214)
* Fix warnings from luacheck

* Fix punctuation and casing in comments.
3 years ago
roygbyte b0ceab5b20
[plugin] NewsDownloader: fix XML, better error messages, change default feed, and more (#8145)
* Fix XML, introduce some better error messages, etc.

See roygbyte/newsdownloader.koplugin for more info

* Fix feed attribute saving snafu; Change menu labels; etc.

Also:
- Change default feed
- Change "remove" label to "delete"
- Hide menu after feed sync
3 years ago
hius07 e934a4ad67 Refresh menu table: more remove unused 3 years ago
hius07 aa210e96ce Refresh menu table: remove unused 3 years ago
hius07 5c62c11aa8 TimeWidget: keep "colon space" size 3 years ago
hius07 28c132a740 DateWidget: keep "dash space" size 3 years ago
hius07 054d94a560 Refresh menu custom settings: keep size in rotation 3 years ago
hius07 1dd50381d0 ReaderTypography: Hyphenation Limits keep size in rotation 3 years ago
hius07 11aca120a9 ConfigDialog: keep size in rotation 3 years ago
hius07 bdccc7de07 DateWidget: keep size in rotation 3 years ago
hius07 a321bade2b TimeWidget: keep size in rotation 3 years ago
hius07 611e576b7e DoubleSpinWidget: keep size in rotation 3 years ago
hius07 66156084e6 NumberPickerWidget: keep size in rotation 3 years ago
yparitcher c40874d300 book shortcuts plugin 3 years ago
yparitcher 1f8574cf7e Dispatcher:removeAction()
Gestures: use sub_item_table_func to allow the menu to refresh on change
3 years ago
yparitcher f5dc7b4539 Dispatcher: Revamp sections and item order 3 years ago
roygbyte 024fd52781
Fix OPDS plugin bug wherein Arxiv PDF document acquisition URLs are not given a callback to download (#8210)
* Add comments to a few functions

* Fix bug associated with arxiv catalog.

See comments in genItemTableFromCatalog. Basically, though, the bug
was related to the checking of the acquisition urls. Arxiv only has
PDFs available to download, and the block wasn't catching these with
its existing logic. By adding another clause to look for PDF link
types, and fixing href values that were missing the PDF suffix, we can
successfully download PDFs from Arxiv.
3 years ago
NiLuJe ca1d0efadc
Bump base (#8208)
https://github.com/koreader/koreader-base/pull/1409
3 years ago
NiLuJe 9a7450ea5f Statistics: Guard against ReaderView's state.page being nil
For... whatever reason? I can't really see that happening, but, oh,
well.

Screensaver already guards against it, so, who knows.

Fix #8201
3 years ago
NiLuJe 3955f83019 DocCache: Only compute cache size once
Minor refinement to #8198
3 years ago
hius07 f6020a7260
Readerhighlight: manage actions (#8199)
Discussion in #6409.

Highlight action renamed to Long-press on text and moved from Gear - Document to Gear - Taps and gestures.

Added action Do nothing.
Removed menu item Typeset - Highlighting - Allow highlighting.

Fixed untranslated strings in the Cycle highlight action notification.

Long-press on images always opens ImageViewer. Closes #6409.
3 years ago
Mel-kior 9e55e4da3d Fix syntax 3 years ago
Mel-kior 3001efb85f Fix quote and text 3 years ago
Mel-kior 224e167309 Add passwordless wifi support 3 years ago
hius07 dd1b10332e Readersearch: reduce icon size in search dialog 3 years ago
hius07 07c8b0029e Buttontable: pass icon size to the button 3 years ago
hius07 3b6fd8a1d5 Button: default icon size 3 years ago
hius07 e16d36d5da
Readersearch: add button to recall search input dialog (#8190) 3 years ago
NiLuJe 18687e4666
DocCache: Allow disabling it (again) (#8198)
* Ensure DocCache will always have at least one slot
Fix #8181
3 years ago
poire-z 1dc8f8cda9
bump crengine: CSS: parse/skip at-rules (#8197)
Includes:
- XML parsing: strip leading \n in PRE and TEXTAREA
- Text: allow wrap on any space in "white-space: pre"
- initTableRendMethods(): avoid expensive processing
- Tables: fix handling of whitespace between nodes
- ldomDocument: store screen size
- CSS: more robust skipping of invalid content
- CSS: parse/skip at-rules, support @media, @supports
- CSS: handle media condition with @import and <link/>
- CSS: fix parsing of "font-family:inherit!important"
- LDOMNameIdMap::deserialize(): fix when >1024 items
3 years ago
poire-z 084ae1509d
Style tweaks: add a few ruby specific tweaks (#8189) 3 years ago
hius07 ecf378067d
Readerdevicestatus: optimize code (#8194)
Correct read settings.
Standardize showing values in menu (a colon).
SpinWidget and DoubleSpinWidget default widths.
3 years ago
hius07 0283c44ff7
Page overlap: long-press to set as default (#8180)
Also deduplicate code out of ReaderPaging and ReaderRolling,
now in ReaderView and a specific menu module.
3 years ago
hius07 3a677f40de
Spinwidget: update default width (#8182) 3 years ago
hius07 ab4e27908b
Standardize: long-press/hold to long-press (#8185)
* Gestures: standardize hold to long-press

* Common settings menu: standardize hold to long-press

* Readerstyletweak: standardize hold to long-press

* Readersearch: standardize hold to long-press
3 years ago
Frans de Jonge 71cea5a9f6
F-Droid description: tame expectations (#8178)
Same as  #8177.
3 years ago
NiLuJe 90d4d22ba6
ReaderBookmark:renameBookmark: Better nil guard (#8176)
When matching a highlight to a bookmark *really* fails.

(Noticed in the log from #8175)
3 years ago
Martín Fernández cf1248393c
Readme: Tame down expectations (#8177)
Remove evernote & zsync mentions
also removing `online` as `over-the-air` is self-explanatory :)
3 years ago
hius07 6f612a1c41
Readerhighlight: allow translation (#8174)
Show translatable title of the style.
https://www.mobileread.com/forums/showthread.php?p=4151396#post4151396
3 years ago
NiLuJe acbf4b7a8c
Document: Round dimensions properly in getPageDimensions (#8170)
* Geom:transformByScale:
  * Apply the right scaling factor to the y axis
  * Round in a more sensible fashion (àla fz_round_rect, since we pretty much exclusively use it in a similar fashion).
* Bump base (https://github.com/koreader/koreader-base/pull/1407)
3 years ago
hius07 1a127633c2
InputDialog: add :addWidget(), use it for checkboxes (#8168)
Also: Text editor now closes its keyboard when calling Find
and Go to line (which open their own keyboards) to avoid
conflicts between multiple keyboards.
3 years ago
hius07 889c4489b7
Highlights style: long-press to set as default (#8166) 3 years ago