Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2016, 03:30 AM   #1
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,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
spell-checker French

Hi

I have been using for some years with LibreOfice and the Calibre Editor the following spell-checker dictionary downloaded from this site: (see on the left side of the link).
http://www.dicollecte.org/grammalecte/telecharger.php

The full name of the file is: lo-oo-ressources-linguistiques-fr-v5.6.oxt
It's frequently updated and up to now it's the most advanced opensource spell-checker tool in French.

I tried to install it just to realize that it did not seem to be working with Sigil (unless I did some mistake, which is quite possible..). As I can use it elsewhere, namely with the Calibre Editor, I just wished to signal it.

I know you have a lot of other priorities and it's probably more useful to break new ground (like for Epub3) than rushing to duplicate some functionalities we can find easily elsewhere.

Last edited by roger64; 05-27-2016 at 04:16 AM.
roger64 is offline   Reply With Quote
Old 05-27-2016, 08:17 AM   #2
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,687
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
AFAIK, Sigil uses its own spelling dictionaries and searches for them in the following locations:

Windows:

Code:
%LOCALAPPDATA%\sigil-ebook\sigil\hunspell_dictionaries

%PROGRAMFILES%\Sigil\hunspell_dictionaries
(These special folder names can be entered in the Windows Run dialog box.)

Linux:

Code:
~/.local/share/sigil-ebook/sigil/hunspell_dictionaries/

/usr/local/share/sigil/hunspell_dictionaries/
I.e., you'll have to check these folders for French spellcheck dictionaries and replace them with your preferred dictionaries.

If your preferred dictionary is GPL licensed, KevinH might even include them in one of the next builds, if you ask him for it.

D.
Doitsu is offline   Reply With Quote
Advert
Old 05-27-2016, 09:21 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,491
Karma: 5703586
Join Date: Nov 2009
Device: many
Yes an oxt is simply a zip with OOo extra pieces. So rename it to .zip and pull out the actual dictionary (both .aff and .dic files) and add them to your user dictionary location so Sigil can find them.

Last edited by KevinH; 05-27-2016 at 10:24 AM.
KevinH is offline   Reply With Quote
Old 05-27-2016, 03:58 PM   #4
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,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
With some additional help from Doitsu, done and working.

I can select now any of the four French dictionaries offered.

Thanks to both for your help and explanations.
roger64 is offline   Reply With Quote
Old 05-27-2016, 04:51 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If you are using my sigil-git package from the Arch Linux AUR, Sigil will use the *.aff and *.dic dictionaries installed in /usr/share/hunspell/
eschwartz is offline   Reply With Quote
Advert
Old 05-28-2016, 03:10 PM   #6
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,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
I do not have any folder named /usr/share/hunspell.

For me Sigil uses the four .aff and .dic files I put in the "hunspell dictionaries" folder of the Sigil preferences.

Last edited by roger64; 05-28-2016 at 03:16 PM.
roger64 is offline   Reply With Quote
Old 05-28-2016, 03:58 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,371
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by roger64 View Post
I do not have any folder named /usr/share/hunspell.
Then you didn't install some of the suggested packages that the sigil-git install specified. Like hunspell-(en|fr|es) and/or hyphen-(en|fr|es).

Quote:
Originally Posted by roger64 View Post
For me Sigil uses the four .aff and .dic files I put in the "hunspell dictionaries" folder of the Sigil preferences.
It will work both ways. Any system dictionaries installed in /usr/share/hunspell and /usr/share/hyphen will be available, as will any user dictionaries installed in the user's Sigil preferences location (~/.local/share/sigil-ebook/sigil/hunspell_dictionaries/).

eschwartz's sigil-git package does not use the source-included hunspell dictionaries (cmake -DINSTALL_BUNDLED_DICTS=0 option). The system hunspell dics (installable via pacman|yaourt) are made available to Sigil via the SIGIL_DICTIONARIES environment variable instead.

The hunspell_dictionaries folder in the user's Sigil preference folder is always included in the dictionary search path regardless. That's why it's still working for you.

