![]() |
#1 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
templates
In my epub folder I have a folder named templates and in that I have my one and only template, template.epub which is what I start with when I'm starting a new conversion cleanup of a PD book. It's a minor inconvenience to have to either navigate to that folder to open it or navigate to it from the open menu.
Sometimes it's in the recently opened files list. I was wondering if there could be a sticky list of files below the recently opened files list where I could put this template.epub file. Files in this list would need to be manually added or removed from the list. |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Probably easier to create an input plugin that is hardcoded to load that epub. It would only be a few lines of code.
Then just click a button to run the plugin and off you go. Another alternative is to keep an alias or symbolic link of that epub on your Desktop and drag and drop it on Sigil to start Sigil with that epub more easily. Last edited by KevinH; 08-24-2021 at 03:42 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,353
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
There are a couple options that I've used:
1) You can add template files, such as a cover page, into the sigil folder. When you click to add a cover, it will automatically use that template cover. 2) You can create a blank epub with all the files you wish already setup (like your template file), then create a shortcut to that file. Use the shortcut to open Sigil, then "Save As" to give it a new name without changing the template. |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
![]() Or what I do is have a "template folder" that I always import. It has all my usual files in there: - template.css - tempcover.jpg - titlepage.xhtml - copyright.xhtml - [...] - backmatter.xhtml Then I just do a Right-Click + Add Existing Files. This (+ other people's methods) was discussed back in: 2018: "UUID basics & template" I personally don't like the "same base EPUB every time" idea, since the UUID will be the same, but there are ways around this. (See the thread for more details!) Last edited by Tex2002ans; 08-27-2021 at 04:20 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
Code:
dc:identifier id="BookId" What happens if I forget to run the EpubCheck plugin? What blows up when that line is missing? I.e., if I upload it here or read it on my kobo. Last edited by hobnail; 08-28-2021 at 01:22 PM. |
|
![]() |
![]() |
![]() |
#7 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,353
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Some programs use the ID in their identification process. If you have two numbers that are the same they could cause a conflict. At one point I had a problem with Calibre thinking different books were actually the same and not filing them correctly. I haven't had this problem in quite some time, but I don't know if it's because Calibre fixed the issue, or I just don't use the same ID anymore.
I think Sigil will automatically correct that line if it is missing??? |
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FWIW - I have Sigil pinned to the taskbar, and to that I have pinned two template epubs.
When I remember that's how I load a template. That's on Windows 10. BR |
![]() |
![]() |
![]() |
#9 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Not too sure what happens on readers when it's missing. But its main uses are:
For more detail, also see: 2019: "@DiapDealer ISBN vs UUID" Side Note: And I may be going cookoo, but didn't I remember a Sigil plugin made to randomly generate a new UUID? (Or was this just mentioned in passing?) Side Note #2: Also see the EPUB spec on unique-identifier. Quote:
Sigil, fresh EPUB, then go digging into the blank EPUB's UUID and carefully swap lines over. (See thread above for more details on how to manually adjust UUID.) Quote:
I just tested in Sigil 1.7.0 + 0.9.14. I deleted the lines (in content.opf + toc.ncx), saved the EPUB, reopened, saved again, and the UUID lines continued to be missing. Last edited by Tex2002ans; 08-28-2021 at 08:07 PM. |
|||
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Would a TemplateEpub3 input plugin (and of course a matching TemplateEpub2 plugin) that does the following help:
1. Looks in your Sigil Prefs folder for a "template3" folder that holds an unzipped epub of your choice (ditto for "template2") with any files you want of any type. The only caveat is none of the font files (if any are even present in the template) can be obfuscated inside the template3 folder. 2. If it exists, it creates a proper uuid bookid for the opf (and ncx if it exists) and then zips it up to create an epub that is loaded into Sigil If it does not exist, it could either prompt for a temporary path or quietly exit as failed, your choice. The goal is that once the template3 has been created and the Template3 plugin has been loaded and assigned an icon, then loading your template after starting Sigil is just a single icon click and no further user interaction required. You can also easily change any of the files inside the template3 folder at any time using Sigil and the FolderIn and FolderOut plugins or even by drag and drop. Would something like that help? |
![]() |
![]() |
![]() |
#11 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,353
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Would this be in addition to, or replacement of, the functionality of a default cover page (using add cover)??
I think it would be a good thing! |
![]() |
![]() |
![]() |
#12 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
This would be a Sigil plugin. You would need to download and install it just like any other plugin. It would not replace anything.
|
![]() |
![]() |
![]() |
#13 | |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
![]() |
#15 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,764
Karma: 6000000
Join Date: Nov 2009
Device: many
|
New Plugins for testing
Okay, I have quickly thrown together two plugins:
Template3_v010.zip It is an input plugin to load an unzipped epub3 from a folder in Sigil Preferences folder called "template3". It will create and use new unique-identifiers using uuids and update both the OPF and any existing NCX Template2_v010.zip It is an input plugin to load an unzipped epub2 from a folder in Sigil Preferences folder called "template2". It will create and use new unique-identifiers using uuids and update both the OPF and any existing NCX I have attached both plugins. I have also made an additional change to Sigil's source code that will appear in Sigil 1.8, that if you use an input plugin and your currently loaded book in Sigil has NOT been modified, it will go ahead and load the new epub without prompting to proceed since that is the whole point of an input plugin to begin with. See the attachments for the plugins. They have not undergone much testing so any feedback on them welcome. Also any contributions of plugin.svg or plugin.icon files for either or both would be welcome!! Hope this helps. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cover templates | grixit | Calibre | 12 | 09-17-2020 09:48 PM |
Where to get Templates? | chrismscotland | Onyx Boox | 1 | 07-25-2019 04:04 PM |
PDF templates? | Wolfrott | 0 | 01-13-2016 04:25 AM | |
Help using templates | krakenmoth | Library Management | 2 | 04-10-2013 03:44 PM |
templates? | TAG_Keri | Calibre | 1 | 10-28-2011 02:11 PM |