MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Custom empty ePub (https://www.mobileread.com/forums/showthread.php?t=326322)

PapaKilo 01-06-2020 03:42 PM

Custom empty ePub
 
Where can I find a "how to" on creating a custom empty ePub.

I can't seem to find one anywhere.

KevinH 01-06-2020 04:13 PM

There ar eno formal docs yet, so simply just give it a try. It will show you the root folder of an empty epub. You will be able to select it, and add subfolders to it, and add marker files to specific folders to tell Sigil wheere you want files of a specific type to go.

If you try to save it for use, it will run a test to make sure your design is sane.

Give it a try. Then take a few moments to write-up a how-to to help us out.

PapaKilo 01-06-2020 07:27 PM

Quote:

Originally Posted by KevinH (Post 3937889)
There ar eno formal docs yet, so simply just give it a try. It will show you the root folder of an empty epub. You will be able to select it, and add subfolders to it, and add marker files to specific folders to tell Sigil wheere you want files of a specific type to go.

If you try to save it for use, it will run a test to make sure your design is sane.

Give it a try. Then take a few moments to write-up a how-to to help us out.

How (where) do I put information in these files/folders that I want to appear in the new ePub?

KevinH 01-06-2020 07:59 PM

See the Tools menu.

DiapDealer 01-06-2020 09:52 PM

Quote:

Originally Posted by PapaKilo (Post 3937963)
How (where) do I put information in these files/folders that I want to appear in the new ePub?

You don't.

The Custom Layout tool is not used to create template epubs that will be pre-populated with content, metadata, images etc... . You're thinking about it the wrong way.

It's used to create the structure that new epubs will use. Css will go in this folder; xhtml will go here (and here and here); the opf will live here; images will go here -- that sort of thing. When all is said and done, the new epubs created from the custom layouts are still going be an opf, an empty xhtml file and an empty ncx (or nav if it's an epub3).

PapaKilo 01-06-2020 10:21 PM

Quote:

Originally Posted by DiapDealer (Post 3938025)
You don't.

The Custom Layout tool is not used to create template epubs that will be pre-populated with content, metadata, images etc... . You're thinking about it the wrong way.

It's used to create the structure that new epubs will use. Css will go in this folder; xhtml will go here (and here and here); the opf will live here; images will go here -- that sort of thing. When all is said and done, the new epubs created from the custom layouts are still going be an opf, an empty xhtml file and an empty ncx (or nav if it's an epub3).


Okay, my bad. :smack:

Well it still sucks. I would really like it the other way.

Paul

KevinH 01-06-2020 10:29 PM

Then set the empty layout, then add the material you want to be in the template and save it as an epub.

When you want to use it as a template, load that epub and do a save-as under a new name.

Doitsu 01-07-2020 04:29 AM

Quote:

Originally Posted by PapaKilo (Post 3938034)
I would really like it the other way.

You might find my simple EpubTemplate plugin helpful. Note that it doesn't work with non-standard epubs.

Turtle91 01-07-2020 09:42 AM

Quote:

Originally Posted by KevinH (Post 3938035)
Then set the empty layout, then add the material you want to be in the template and save it as an epub.

When you want to use it as a template, load that epub and do a save-as under a new name.

+1000000

I use this technique all the time - it works great!

PapaKilo 01-10-2020 08:41 AM

Quote:

Originally Posted by KevinH (Post 3938035)
Then set the empty layout, then add the material you want to be in the template and save it as an epub.

When you want to use it as a template, load that epub and do a save-as under a new name.

Already do that, was hoping there was a new way. :D

PapaKilo 01-10-2020 08:43 AM

Quote:

Originally Posted by Doitsu (Post 3938112)
You might find my simple EpubTemplate plugin helpful. Note that it doesn't work with non-standard epubs.

I'll give it a try.

najgori 01-10-2020 03:50 PM

...And if you mark template epub as read only you will not be able to overwrite it with book you are working on - you will have to use "save as" and save it with another file name.

However, if you try to use "save" you will get error "Sigil has encoutered a problem. Sigil may need to close."

Perhaps this error text could be replaced with more descriptive one?

DiapDealer 01-10-2020 07:32 PM

If we made it more descriptive, it wouldn't work as the generic, catch-all error message it was intended to be. ;)

najgori 01-14-2020 12:27 PM

imho generic messages should rhyme or be in form of haiku. :)

DiapDealer 01-14-2020 01:14 PM

I can work with that! :D


All times are GMT -4. The time now is 08:15 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.