![]() |
#46 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
I am finally figuring it out. It is remarkable that when confronted with something new it takes me a while to absorb it all. I was looking for user dictionary yesterday and couldn't find it, but the button was there all the time.
Anyway, I am finding that after some replacements of some words, other words on the list don't respond when double clicked. I refreshed and they did respond. Can work with it this way, I am just happy to have it built in now. |
![]() |
![]() |
![]() |
#47 | |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Apr 2014
Device: none
|
Dealing with French apostrophes
Quote:
I’m the French spelling dictionary maintainer. Hunspell handles properly apostrophes but cannot solve our issue here. Most of French uses for apostrophes are to create elided forms, i.e. l’animal = the animal j’aime = I like There is hundred thousands of these words with elided forms in the French language. Hunspell recognizes these words as it should. But when a word is not recognized by the dictionary, there is no reason to list several times this word with different elided forms. Example with articulateur. This word is not present in the dictionary. But when Calibre encounters it in forms like l’articulateur, d’articulateur, articulateur, it considers them as 3 different words whereas it’s the same with or without elided forms. That’s why these prefixed elided forms should be removed when counting unrecognized words. Here is a simple algorithm in Python which explains what would be useful for the French language: Code:
import re rElidedPrefix = re.compile(u"(?i)^(l|d|m|t|s|j|c|ç|lorsqu|puisqu|quoiqu|qu)['’]") # needed for FR locale dict_of_unknown_words = {} for word in list_of_all_words_in_text: if not Hunspell.isvalid(word): word = rElidedPrefix.sub("", word) # needed for FR locale dict_of_unknown_words[word] = dict_of_unknown_words.get(word, 0)+1 |
|
![]() |
![]() |
Advert | |
|
![]() |
#48 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,208
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah, I see what you are saying. You want the unrecognized variants to be listed as a single word. That is somewhat harder to do, since it means that the replace code can no longer do a simple replace but must check for an elision and do a smart replace. Certainly possible, but more work.
|
![]() |
![]() |
![]() |
#49 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
It appears that the spell check works even on that document. What stops it is having the word start or end with a bracket, which this document does a lot in its footnotes.
|
![]() |
![]() |
![]() |
#50 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
One "enhancement" to the spelling checker which would be particularly helpful to me would be the addition of a "minimise" control to the Spell Check window.
Even when I reduce the size of the window to the minimum needed to see all the fields etc it still takes up quite a bit of screen real estate and means if I want to see the misspelled word in context I have to do a lot of moving windows about. The ability to minimise the window would allow me to "hide" the dialogue temporarily while examining the context and then quickly return to it once I had decided if/how I wanted to correct the offending word. I would hope this is a relatively trivial change. BobC |
![]() |
![]() |
Advert | |
|
![]() |
#51 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
I just resized it to make it fit over the preview window. I would want any minimizing to be voluntary rather than automatically disappearing when the focus was back on the code editor window. That behavior in Sigil did not work for me.
|
![]() |
![]() |
![]() |
#52 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,637
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
There's something that does similar for Mac but I forget its name. BR |
|
![]() |
![]() |
![]() |
#53 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Thanks for the try on the dictionary, but it fails when I try to install to calibre with:
calibre, version 1.33.0 ERROR: Failed to import dictionaries: Failed to import dictionaries from J:/Our Documents/Etexts/en_gb_us.oxt. Click "Show Details" for more information Traceback (most recent call last): File "site-packages\calibre\gui2\tweak_book\spell.py", line 112, in accept File "site-packages\calibre\spell\import_from.py", line 70, in import_from_oxt File "site-packages\calibre\utils\zipfile.py", line 1008, in open File "site-packages\calibre\utils\zipfile.py", line 970, in getinfo KeyError: "There is no item named u'META-INF/manifest.xml' in the archive" |
![]() |
![]() |
![]() |
#54 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,637
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#55 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
BobC |
|
![]() |
![]() |
![]() |
#56 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
A proposal Many times, we use search and replace to modify, either some parts of the code or of the text. Imagine we would like to check all composed names including a hyphen: like plate-forme, cerf-volant. Or to look after all the superscripts, or all the elided forms beginning with l'. The list is endless. Now, if our search yields hundreds of occurrences, what are we supposed to do? Check them one by one? This is not very handy. Proposal As long as we are dealing with words, would it be possible to find a way to display the results of a search -a list of words- in the window of the spellchecker? (or in a different window of this kind) This would make the control much easier. Last edited by roger64; 04-21-2014 at 06:11 AM. |
![]() |
![]() |
![]() |
#57 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,208
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the filter list of words control at the top of the spell check dialog.
|
![]() |
![]() |
![]() |
#58 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Other than the obvious putting of starts of words etc, are there any non obvious ways to use it with regex or something like that? I am not suggesting there should be only asking if there might be.
|
![]() |
![]() |
![]() |
#59 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
What am I missing? |
|
![]() |
![]() |
![]() |
#60 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,637
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() @jackie_w - maybe you've tripped up on something I've been puzzling about - Sigil has dictionaries like hyph_en_GB.dic and hyph_en_US.dic but calibre doesn't - and Sigil will find all the words with a hyphen. But they may have nothing to do with it because Sigil will find nonsensical words with a hyphen eg hghgjgklkdl-reryenaj BR Last edited by BetterRed; 04-21-2014 at 09:29 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spelling anomalies | DMB | General Discussions | 71 | 06-19-2012 07:55 AM |
Are DRM books with check in/check out allowed? | i8abug | Library Management | 4 | 05-31-2012 02:27 PM |
Spelling errors and such | starrlamia | General Discussions | 29 | 11-29-2010 03:59 AM |
Seriously thoughtful Spelling contractions | SameOldStory | Lounge | 47 | 09-08-2010 09:08 PM |
Spelling Macro | PieOPah | Workshop | 36 | 12-13-2008 02:27 AM |