View Single Post
Old 10-21-2020, 06:17 AM   #1
TomMelly
Junior Member
TomMelly began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2020
Device: none
Calling Sigil menu functions in plugin?

Hi,

I've written a small, personal-use, plug-in to perform some find-and-replace, called mara01.

That works fine, but the actual sequence of events when importing my book to Sigil is as follows:

1. Import docx + css via plugin (1)
2. Run plugin, shadycharacters (2)
3. Restructure epub to Sigil norm (tools)
4. Add cover, cover_01.jpg (tools)
5. Add metadata – title, author (tools, F8)
6. Run mara01 plugin (3)
7. Spit at markers (edit, F6)
8. Create TOC for h1 (tools, Ctrl-T)

Step 6 is my plugin, but ideally I'd like to add as many of the other steps as I can.

Any advice and/or suggestions as to how to go about this?

P.S. not really a python-person
TomMelly is offline   Reply With Quote