Harper integration for grammar checking
Note: Please also check if an issue already exists on this feature. (I did check the requests FAQ. (It would be easier to scan them if the body of each FAQ were folded away leaving a list of titles.) FYI I solved the "can we have names rather than hashes for file names" with a bash script that takes ToC.txt and creates ./$class/$layout/"$document_label" symlinks.)
- I sometimes makes grammatical errors that are spilled correctly
- I would like a grammar checker in NovelWriter.
- Would integration with https://github.com/Automattic/harper be possible?
-
- I've tried installing harper-ls in vim and then editing each chapter by hand, (which is why I created the ToC.txt symlink bash script.)
I would definitely like to integrate a grammar checker too, so any suggestions on that are of interest. I want to add support for modular text checker tools in general, but they are a bit further down the list.
* * I've tried installing harper-ls in vim and then editing each chapter by hand, (which is why I created the ToC.txt symlink bash script.)
FWIW, I've done a script to run a command on a file by its name in the content directory (if you know it already), or on the file matching the label search pattern. With new documents or labels you have to close and reopen the project to get ToC.txt updated.
So far, I'm happy with running grammar checks or the like from the command line.
I do plan to add a single file format for novelWriter, which mirrors the standard document formats out there like docx, odt and epub, etc. Basically a zip file with mimeinfo and meta info set.
This will of course interfere with tools accessing the internal file storage directly. However, I plan to keep the folder structure available as an option for "advanced use" or whatever, since it is needed for those that use git version control and suchlike.
With new documents or labels you have to close and reopen the project to get ToC.txt updated.
Yeah, the ToC.txt file is currently written on project close only. It isn't a heavy file to write, so I could move it to project save, which means it will be written on project autosave too.
In any case, having looked a bit at Harper, I think it is a very good candidate for integration. I do wonder how exactly to integrate it with the editor though.
The current implementation of the spell checker is a bit brute force and runs on a paragraph every time you press a key. I'm considering rewriting it as a pure background tool, which also makes it possible to inject more analysis in the pipeline.
Just wanted to give thumbs up for Harper. Works great and it would be great if it could be integrated somehow.
I plan to give it a try. I just don't know when I will get to it. At least not for 2.8.
Wanted to throw my name in the hat for this feature as well :) Github really needs a "me too!" button.
Thanks for creating and working on novelWriter. I'm neck deep in my current novel right now, using Libre Office. I'll be switching to novelWriter for my next one.