View Single Post
Old 03-01-2025, 12:29 PM   #69
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,937
Karma: 6361444
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by Doitsu View Post
I just installed the beta and briefly tested the predefined functions, which are a great addition to Sigil!



Am I right in assuming that unlike the Calibre function mode, users won't be able to easily add their own custom functions, unless they add them to fr_utils.py and functionrep.py?

If so, could you could you please briefly document the interface in the Plugin Framework guide?

If it's not too much work, I'd recommend adding two additional custom functions that Kovid described in the Calibre function mode documentation.

Using a spelling dictionary to fix mis-hyphenated words
Auto numbering sections

I also have a minor nitpick about the GUI. On my Windows machine, both the X and �� buttons are rendered in a color that is usually used for disabled buttons. It might be helpful to display them in another color that is also visible in dark mode to indicate that they can be clicked.

They were designed to render well under both dark and light themes and do on my MacOS machine and on BeckyEbook's Windows machine. She designed them to do so. I have no idea what colour is meant to indicate a disabled button on your Linux box so I am unsure what if anything to change.

As for section numbering, the code in Calibre's documents with small changes would work just as well in Sigil (once limited to the parameters available for Sigil's version).

Since this now has nothing to do with Plugins at all anymore, the Plugin Framework guide is not the place for any documentation. I am kind of hoping once this gets into final form, that some kind soul will volunteer to create a new chapter documenting it for our Sigil User's Guide - hint, hint, Turtle91 ... cough cough.

Last edited by KevinH; 03-01-2025 at 12:36 PM.
KevinH is offline   Reply With Quote