![]() |
[Plugin] Proselint - English style checker
1 Attachment(s)
Released: October 5, 2019
Current Version: "0.1.1" This plugin is a simple proselint-based style checker. System requirements: This plugin requires Sigil 0.9.5 or higher. Installation: 1. Select Manage Plugins from the Plugins menu and select Use Bundled Python, if it isn't already selected. 2. Click Add Plugin and select Proselint_v0.1.1.zip. This will install the Proselint plugin, which you can select via Plugins > Valdidation > Proselint. Settings: You can disable Proselint checks by editing .proselintrc, which is located in the proselint subfolder. If you have a Windows machine, you can use the following commands to display the proselint plugin subfolder:
For example, if you don't want Proselint to complain about 'very,' change the following entry from: Code:
"weasel_words.very" : trueCode:
"weasel_words.very" : false |
How can I add or remove an individual item - I tried editing a misc.py file by commenting out an entry and adding an additional one, they didn't seem to have any effect. The first continued to be reported, the second one wasn't reported.
BR |
Quote:
|
Quote:
So this one C:\_AppData\Sigil\Prefs\plugins\Proselint\proselin t\checks\archaism\misc.py as a simple test - begat was reported, woke wasn't. Spoiler:
|
Quote:
C:\Users\<your user name>\.cache\proselint you'll have to delete the cache folder after rule file updates. |
Quote:
BR |
Deleting the cache did the trick.
Is there a syntax spec for the rules in the misc.py files. Nothing leapt out at me at GitHub. I know it's python but... the rules themselves are collections of data. BR |
Quote:
|
Quote:
Couple of suggestions/requests would an option to check multiple/all files be possible, checking file by file doesn't make much sense to me. when an error flags a specific word or or phrase, would it be possible to select/highlight the word/phrase in the code - like the spell checker does, currently the insertion point is positioned to the beginning of the error, which is hard to see, I have to use ctrl+shift+→ to highlight what follows. BR |
Quote:
Quote:
|
That is correct. Sigil plugin is a file level api. A validation plugin should be able to move you to the exact file offset start of the error.
If this is done via a edit plugin, you can of course add a highlight css class and wrap a span around anything to highlight its contents to the user. Kevin |
Quote:
|
Quote:
Quote:
Quote:
Quote:
BR |
| All times are GMT -4. The time now is 08:44 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.