11-10-2020, 10:46 PM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
A tiny proposal
Hi
Since v 1.0. Sigil leaves the choice of adopting the Sigil architecture (Text, Fonts, Images,..) to the user. This fairly inocuous choice has nevertheless some consequences. Some Sigil plugins require the Sigil architecture to work. So, as a user addicted to these plugins, I need to use Sigil architecture. Life being like it is, sometimes I forget to select the needed option in Tools when opening a new ePub and, later, I scratch my head trying to understand why some font is not properly embedded, why... For some headless users like me, I think it would be nice to see a "remind me" pop up dialog box. As in many other pieces of software, there also would be a tick box inside for people who wish to never see again this dialog box. It would appear only when opening a new ePub. Last edited by roger64; 11-10-2020 at 11:17 PM. |
11-10-2020, 11:19 PM | #2 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm not fond of popups that show once and are then (usually) dismissed forever. It's too easy to forget that a choice was made, and too hard to unmake it if one wants to.
Seems to me that you're basically asking for a preference setting to automatically restructure all epubs upon opening. What would be the advantage of a popup over a regular preference choice? I'm just not sure how feasible such an option is. Have you asked the author of the plugin(s) if they could update them to work with any and all possible epub structures? Many of them already do, after all. The Restructure tool was initially intended to give plugin devs time to update their plugins to match Sigil's new capabilities. I'm not really keen on the notion of modifying Sigil in a way that makes it easier for them to never do so. Last edited by DiapDealer; 11-10-2020 at 11:22 PM. |
11-11-2020, 02:54 AM | #3 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
If easily doable, a preference setting choice would certainly be a good solution.
|
11-11-2020, 03:33 AM | #4 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
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 Although I would personally see a few settings there, but I think each such option should be thoroughly discussed. |
11-11-2020, 07:56 AM | #5 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Simply fix the plugins. I will do it if need be. Otherwise we end up with users setting that option for no valid reason and we are back to the limited layout which is not what we want just to save one use of a menu.
There really is no valid technical reason for a plugin not to be updated. So which exact plugins have not been updated that are "must have"? Last edited by KevinH; 11-11-2020 at 08:04 AM. |
11-11-2020, 08:34 PM | #6 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks to BeckyEbook, I've found at least one such plugin, an unpublished FootnoteMoverX with such kind of code. There may be other(s) and I'll report it as soon as I bump on it. As I have been caught before, I determined that I would use permanently the standard layout.
Code:
# get proper endnotes href if bk.launcher_version() >= 20190927 and not bk.epub_is_standard(): 1. Sigil recommends this standard layout (it's even named "norme Sigil" in the French menu). 2. But it requires the user to perform one special step to implement it. I read two days ago some comments from a French user who - wrongly - complained being confused with "virtual" paths in Sigil and even recommended to other users to rename ePub to zip and open this new zip file with 7zip to know the real path of the files. This is rubbish, but it shows that some users are still confused or uncertain about this choice. Why require a special step, which some casual users may ignore, which some old users may forget, to follow a "Sigil norm" ? If there is no warning, it should belong to the Preferences settings. The least that could be expected from Sigil would be to make this choice trivial. Determining what will be the architecture of the ePub, seems to be as important a subject as, say the display of entities. It's a major choice that should appear clearly. Last edited by roger64; 11-11-2020 at 09:01 PM. |
11-11-2020, 10:15 PM | #7 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Then enable full book paths in BookBrowser via Preferences so it will always show full paths (or just mouseover without that preference set).
There is no true standard layout for epub2 or epub3. The old Sigil "standard" layout is and was a horrible kludge and harsh limitation for an an epub editor that forced file relocations on opening that did end up breaking things like javascripts and etc. We will not be bringing it back. If you build epubs from scratch you can create a template empty epub that matches the layout you want using Sigil empty layout tools. If you open an existing epub, you open it with the layout as set by the original epub developer. If you do not like that layout, you can use Sigil to move folders and files where you like or use the menu tool to make it like the old forced layout. None of this will be changing. That said, point me to broken plugin code and I am sure that I and others can fix them so that they work with any layout. That is how Sigil should have been from the very beginning. |
11-11-2020, 10:21 PM | #8 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
If you pm me with a link to FootnoteMoverX, I will take a shot at updating it.
|
11-11-2020, 11:42 PM | #9 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi Kevin
OK, pm sent. I have already ticked the preferences settings to display full paths some time ago but it's useful to point it again. Of course, I had forgotten about it but it stayed enforced. |
11-12-2020, 10:20 PM | #10 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Okay, I have updated it. I just need a testcase. So if anyone knows of a public domain epub with footnotes in each chapter that could be converted to endnotes, please let me know.
|
11-13-2020, 07:39 AM | #11 | |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
If you want to cling to that arbitrary and unnecessary structure for whatever reason, we've provided a means for you and others to do so. But we're not going to revert to providing a way to make enforcing an arbitrary, pointless, and unnecessary structure automatic. We'll change the name of the feature to something "legacy" related, if use of the word "Norm" is giving people trouble. |
|
11-14-2020, 07:43 PM | #12 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A modest proposal | Notjohn | Sigil | 9 | 08-28-2016 06:04 AM |
Help finding tiny towers and tiny zoo | mojkadona | Kindle Fire | 5 | 04-26-2012 07:02 PM |
Proposal for undercutting Pirates | DuckieTigger | General Discussions | 33 | 02-02-2012 05:31 PM |
A homebrew proposal | DasFool | Sony Reader Dev Corner | 4 | 07-30-2008 05:45 AM |