Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 12-15-2021, 10:38 PM   #1
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,228
Karma: 5390614
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Prevent spellchecker from opening every file

I have noticed a weird behaviour when running the spell-checker in the Calibre Editor.

I use F8 to jump between words identified by the spell-checker as being incorrect. I like to do this a page at a time, on the page I am currently working on.

The problem is that when you (unknowingly) arrive at the last word to be checked and press F8 again, you end up on the next xhtml page. That in itself is not a problem, but what happens is that every single page in the epub file is opened- xhtml, ncx, opf. I then have to close every page down.

Is there anyway to prevent this behaviour. I am happy that it opens the next page, but I don't expect that it opens every single page in the epub file.

Thanks
Karellen is offline   Reply With Quote
Old 12-16-2021, 12:17 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,187
Karma: 23000000
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...18b1e58f8f054a
kovidgoyal is offline   Reply With Quote
Advert
Old 12-16-2021, 01:49 AM   #3
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,228
Karma: 5390614
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Fantastic. Looking forward to the next release

Thank you @kovidgoyal

Karellen is offline   Reply With Quote
Old 12-17-2021, 09:51 PM   #4
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,228
Karma: 5390614
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Confirming this fix solves the problem.

Using F8 works as expected when reaching the end of the page. It opens the next page only.

Thanks
Karellen is offline   Reply With Quote
Old 01-10-2023, 05:03 AM   #5
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,228
Karma: 5390614
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Weird. This issue has come up again, but seems to only happen with a particular search string.

If I search for \b(.*?)\b, every page in the ebook opens in the editor.
(yep, its a bit of a nonsense regex)
Karellen is offline   Reply With Quote
Advert
Old 01-10-2023, 08:46 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,187
Karma: 23000000
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's because the regex matches the empty string.
kovidgoyal is offline   Reply With Quote
Old 01-10-2023, 06:56 PM   #7
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,228
Karma: 5390614
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Thanks @kovidgoyal
But why should that open every file in the epub?
Karellen is offline   Reply With Quote
Old 01-10-2023, 10:08 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,187
Karma: 23000000
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Because matching an empty string is indistinguishable from not matching, one piece of code sees there is amatch and opens the file, another sees theres no match because its empty and searches the next file and so on.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I prevent Calibre from deleting blank lines present in the orig docx file? RachDvn Conversion 1 03-31-2014 10:28 PM
opening up a lit file p3aul Other formats 13 05-20-2012 04:01 PM
To prevent unrooting through the 6.3.1 update I'm deleting a file Hope Kindle Fire 12 05-09-2012 08:32 AM
Trouble opening file on kindle sly_skittle Calibre 1 03-28-2012 02:52 PM
Opening of referenced PDF file DrBibber iRex 2 07-30-2006 09:28 PM


All times are GMT -4. The time now is 01:33 PM.


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