Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-25-2024, 01:50 PM   #1
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 47
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
Lightbulb How to collect all "misspelled" words to later build a user-dictionary?

Hi, everybody!

I have an epub with many (more than 2000) náhuatl words, which obviously appear as misspelled in Spanish (the language of the book). So, my idea is to collect all those "mispelled" words in one list to add them later in a user-dictionary.


Is this possible within Sigil?

If not, can someone point me how to do it in bash or some other scripting language?


Just to let you know, it's not an issue to publish the book as it is, with red curly underlines for these words, since the epub readers won't notice. I need the user dictionary to check they are all written correctly because the book was OCRed.


Thanks in advance, and Merry Christmas!
celiapgt is offline   Reply With Quote
Old 12-25-2024, 02:54 PM   #2
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,760
Karma: 5706256
Join Date: Nov 2009
Device: many
You can use Sigil's Spellcheck Editor Tool to add words to a user dictionary/wordlist you specify.
Check out the Sigil User Guide for details.

If these words are in a language recognized by a an official language code you may want to consider wrapping them in span tags with the appropriate lang attribute set.

See the attached image and the Add to Dictionary button. There is a pulldown to select a wordlist to add to. I recommend creating one specific to your epub via Sigil Preferences, then selecting it with the pulldown in the Spellcheck Editor dialog instead of just the "default".
Attached Thumbnails
Click image for larger version

Name:	IMG_3245.png
Views:	115
Size:	147.7 KB
ID:	212669  

Last edited by KevinH; 12-25-2024 at 05:15 PM.
KevinH is offline   Reply With Quote
Advert
Old 12-25-2024, 05:41 PM   #3
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 47
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
Oh, thanks for responding, KevinH.

I was thinking in a bulk/massive way of doing it. There are over 2000 words, going one by one ... just to think in all the effort... (sorry to be lazy in this aspect ;D). Since the spellcheker tool has already recognized them, I was hoping to collect them in a flash.
celiapgt is offline   Reply With Quote
Old 12-25-2024, 06:16 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FWIW: the calibre Reports->Words tool can save the list of words into a CSV File (Word, Language, Times used). If the words have a distinct language tag you can easily create a list of the Nahuatl words that can be pasted into a spellcheck user dictionary.

BR
BetterRed is offline   Reply With Quote
Old 12-25-2024, 06:41 PM   #5
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,760
Karma: 5706256
Join Date: Nov 2009
Device: many
You misunderstood. Once these words are in the Spellcheck Editor you can highlight all of them and right click and select "Add to Dictionary" in one go.

You can then go to Sigil Preferences Spellcheck Dictionaries and see and edit the wordlist list and export them to a file.

So you should be able to quickly generate the list you want.
KevinH is offline   Reply With Quote
Advert
Old 12-27-2024, 07:08 PM   #6
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 47
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
Oh, you are absolutely right! Great feature, indeed!
Thank you, KevinH
celiapgt is offline   Reply With Quote
Old 12-30-2024, 01:39 PM   #7
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 47
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
Sorry to not send you an acknowledgement of your response. Thanks, indeed!

I use Sigil, so Calibre is out of my toolkit to make ePubs ;D
But I'm sure someone else can take advantage of your hack.
celiapgt is offline   Reply With Quote
Reply

Tags
languages, mispelled, user-dictionary


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Font of Misspelled Words in "Check Spelling?" enuddleyarbl Editor 5 01-08-2023 12:21 AM
dictionary "Le nouveau Littré" (modern version of a french dictionary akorx Kobo Reader 18 05-15-2021 02:35 AM
Auto-build "Tags" from custom column Feather_Qwill Library Management 8 11-20-2017 05:28 PM
Now all words with hyphens are "misspelled" JoeBloe Editor 3 10-22-2014 04:27 PM
"first to build an under-$150 e-book reader will win" kjk News 24 01-23-2010 08:07 AM


All times are GMT -4. The time now is 09:57 AM.


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