Quote:
Originally Posted by DiapDealer
You would not be the first person managing hundreds of Sigil search and replace sets. That's why you can group them and string them together in managable automation lists. You also are not the first person to believe your workflow is too special to be accommodated with the built in tools provided by Calibre and/or Sigil. That typically only means that you simply haven't taken the time to familiarize yourself with all of their various features.
But regardless of all that. The code you posted does not include a single calibre plugin API function. Until it does, it's not a calibre plugin. It's just code you're trying to make meddle with Calibre's menus. You don't need shims or boss classes to add your plugin's icon/menus/submenus to Calibre's editor toolbar. The Calibre API has built-in functionality to accommodate just that without tricks. Calibre also provides compatibility code so you don't have to worry about Qt5 vs Qt6. You're trying to reinvent the entire wheel when all you're missing is a lug nut or two.
I wish you the best of luck, but you really should try to familiarize yourself with Calibre's plugin framework before trying to create one. It would save you a ton of trouble.
|
first thank you for the good Luke wishes
but i said fast work flow is not possible specifically in Sigil not Calibre editor
I did not say my work is special I implied that my distribution objective and format is specific that is all .
aside from that:
I'm translating the bible to Arabic from hebrew with strong number system and footnote and historical notes and other additions.
I have been at this work for the last 3.5 years for almost 14 hours a day almost every day. because it is just me
So any time saved to focus on my main objective is better than fighting with the tools I Use .
Having what feels like a giant context menu (like what comes out when selecting in Sigil) that block the screen just to select a regex, is very off putting and distracting to me at least.
I prefer Calibre editor side panel that is all i said. I'm not sure why did that cause offense.
Beside I already built the regex collection in editor even if there is a way to use Sigil that i did not discover, I'm unwilling to spend the time to migrate now.
In any case I'm trying to build tools that will help me build more plugins easily in the future not just this plugin. to expand editor for my use, so there is that
I already did start on a large shim that gives Calibre the same API as Sigil to help migrate any plugin I need from Sigil to Calibre editor . it is fished but still need to test it and will publish it as will ...
the shim for the GUI is specifically for making it easy of AI to work with GUI since they do not seem to be good at it for some reason.
they keep changing GUI code randomly and breaking it every time. so a less complex way of adding to the menu seemed like a good idea at the time ...