![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
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 |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,598
Karma: 29709834
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 | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
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?
|
![]() |
![]() |
![]() |
#4 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,598
Karma: 29709834
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. |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,598
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,598
Karma: 29709834
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 |
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,598
Karma: 29709834
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. |
|
![]() |
![]() |
![]() |
#10 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,434
Karma: 5702578
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 |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,679
Karma: 23983815
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.
|
![]() |
![]() |
![]() |
#13 | ||||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,598
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() ![]() Quote:
Quote:
Quote:
![]() BR |
||||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] English Noun Frequency | DaltonST | Plugins | 46 | 02-26-2025 10:45 PM |
[Plugin] ACE - DAISY EPUB Accessibility Checker wrapper | Doitsu | Plugins | 37 | 07-15-2024 11:38 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 |