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 07-11-2023, 08:58 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,104
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
ZeroDivisionError:integer division or modulo by zero

Hello @kovidgoyal,

I am coming across a new error shown below.

To replicate...
  1. Alt-F7 for the Check Spelling pop-up box
  2. Place the curson in the "Filter the list of words" box
  3. Type letters so that the list becomes empty.
  4. Press up or down arrow.

Why do I do that? No reason. Sometimes I forget where my cursor is, and expect it to be in the editor and press up or down to move around, but its still in the Check Spelling box.


Code:
calibre, version 6.22.0
ERROR: Unhandled exception: <b>ZeroDivisionError</b>:integer division or modulo by zero

calibre 6.22  embedded-python: True
Windows-10-10.0.19044-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 1, 0) && DeDRM (10, 0, 2) && Package KFX (from KFX Input) (2, 1, 0) && EpubCheck (0, 2, 4) && KFX metadata reader (from KFX Input) (2, 1, 0) && KFX Input (2, 1, 0) && Set KFX metadata (from KFX Output) (2, 0, 0) && KFX Output (2, 0, 0) && KindleUnpack - The Plugin (0, 83, 1) && Kobo Utilities (2, 16, 9) && Manage Series (1, 5, 1) && ScrambleEbook (0, 6, 0) && Sum Column (0, 3, 3) && View Manager (1, 10, 2)
Traceback (most recent call last):
  File "calibre\gui2\tweak_book\spell.py", line 1146, in next_word
  File "calibre\gui2\tweak_book\spell.py", line 865, in next_word
  File "calibre\gui2\tweak_book\spell.py", line 861, in change_current_word_by
ZeroDivisionError: integer division or modulo by zero
Karellen is online now   Reply With Quote
Old 07-11-2023, 09:46 PM   #2
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: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Change Text Cursor Thickness in Windows 10

I have mine at 5 pixels
BetterRed is online now   Reply With Quote
Advert
Old 07-11-2023, 10:06 PM   #3
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: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...4286378ae491cc
kovidgoyal is offline   Reply With Quote
Old 07-11-2023, 10:26 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,104
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Nice. I wonder when MS added the text cursor indicator. Its been a while since I have been in that particular setting page.

Though, I have this installed... https://www.softwareok.com/?seite=Mi...ideMouseCursor
It auto-hides the cursor after 4 seconds so its not in the way when I am trying to read or work on documents.


Quote:
Originally Posted by kovidgoyal View Post
Great. Thank you
Karellen is online now   Reply With Quote
Old 07-11-2023, 10:38 PM   #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,104
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
That Text Cursor doesn't seem to work well in Calibre. Nor the thickness which is set to 5.
I guess it is a QT6 issue...
Attached Thumbnails
Click image for larger version

Name:	textcursor.jpg
Views:	49
Size:	237.2 KB
ID:	202601  
Karellen is online now   Reply With Quote
Advert
Old 07-12-2023, 02:31 AM   #6
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: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Karellen View Post
That Text Cursor doesn't seem to work well in Calibre. Nor the thickness which is set to 5.
I guess it is a QT6 issue...
Thick insertion point works elsewhere, e.g. filter box in the spellchecker, F2 edits in booklist, "Normal" editing of Comments. I suspect they use the TextEdit widget.

Qt must have a "CodeEdit' widget, because it doesn't work in "HTML" editing of Comments or the Editor Codeview - and Sigil's the same.

Notepad and Bowpad honour the setting, but not Notepad++.

BR
BetterRed is online now   Reply With Quote
Old 07-12-2023, 02:39 AM   #7
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: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Karellen View Post
I wonder when MS added the text cursor indicator. Its been a while since I have been in that particular setting page.
Since Vista

Quote:
Originally Posted by Karellen View Post
Me too.

BR
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integer Formatting BetterRed Library Management 4 05-06-2022 08:16 AM
Adding a % to an integer column. ownedbycats Library Management 2 11-01-2020 12:55 PM
Integer Column Quetico Reading and Management 0 07-09-2017 11:27 PM
format integer cells as blank when 0 BetterRed Calibre 17 04-28-2016 05:03 PM
Error - division by zero fanton44 Calibre 2 10-27-2015 10:59 AM


All times are GMT -4. The time now is 04:59 PM.


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