Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2019, 12:24 PM   #1
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
[Plugin] Grammalecte

Initial release: October 17, 2020
Current Version: "0.1.4.2"

This plugin is a simple Grammalecte-based grammar/spell checker for French ebooks. (Unlike the LibreOffice version, this plugin does not come with a GUI.)

Credits: This plugin uses the Grammalecte 1.12.2 Python library.

System requirements: 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 or greyed out.

2. Click Add Plugin and select Grammalecte_v0.1.4.1.zip. This will install the Grammalecte plugin, which you can select via Plugins > Validation > Grammalecte.

Note that this plugin will only check files highlighted in the Book Browser window. (If you want to check all files, click the Text folder.)

Settings:

This plugin doesn't come with a GUI, however, advanced users can customize it by adding/editing the following Grammalecte.json entries:

Spoiler:
Code:
apos:	True	Apostrophe typographique
bs:	True	Populaire
chim:	False	Chimie [!]
conf:	True	Confusions et faux-amis
conj:	True	Conjugaisons
date:	True	Validité des dates
esp:	True	Espaces surnuméraires
gn:	True	Accords (genre et nombre)
html:	True	?
idrule:	False	Identifiant des règles de contrôle [!]
imp:	True	Impératif
infi:	True	Infinitif
inte:	True	Interrogatif
latex:	True	?
liga:	False	Signaler ligatures typographiques
maj:	True	Majuscules
mapos:	False	Apostrophe manquante après lettres isolées [!]
mc:	False	Mots composés [!]
nbsp:	False	Espaces insécables
neg:	False	Adverbe de négation [!]
nf:	True	Normes françaises
num:	True	Nombres
ocr:	False	Erreurs de numérisation (OCR) [!]
pleo:	True	Pléonasmes
ppas:	True	Participes passés, adjectifs
redon1:	False	Répétitions dans le paragraphe [!]
redon2:	False	Répétitions dans la phrase [!]
sgpl:	True	Pluriels (locutions)
tab:	False	Tabulations surnuméraires
tu:	True	Traits d'union
typo:	True	Signes typographiques
unit:	True	Espaces insécables avant unités de mesure
virg:	True	Virgules
vmode:	True	Modes verbaux


For example, if you add the following entries to Grammalecte.json:

Code:
liga:	True,
idrule:	True,
Grammalecte will flag common ligatures and display rule ids.

Note that since Sigil comes with a much better spell checker, typos reported by Grammalecte are hidden by default. To display them, simply change:

Code:
  "error_types": [
    "lGrammarErrors"
  ]
to:

Code:
  "error_types": ["lGrammarErrors", "lSpellingErrors"]
(As with all JSON entries, each entry, except for the last one, needs to be terminated by a comma.)

The plugin will also check the Grammalecte website at least once a week for updates. If you'd rather manually update the plugin, please change the following entry:

Code:
  "update_check": true,
to:

Code:
  "update_check": false,
Since the French dictionaries bundled with Sigil are slightly outdated, French users also might want to download and install the latest French Hunspell dictionaries from the Grammalecte website.

License: GNU General Public License v3 (GPL-3)
Attached Files
File Type: zip Grammalecte_v0.1.4.2.zip (1.65 MB, 895 views)

Last edited by Doitsu; 10-17-2020 at 02:19 PM. Reason: Fixed minor bug in Grammalecte update checker
Doitsu is offline   Reply With Quote
Old 05-06-2019, 10:44 AM   #2
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Merci beaucoup pour cet excellent greffon.
roger64 is offline   Reply With Quote
Old 04-03-2020, 08:42 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Grammalecte-Version 1.8.0 warning

Since the latest Grammalecte version (1.8.0) was no longer compatible with this plugin, I've updated the plugin to add Grammalecte 1.8.0 support. Please download the latest version attached to the first post.

Last edited by Doitsu; 04-03-2020 at 11:45 AM.
Doitsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] QuickPrefsEdit - Edit plugin prefs json files. slowsmile Plugins 3 07-25-2018 08:14 PM
Goodread Perception Expander plugin not shown on plugin list (kobo h2o) www KOReader 4 09-28-2017 10:34 AM
Problem with my ScrambleEbook plugin and the Plugin Updater tool jackie_w Development 14 01-19-2017 10:49 PM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM


All times are GMT -4. The time now is 10:53 AM.


MobileRead.com is a privately owned, operated and funded community.