View Single Post
Old 02-06-2025, 02:47 PM   #2
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 858
Karma: 3461504
Join Date: Jan 2017
Location: Poland
Device: Various
This plugin looks like it was written by AI.

Sigil plug-ins have some rules that you have to follow:
a) The name cannot have spaces, so the plugin can be called PDFtoEPUBConverter.
b) The main file of the plugin is to be named plugin.py.
c) It is also important to write the name without spaces in the plugin.xml file as
Code:
<name>PDFtoEPUBConverter</name>
.
d) There is no "conversion" plugin type. Sigil supports "edit," "validation," "input," and "output" types. In this case, it should probably be "input," but...
e) The plugin will not run anyway, because it will throw errors (e.g., missing pytesseract, pdf2image, packaging, ebooklib, bs4, and PyQt6). External libraries must be included in the plugin.
f) Definitely something else.

I have yet to find an AI (and out of curiosity I have tried a dozen of them) that can write a plugin for Sigil out of the box. Many of them claim that it’s clear, that of course, it will help... Unfortunately, what they offer are fabrications, non-existent functions, and misleading outputs. It doesn’t work that way, unfortunately. Even after explanations and giving examples, you get code that simply has no right to work.

Maybe someday...

Of course, I could be wrong and some paid AI is already able to create something brilliant after learning from the code of existing 200 plugins.

AI, for its part, can help optimize already existing code. It’s just that something has to work first in order to optimize it later.
BeckyEbook is offline   Reply With Quote