Giter VIP home page Giter VIP logo

Comments (5)

fluks avatar fluks commented on June 23, 2024

Commit dabac78 somewhat improved the situation.

from fin-spell.

wapsi avatar wapsi commented on June 23, 2024

Is the commit dabac78 already in the 0.6.0 version which can be downloaded from the Firefox's AddOn site? Because it still hilights the word even I haven't finished to write the word?

Could there be some kind of solution that checks (by using regex) that there must be space or some special character after the word (other than A-Ö/a-ö, like . , \n 0-9 and so on) and only then it checks the spelling of the word? And maybe if the cursor is moved to somewhere else within the written text it checks the last word even there isn't any special character found after that?

from fin-spell.

fluks avatar fluks commented on June 23, 2024

Is the commit dabac78 already in the 0.6.0 version which can be downloaded from the Firefox's AddOn site? Because it still hilights the word even I haven't finished to write the word?

Yes, it is. I think you misunderstood what this issue is about. It's not really about whether or not to highlight the current word under cursor but efficiency of the code. I would like to send only the current word to libvoikko and highlight only that word, leaving the rest as is. Now the situation is that all the text is sent to libvoikko and all the text is highlighted again when a key is pressed.

Highlighting or not the word you are writing is a different issue and I haven't thought about it. This issue does affect it too though.

Could there be some kind of solution that checks (by using regex) that there must be space or some special character after the word (other than A-Ö/a-ö, like . , \n 0-9 and so on) and only then it checks the spelling of the word? And maybe if the cursor is moved to somewhere else within the written text it checks the last word even there isn't any special character found after that?

You could find an algorithm, but see the answer for the previous question. It's not enough to check the last word because you can change a word anywhere else in the text other than in the end. Maybe the last word under the cursor once it's moved or at onblur event.

I guess you haven't experienced slowing down the spellchecking? It probably requires 1000s of words depending on the CPU.

from fin-spell.

wapsi avatar wapsi commented on June 23, 2024

Maybe the last word under the cursor once it's moved or at onblur event.

I think this is the one I was looking for. Once the cursor has "left" a word behind (either by moving the cursor with mouse or by hitting space or . or , and so on.) it triggers the spell checking for that word?

And yes, you are correct. This issue is not about that. Should I create a separate issue about this?

from fin-spell.

fluks avatar fluks commented on June 23, 2024

And yes, you are correct. This issue is not about that. Should I create a separate issue about this?

Yes.

I think it might be possible to fix your issue without fixing this even.

from fin-spell.

Related Issues (11)

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.