|  12-15-2021, 10:38 PM | #1 | 
| Wizard            Posts: 1,687 Karma: 9500498 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   | 
|   |   | 
|  12-16-2021, 12:17 AM | #2 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | |
|   |   | 
| Advert | |
|  | 
|  12-16-2021, 01:49 AM | #3 | 
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | 
			
			Fantastic. Looking forward to the next release Thank you @kovidgoyal    | 
|   |   | 
|  12-17-2021, 09:51 PM | #4 | 
| Wizard            Posts: 1,687 Karma: 9500498 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   | 
|   |   | 
|  01-10-2023, 05:03 AM | #5 | 
| Wizard            Posts: 1,687 Karma: 9500498 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) | 
|   |   | 
| Advert | |
|  | 
|  01-10-2023, 08:46 AM | #6 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			That's because the regex matches the empty string.
		 | 
|   |   | 
|  01-10-2023, 06:56 PM | #7 | 
| Wizard            Posts: 1,687 Karma: 9500498 Join Date: Sep 2021 Location: Australia Device: Kobo Libra 2 | 
			
			Thanks @kovidgoyal But why should that open every file in the epub? | 
|   |   | 
|  01-10-2023, 10:08 PM | #8 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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.
		 | 
|   |   | 
|  | 
| 
 | 
|  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 | Amazon 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 |