Giter Club home page Giter Club logo

Comments (10)

rdoeffinger avatar rdoeffinger commented on June 18, 2024

I think that would be really annoying if it switched back and forth between languages while typing if it's a prefix appearing a lot in both languages. Especially when it only saves a single button press it seems to me there is high risk that will be an overall usability decrease.

from dictionary.

Heineken avatar Heineken commented on June 18, 2024

If it appears in both language then there is no need to switch. As proposed, just in case the search term is not found in the left language. There cannot be a case where the a term is not found in English and then found after adding one or more letters.

from dictionary.

rdoeffinger avatar rdoeffinger commented on June 18, 2024

I thought of "found" as in "exact match", not "there are words with that prefix".
Yes, with the latter definition this might work well enough. Not entirely sure about the confusion factor though.

from dictionary.

Heineken avatar Heineken commented on June 18, 2024

If this behaviour was optional and non-standard, I'd have to blame myself for being confused after activating it.

from dictionary.

rdoeffinger avatar rdoeffinger commented on June 18, 2024

I have a strong preference for adding features that don't need to go behind an option. Among other things because a large number of people will never notice them, but also because it means adding new strings that probably won't get translated any time soon and will stick out like a sore thumb :) .

from dictionary.

Heineken avatar Heineken commented on June 18, 2024

OK, that makes sense.

from dictionary.

rdoeffinger avatar rdoeffinger commented on June 18, 2024

Btw when looking up multiple words the search actually does work as a filter.
However I think there is some weird behaviour in that mode and it is a bit slow, so I don't really want the code to rely too much on it.
I also just added some code that when a word is shared from another application it searches all dictionaries and indices for a best match. If it works well (which I am not too sure about), this might be one approach to extend as well.
It is likely that either way the choice will be between real-time updates or more intelligence though so any improvements here will probably involve some UI/usability challenges.

from dictionary.

Heineken avatar Heineken commented on June 18, 2024

What is a "best match"? If it doesn't search for similar words the search term matches or not, right?
I didn't understand your last sentence.

from dictionary.

rdoeffinger avatar rdoeffinger commented on June 18, 2024

I haven't decided what "best match" will mean long-term, currently it means:

  • if there is one or more exact matches (there could be many dictionaries containing that word, especially as the search is done without distinguishing accents etc) the first dictionary in the order as configured in the dictionary manager is used.
  • if there is no exact match, the best prefix match (first n characters matching) is used, if at least 3 characters match.

With the last sentence I (mostly) meant: searching all dictionaries this way takes quite some time. So if I were to add this method of searching, it probably would not be possible to always show the latest match while typing like the app currently does.

from dictionary.

Heineken avatar Heineken commented on June 18, 2024
  1. OK, sounds reasonable. Could the search be more selective if accents are given and more general if not?
  2. I also assume multiple lookup will take some time. Hence that shouldn't be the default action on startup for the clipboard content as it is in the PONS/Langenscheidt app.
  3. I wonder in which scenario a search term can be "sent" to QuickDic. For me it's usually copying a word from a website.

from dictionary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.