View Single Post
Old 02-11-2025, 04:34 PM   #4
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: 21,598
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
There is a plugin that does function replacement for F&R that already exists and seems to work well. Unlike Calibre which is written in Python, Sigil is almost purely a C++ app with a one way interface to python for handling embedded routines. So adding user supplied python functions outside of Sigil's plugin framework would be a bit of an issue as would finding the required space to add a function interface to our current Find and Replace dialog.

Since I am not a Calibre user at all. I would need to see mock-ups of how to modify our current F&R dialog (without growing its height much if at all) to add in the interface elements required by a python function replace feature.

If you can provide those mock-ups here for everyone to see and comment on, I would be happy to look at integrating that functionality into mainline Sigil.

By the way... your idea violated the first "do NOT" rule provided by this announcement!

Oh well ...
Calibre adjusts the F&R dialogue to suit the Mode: Normal, Fuzzy, Regex and Regex-function… see attachments. Its F&R panel is 3 rows against Sigil's 4 rows.

Here's a shot of calibre alongside sigil that includes the function Create/Edit dialogue.

Click image for larger version

Name:	Calibre SxS Sigil.jpg
Views:	215
Size:	279.8 KB
ID:	213544

Doco ==>> https://manual.calibre-ebook.com/function_mode.html

BR
Attached Thumbnails
Click image for larger version

Name:	Normal & Fuzzy.jpg
Views:	191
Size:	120.4 KB
ID:	213545   Click image for larger version

Name:	Regex.jpg
Views:	189
Size:	82.1 KB
ID:	213546   Click image for larger version

Name:	Regex-function.jpg
Views:	181
Size:	88.0 KB
ID:	213547  
BetterRed is offline   Reply With Quote