[ReaderDictionary] Offer fuzzy search when dict query fails [to find a match] - #14343
Conversation
|
Fine with me. |
|
it's called consent @poire-z, get on with the times ;) "why not just do it?" why not just have fuzzy always on then? |
That's what I have set up - so I can't say why not :)
Complications... |
|
if I accidentally start a query (which happens more often that I am willing to admit), and get that prompt, I would surely want to cancel, so there are times where I'd like it to stop yes. |
|
I am also having fuzzy on at all times, but I would imagine if someone has it off, they might become mildly annoyed by these popups at every search. I would think about adding an option "Offer fuzzy search if nothing found" (or something like that) in the top menu settings, right next to the fuzzy search toggle itself. Grayed out if fuzzy search is on, of course, but otherwise available (as disabled by default?). |
|
When that happens to us, we just tap to cancel :) which one could still do at any point in this PR no ? |
|
but @mergen3107 that is exactly what is happening here, if no matches, we offer fuzzy, if your dict finds a match, you won't see the prompt. I sometimes try to cancel, but it is already too late, my fingering [speed] is not what it used to be ;) |
I am talking about when no results were found and the user wants no prompts whatsoever. Case: when you are a linguist and you know exactly what you are looking for. If you didn't find it, you want to start another exact word search immediately after that |
| UIManager:show(ConfirmBox:new{ | ||
| text = _("No results were found. Would you like to perform a fuzzy search?"), | ||
| ok_text = _("Search"), | ||
| ok_callback = function() | ||
| self:stardictLookup(word, dict_names, true, boxes, link, dict_close_callback) | ||
| end, | ||
| cancel_callback = lookupCancelled, | ||
| }) |
There was a problem hiding this comment.
There was a problem hiding this comment.
At first i thought, oh no, why didn’t i think of this? But now I’m wondering, but there is a keyboard to deal with now…
There was a problem hiding this comment.
The left is more consistent. Just shorten the hint text a bit.
No results. Retry as fuzzy search?
There was a problem hiding this comment.
(Just wondering: is this Window title "Fuzzy search" ok, for something that pops up when no results and we have not yet done a fuzzy search ? Shouldn't it be just "No results" ?)
Aren't you just describing a less efficient regular fuzzy search. ;-) Which does something similar, but without starting up, returning results and starting back up again. |
|
Nope. I am talking about
|
|
All I am saying is that this new feature needs to be guarded behind a setting, turned off by default. Otherwise people who got used to it will find it annoying :D Or you guys better have them come back and complain about it themselves anyway? |
|
On mobile atm, so can't answer all, but this seems to have gone from hypothetical to real pretty quick, name and shame, who is the alleged linguist? |
|
I've seen a couple on discord (Kindle Modding Community) and reddit. They were sharing linguistic-specific dictionaries :D with like, all forms and kinds for each word Lingvo-nerds |
|
I was bracing myself for the big reveal, but then i was slightly disappointed 😞. I think you might be giving agency to some imaginary “linguists” here, i’m happy to hear them complain first ;). In all seriousness, not getting results is unusual so is unlikely to be something that would annoy any wanna be linguist out there. |
|
what I would like to get to the bottom of, is why do you regard these "linguists" with such disdain and contempt? Surely you realise, someone is out there saying... look at those koreader nerds over there, writing their own app and all, could they be any nerdier? ;) We need to learn not to thrown stones from the confines of our own glass house... |
|
I know only 4 linguists in real life (none of them know about ereaders), and I have hard time talking to them (such an irony), maybe that's why I can't hide my feelings :D |
|
@poire-z ? |
|
I was thinking this morning, mmm... why didn't i add presets to this as well? Since it seems that is the correct path forward, look forward to it ;) |






what's new
lookupCancelled) to avoid code duplication and improve readability. This function is now used both when a lookup is interrupted quickly and when the user cancels the fuzzy search prompt.related issues
This change is