The `input_ignore_gsensor` setting sets `handleGyroEv` to be `voidEv` which skips the rotation fix in case the user wants to ignore the GSensor settings.
While language names are grammatically written with a lowercase letter in standard Bulgarian sentences, UI/UX conventions dictate that isolated list items, buttons, and dropdown options should start with a capital letter.
Also: minor revamp of the setting handling by having
onToggleFloatingPunctuation() accepting nil/true/false/0/1
and being the sole manager of self.floating_punctuation.
Fixes 2 cases where we could get stuck in an exepected state:
- if onHold would get us nothing to act on, we would stay stuck
in "hold" state (until a next hold) and taps for page turn
would not work
- if text selection would get us some text (ie. some punctuation)
that would be stripped to an empty string, we would just not
do the lookup, but the selection would stay: best to do that
lookup and get a "no result" window, that when closed would
do the normal cleanup.
Includes:
- CHM: improve Chinese encoding handling
- renderFinalBlock(): fix background color propagation among inlines
- first-letter: resets some CSS, ignore invisible, stop on <br/>
- CSS: support for pseudo element ::first-line
- CSS: add support for float/clear: inline-start/inline-end
- lvfntman, lvdrawbuf: add COLR v0 color font rendering support
Also add style tweaks to disable first-letter and first-line.
Adds in-definition search to DictQuickLookup relaying on MuPDF's word-matching implementation, uses tap handling for navigation by allowing temporary disable/restore of Tap events.
Due to changes to renderOptimizedPage(...) made by #15067, which was merged after #14954 was made, a regression was introduced that causes instability and even crashes on mobile devices and e-readers when Invert Document is enabled along with Reflow or Auto Straighten.
This PR fixes the regression and simplifies the drawContextPage(...) method.
Also increased the available range for the minimum width in the UI from 50% of the screen width to 90%, since with the fixed setting it could otherwise never get larger than 50%, but a wider size will be useful if only few and short items fill up less than 50% of the remaining space.