Last edited by DiapDealer; 05-28-2016 at 04:03 PM.
DiapDealer is offline   Reply With Quote
Old 05-28-2016, 05:40 PM   #8
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,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by DiapDealer View Post
Then you didn't install some of the suggested packages that the sigil-git install specified. Like hunspell-(en|fr|es) and/or hyphen-(en|fr|es).


It will work both ways. Any system dictionaries installed in /usr/share/hunspell and /usr/share/hyphen will be available, as will any user dictionaries installed in the user's Sigil preferences location (~/.local/share/sigil-ebook/sigil/hunspell_dictionaries/).

eschwartz's sigil-git package does not use the source-included hunspell dictionaries (cmake -DINSTALL_BUNDLED_DICTS=0 option). The system hunspell dics (installable via pacman|yaourt) are made available to Sigil via the SIGIL_DICTIONARIES environment variable instead.

The hunspell_dictionaries folder in the user's Sigil preference folder is always included in the dictionary search path regardless. That's why it's still working for you.
Thanks for your info. I failed to see these informations and now I will install in /usr/share/hyphen the hyphenation files I did not know where to put.
roger64 is offline   Reply With Quote
Old 05-28-2016, 05:50 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,371
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
That said ... I'm not entirely certain that Sigil will actually implement the hyphen dictionaries. Kevin (or maybe eschwartz--who modified his sigil-git package to look to /usr/share/hyphen) might know better. Worse case is they get ignored. I've not experimented with them.
DiapDealer is offline   Reply With Quote
Old 05-28-2016, 06:54 PM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,491
Karma: 5703586
Join Date: Nov 2009
Device: many
the hyphenation were incorrectly added to the hunspell dictionary but they are actually encoded versions of the words and are not dictionary format. I fixed this but did not remove them as adding hyphenation to the viewer is on my to-do list eventually.
so they are just ignored.
KevinH is offline   Reply With Quote
Old 05-28-2016, 07:32 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,371
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Thanks, Kevin. I knew I remembered something about hyphenation dictionaries and "ignoring."
DiapDealer is offline   Reply With Quote
Old 05-28-2016, 11:34 PM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DiapDealer View Post
That said ... I'm not entirely certain that Sigil will actually implement the hyphen dictionaries. Kevin (or maybe eschwartz--who modified his sigil-git package to look to /usr/share/hyphen) might know better. Worse case is they get ignored. I've not experimented with them.
All I did was deduplicate "whatever Sigil uses" by relying on the system-installed hunspell dictionaries. Since Sigil still ships with hyphenation dictionaries (but currently does nothing with them, except plugins can use them I guess) my PKGBUILD makes sure to tell Sigil about those too.

@roger64,

The advantage of installing your French hunspell dictionaries into the system dictionaries is that ALL applications will see them.
And handily enough, the hunspell-fr in [extra] already contains the "modern" dictionary from that LO dictionary.
eschwartz is offline   Reply With Quote
Old 05-29-2016, 05:27 AM   #13
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,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by eschwartz View Post

@roger64,

The advantage of installing your French hunspell dictionaries into the system dictionaries is that ALL applications will see them.
And handily enough, the hunspell-fr in [extra] already contains the "modern" dictionary from that LO dictionary.
Indeed.

With Firefox, the Grammalecte extension is available to check orthograph, grammar, verbs, typography, etc. Its four dictionaries (now installed for me in Sigil) are eligible for choice. The "classic" one is the recommended choice for native French speakers and the "modern" one for others. See screenshot.

Grammalecte (with dictionaries) is also available for LibreOffice.
Attached Thumbnails
Click image for larger version

Name:	grammalecte.png
Views:	291
Size:	514.5 KB
ID:	148994  

Last edited by roger64; 05-29-2016 at 06:04 AM. Reason: native
roger64 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub spell checker drake7707 Reading and Management 12 10-06-2017 09:38 AM
Spell Checker window on top of Editor window Calibre-Fan Editor 3 01-30-2016 11:48 AM
spell checker & apostrophes BetterRed Sigil 4 04-18-2014 06:07 PM
Sigil Spell Checker Coming~ soon? Themus Sigil 49 12-11-2011 02:33 PM
Spell checker crutledge Sigil 31 12-29-2010 01:31 PM


All times are GMT -4. The time now is 11:35 PM.


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