Comments (5)
Commit dabac78 somewhat improved the situation.
from fin-spell.
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.
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.
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.
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)
- User set highlighting isn't used in sidebar
- div role="textbox" elements are not spell checked HOT 5
- Start using manifest v3 API
- Set spellcheck to false in the edited element HOT 1
- emsdk version in readme isn't found anymore as a precompiled package HOT 1
- Enlarge the textarea to always fill the sidebar HOT 2
- Read the word under mouse pointer when opening context menu without left mouse click
- Add option to enable/disable the spell checking by default HOT 9
- Add Päälle/Pois functionality in Firefox context menu HOT 12
- Do not spell check the word which is still under typing HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fin-spell.