woensdag 22 november 2017

Creating an ePub file with ... Sigil

A first way to create an ePub file is with a specialized program. I downloaded Sigil for this experiment.

Content


Before I continue this experiment, my future ePub file needs some content. I'm not ready yet to publish a story or a volume so I will just have some fun with personalized popular lifestyle content. One of my guilty pleasures in life are 'quotes'. In stressy times I live by quotes πŸ’˜. So I made a compilation of my favorite ones. You can find the flat text Google Doc here. I have a title ('Repeat after them'), a subtitle ('A guilty pleasurely quote collection'), a foreword, different chapters, quotes and (if known by me or the internet) the one responsible for the quote. So I guess this will be enough content to use as an example.

Let's Sigil this flat text up


In Sigil you have the possibility to use the wysiwyg editor or to write/edit the html code. I have basic knowledge of html but I prefer to work in the convenient wysiwyg interface. I did choose to see the html code just because I think it's cool (πŸ€“) to see what you're doing in code and possibly just change a few things.

Text & structure

I couldn't find a way to import a flat text (I'm used to working in Indesign) so I just copied the text in the interface. I checked and this is indeed the way to do it. If you already have an ePub file you want to edit, you can import the file.

So there was my flat text. And I was already confused. I wanted to make a title page, preface-page and chapters... So I looked for help on jedisaber.com. Apparantly, when you make different sections (File -> New -> Empty section) and add a code they will automatically start on a new page in an e-reader. Another option was to insert page breaks manually. So after some hassle I decided to make four sections: title page, preface, content, bibliography. Within the 'content' I made page breaks manually between my chapters.

Table of contents

I used Tomely's instructions for this part. I changed my title to 'heading 1', my subtitle to 'heading 2' and my name and all my chapter titles to 'heading 3'.

Intermezzo: frustraaaaahtions

Changing <select heading> stuff was a pretty annoying experience, it just didn't work. I don't like it when things don't work when they should πŸ˜’. It reminds me of previous versions of Word in high school... After some deep breaths and a cup of 'no stress' tea I could move on.

Back to the table of contents

So, after getting all the headings and 'normal text' right, I selected (at the bottom right) 'Generate TOC from headings'. And after doing some patch work (as in checking out some empty 'heading 3's' I didn't even knew I made), it worked!

I was really curious to see the result on my e-reader so I uploaded the file via Calibre and ... 

I already saw in the Calibre preview it didn't work out how it should have. Apparently all the 'sections' ended up being separate pages automatically (without code) so I devided my chapters again in sections. Also, the 'title page' became a title page and an author page, so I tried to fix that just by deleting some blank space. And so ...

Result & tips

Woohoow, there was my first ePub file on my e-reader.

I realised afterwards I forgot to add metadata, but that's pretty easy, just go to Tools -> Meta editor and add the metadata, just the title and author or more.

Tips

I did it! But I didn't really like it. Not that it was particularly difficult but it certainly wasn't much fun. Or I'm spoiled by Adobe Indesign, possibly.


  • Don't copy and paste too much, it confuses the wysiwyg interface.
  • Have patience and faith when Sigil is confused.
  • Don't forget your metadata

Coming up

In my next post I'll try to make an ePub file with word processors. I have a love-hate relationship with these classic word processors so I'm a bit scared but since I know the programs I think it will be more intuitive than using Sigil.

Sources:

  • https://sigil.nl.softonic.com/
  • https://nl.wikipedia.org/wiki/Sigil
  • http://tomely.com/guides/using-sigil
  • http://www.jedisaber.com/eBooks/Sigil01.shtml

vrijdag 10 november 2017

Discovering the ePub file

Before I start creating an ePub file, I want to know exactly what this specie is. So, I googled my way through the maze of ... No, just kidding, ePub files are pretty straightforward. Here is what I learned.

File features

  • It derives from 'electronic publication'. Straightforward, like I told you.
  • Its main raison d'Γͺtre is serving as an extension for e-books.
  • It is an open source file, meaning a lot of kind, smart people worked (and are working) hard to create it and sharing it with the world. For free!
  • The files exist of a ZIP-file (a package with the content of the ePub file) and XML-code that describes this content. More or less like an IKEA-package containing different pieces and a manual on how to put it together, I think? (Except that you actually have to put the furniture together but that all those smart devices put the ePub file together itself. Feel free to give feedback on this bold comparison.)
  • The name of this kind of file is stylized in two ways: 'EPUB files' or 'ePub files'. I prefer the stylish second way πŸ‘Œ. The extension reads '.epub'.
  • You can embed all kinds of graphic and interactive tools in an ePub file: video and audio files, hyperlinks and of course pictures (gif, jpeg, ...).

What to do with an ePub file


Open the file

The ePub file is the extension for eBooks that can be used on the widest number of e-reading devices. It can be opened with computer software like Calibre, Adobe Digital Editions, ... Via smartphone apps or in Google Play Books.

Still, you can not always open every ePub file with any program or on any device. For example, Kindle readers can not open ePubs. To read the files on this device, you need to convert them first (see below). Also, the files can sometimes be DRM-protected. DRM-what? It means that the ePub file has an encrypted protection and an authentication system, to avoid illegal usage or distribution of the content. For more technical info I kindly refer you to this extended explanation.

Convert the file

If your device can not open an ePub file, you can try to convert it. This is possible in similar programs in which you can open your files, for example in Calibre. In general, I think Calibre is a very user-friendly free e-book management system.
To read ePub files on your computer, it is recommended to convert them into a pdf, which can be read with Adobe Reader. As is customary in the world of converting, there are also different websites that offer online converting. The website Lifewire (see sources) recommends three: Online eBook converter, ePub converter and Zamzar.

Make it yourself

Before I started this journey I thought you definitely needed Adobe Indesign (or a similar program) to make your own ePub file, but apparently there are more options. In my next post I will pick one of the alternatives and create my first ePub file! I hope so.

I Googled this info together and came upon these very nice and clear sources:
- https://en.wikipedia.org/wiki/EPUB
- https://www.lifewire.com/what-is-an-epub-file-2621084
- https://nl.wikihow.com/EPUB-documenten-openen
- http://www.freemake.com/blog/is-my-video-audio-or-dvd-protected-how-can-i-know-it/