Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Project idea] Idea for new QuickScript - Add new words to aspell dictionary #67

Open
soegaard opened this issue Jan 23, 2022 · 5 comments

Comments

@soegaard
Copy link

Maybe a QuickScript could be used to add new words to a personal aspell dictionary?

racket/drracket#253

@Metaxal
Copy link
Owner

Metaxal commented Jan 24, 2022

That should be relatively easy to do indeed, since it's just a matter of adding a word at the end of a file, as per the given link.
I guess this tells us where the dictionary lives.

The simplest coder-side way to do it is to require that the user selects the word to add before invoking the quickscript, so as to obtain it via the str input argument of the script.
The most user-friendly is to look for the word, using move-position on the current editor, by adding the keyword argument #:editor ed to the arguments of the scripts (see here). Hyphens, underscores and such can make the matter tricky though, and may need validation by the user.

@soegaard
Copy link
Author

I think aspell works with both a standard dictionary as well a personal dictionary.
Invoking aspell with the right argument will reveal where the personal dictionary is [1].
I think it is okay just to append to the file, but aspell probably a command for adding words too.

[1] https://unix.stackexchange.com/questions/116283/how-can-i-export-my-aspell-dictionary

@Metaxal
Copy link
Owner

Metaxal commented Jan 25, 2022

Works with me too. It's just that I prefer to avoid system calls whenever possible (in particular for portability reasons), but otherwise I don't mind that much.

@rfindler
Copy link
Collaborator

rfindler commented Jan 25, 2022 via email

@soegaard
Copy link
Author

My idea was that a "add word to dictionary" QuickScript would be a nice project for someone new to Racket or QuickScript.
I think refactoring the framework is a different class of project :-)

/Jens Axel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants