07-28-2018, 05:05 AM | #1 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
[Plugin] Proselint - English style checker
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" : true
Code:
"weasel_words.very" : false
Last edited by Doitsu; 10-05-2019 at 12:23 PM. Reason: Attached new version with minor updates |
09-19-2019, 09:02 PM | #2 |
null operator (he/him)
Posts: 20,954
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
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 |
Advert | |
|
09-20-2019, 01:09 AM | #3 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Please be more specific. Which of the python files in the misc folder did you edit and what did you change?
|
09-20-2019, 02:09 AM | #4 | |
null operator (he/him)
Posts: 20,954
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
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:
Last edited by BetterRed; 09-20-2019 at 02:12 AM. |
|
09-20-2019, 03:03 AM | #5 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
|
Advert | |
|
09-20-2019, 03:41 AM | #6 |
null operator (he/him)
Posts: 20,954
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
09-20-2019, 09:19 PM | #7 |
null operator (he/him)
Posts: 20,954
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
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 |
09-21-2019, 04:08 AM | #8 | |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
09-21-2019, 06:22 AM | #9 | |
null operator (he/him)
Posts: 20,954
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
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 Last edited by BetterRed; 09-21-2019 at 06:30 AM. |
|
09-21-2019, 06:37 AM | #10 | ||
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
|
||
09-21-2019, 08:29 AM | #11 |
Sigil Developer
Posts: 8,110
Karma: 5450184
Join Date: Nov 2009
Device: many
|
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 |
09-21-2019, 08:49 AM | #12 |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
FYI: the Proselint plugin is a validation plugin, and clicking a message will move the cursor to the beginning of the word or phrase that was flagged.
|
09-21-2019, 05:03 PM | #13 | ||||
null operator (he/him)
Posts: 20,954
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
Quote:
Quote:
BR |
||||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ACE - DAISY EPUB Accessibility Checker wrapper | Doitsu | Plugins | 37 | 07-15-2024 11:38 AM |
[GUI Plugin] English Noun Frequency | DaltonST | Plugins | 44 | 02-26-2023 09:33 AM |
URL Checker plugin | Doitsu | Plugins | 20 | 04-18-2021 03:13 PM |
Dictionary plugin in Sigil? For example Oxford-English Dictionary. | Rindr | Plugins | 2 | 03-04-2018 11:11 AM |