GithubHelp home page GithubHelp logo

blindpandas / spellcheck Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 4.0 11.69 MB

A multilingual spellchecker for NVDA

License: GNU General Public License v2.0

Python 99.96% Smarty 0.02% CSS 0.02%
a11y nvdasr spellcheck

spellcheck's Introduction

Information

functionality

the purpose of the addon is to find and correct the spelling errors quickly in a written text; additionally, you can create a list of words called personal dictionary; the words in which will be added to the suggestions list of the misspelled words.

usage

  • select some text using the normal selection keys, such as Control + a for selecting all.
  • press NVDA+Alt+s to invoke the addon interface.
  • the spellcheck will be done based on your current keyboard input.
  • alternatively, you can pick a language manually by pressing NVDA+ALT+SHIFT+L.
  • if there are no errors, a message will be announced indicating that there are no spelling mistakes.
  • in case there are errors, use right and left arrows to navigate among the misspelled words, and enter or down arrow to bring up the suggestion menu.
  • navigate among the suggestions with up and down arrow, then enter to pick a suggestion. The NVDA will announce the chosen suggestion for each error while navigating among them with left and right arrows.
  • while navigating among the errors with right and left arrows, you can press backspace to remove a chosen suggestion.
  • when done, press Control + r to replace the chosen suggestions in the selected text.
  • in addition to replacing the words, control+r also adds the word to the personal dictionary if you had picked that option.

personal dictionary

in the suggestions' menu, there is an option to add the word to the personal dictionary. The next time you look for a similar misspelling word, the personal dictionary words will appear in the suggestions list in addition to the normal dictionary. For instance, if you added the word "Fawaz" to the personal dictionary, the next time if you typed "Fawz", "Fawaz" would be among the given suggestions. You can remove any word that has been added to the personal dictionary by editing the file (language tag).dic which can be found in the spellcheck_dic folder in the user configuration folder of the NVDA. That is for the installed version appdata/roaming/nvda and for the portable version user config folder. the file name for the US English would be en_US.dic.

Ignore for this session

The option before last in the suggestion menu is ignore for this session. So if there is a word which raises a spelling error, and you want it to be left out from being spellchecked, you can use this choice (Ignore for this session). for example: if the text was "hello users of nvda, we hope you are having a wonderful time with nvda and its add-ons. Unquestionably, nvda is an amazing screen reader.", if you added nvda to ignore for this session, the number of errors will reduce from 4 to one, the remaining one would be "addons". In other words, all "nvda" will be removed from the list of errors for that session.

Support for Other languages

The addon comes with the English dictionary by default, which will be installed with your permission while installing the addon. The spell check will be done depending on the keyboard input language. However, if the dictionary hasn't been installed previously, NVDA will prompt you to install the dictionary of that language. Once you click yes, the dictionary will be installed, and you can spellcheck in that language now on. Additionally, you can press NVDA+ALT+SHIFT+L to bring up a list of languages where you can select a language manually and download the dictionary if it hasn't been downloaded previously or perform spell check in that language. press the same shortcut once more to return to the previous method, which is checking based on the keyboard input.

notes

  • closing the addon interface with the escape key will discard all the changes; nothing will be saved.
  • even if you only want to add words to the personal dictionary without replacing any text, you must press control+r for these words to be added to the personal dictionary.
  • you can change the launching addon hotkey (NVDA+alt+s), executing the action hotkey (control+r), and manual language selection hotkey (NVDA+Alt+SHIFT+L) from the input gestures dialog.

keyboard hotkeys

  • NVDA+alt+s to activate the addon. (Can be changed from the input gestures).
  • right and left arrows to navigate between the words with spelling errors.
  • enter or down-arrow to bring up the suggestion’s menu.
  • up and down arrow to navigate between suggestions.
  • enter to choose a suggestion.
  • backspace to remove a chosen suggestion.
  • control + c to copy the corrected text to the clipboard without replacing the selected text.
  • control + r to replace the selected suggestions in the text field. (Can be changed from input gestures).
  • escape to close both the suggestions menu and misspelled words menu.
  • NVDA+Alt+SHIFT+L to select a language manually (can be changed from input gestures).

spellcheck's People

Contributors

fawazar94 avatar mush42 avatar thequinbox avatar

Stargazers

 avatar  avatar

Watchers

 avatar

spellcheck's Issues

Addon trims whitespace from text

STR:

  1. Open notepad.
  2. Type "freind" without the quotes, and press enter.
  3. press control+a
  4. press alt+NVDA+s
  5. fix the spelling of the word friend.
  6. Press control+r
  7. Notice that the blank line you previously inserted is now gone.

Compatibility update.

Can you update this addon with the NVDA last version.
I was modified the manifest.ini file and spell check is running OK, but I think its nice to get an official update.

Keyboard command to copy the corrected text to the clipboard

In some editors based electron js or web apps when I press ctrl]r to apply the suggestions, the text is missing because the suggestions are inserted in other phrases or are duplicated.
To these cases, I prefer copy all the text with the suggestions corrected to the clipboard and then paste it to the editor again.

Keyboard command to spell the Suggestions

Can you add a keyboard command to spell the words suggested by the addon.

When I checking spell sometimes I have two words with similar sound, but I don't know wich choose.
At these times, I need to spell the words to know what is the correct word I need.

compatibility with NVDA 2022.1

hello,please make this addon compatible with new versions. i use it every day, and i miss it alot. if you can, i will be so, so grateful. thanks!

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.