Thread: A tiny proposal
View Single Post
Old 11-11-2020, 03:33 AM   #4
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: 874
Karma: 3501146
Join Date: Jan 2017
Location: Poland
Device: Various
My two cents for @roger64:
* Since the plugins you use are not adapted to the non-standard epub layout, they probably are not updated for some reason.
* As a result, it would be enough for you to add a condition in those specific plugins that only support the standard epub layout:

Code borrowed from @Doitsu – add at the very beginning of the run(bk):

Code:
    # this plugin only works with standard file paths
    if bk.launcher_version() >= 20190927 and not bk.epub_is_standard():
        print('This plugin only works with standard epubs.\nPlease select Tools > Restructure to Sigil Norm before running this plugin.\n\nClick OK to close the Plugin Runner window.')
        return 0
On the other hand – if KevinH and DiapDealer were so willing – I can imagine an additional "Tweaks" option on the left side of Preferences in Sigil, where tiny toggles like these would be added to the extra parameters customized for each user.
Although I would personally see a few settings there, but I think each such option should be thoroughly discussed.
BeckyEbook is offline   Reply With Quote