Register Guidelines E-Books Search Today's Posts Mark Forums Read

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
Wizard
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: 4,543
Karma: 14554601
Join Date: Dec 2010
Device: Kindle PW2
[Plugin] Grammalecte

Initial release: May 28, 2019
Current Version: "0.1.1"

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.1.1 Python library.

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

2. Click Add Plugin and select Grammalecte_v0.1.0.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.)

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.1.zip (1.40 MB, 16 views)

Last edited by Doitsu; 05-28-2019 at 05:17 PM. Reason: New version attached
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,353
Karma: 2440249
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Merci beaucoup pour cet excellent greffon.
roger64 is online now   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:47 AM.


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