- correctly extract root-less dictionary archives (e.g. "reader.dict …"
dictionaries, close#15139), and avoid left-overs from a previous
extraction (to help in cases like #15448)
- fix extraction when a dictionary name contains characters that are
invalid for the target filesystem (e.g. the ":" in "Dictionnaire de
l'Académie Française: 8ème edition" on Kindle)
- improve download UI, including avoiding overlapping / out-of-order
dialogs ("Downloaded […]" dialog showing below the "Downloading" one)
Includes:
- TextLang, hyphenation: add Malayalam (ml)
- findText(): return list of ldomXRange instead of ldomWord
- findText(): implement tweakable enhanced search
- cre.cpp findText() and findAllText():
Updated to handle returned ldomXRange instead of ldomWord,
and added optional searchFlags params.
ReaderTypography: add Malayalam to the list of supported languages.
for pdf/djvu files the crosshairs continues to work freely as before. This commit introduces primaraly the methods _getAdjacentLineWordRolling and _getAdjacentWordRolling which handle finding the next word vertically and horizontally respectviely. We now handle hyphenated words much more predictably in _isSplitHyphenatedWord as we no longer require using heuristics.
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.
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.