Skip to content

mfdickerson/ePubFormattingCodeSample

Repository files navigation

ePubFormattingCodeSample

I created this repository to provide a sample of how to put together and format an eBook in the .ePub format.

Here are some other helpful resources:

Helpful Guides:

http://www.unrulyguides.com/2015/02/ebook-formatting-tip-changing-font-size-css/

Conversion & trouble shooting: http://www.paulsalvette.com/2011/08/calibre-tutorial-ebook-formatting.html

Helpful formatting: https://www.thebookdesigner.com/2017/01/elements-of-style-css-for-ebooks2/

Counters + lists: https://www.joshwcomeau.com/css/styling-ordered-lists-with-css-counters/

Documentation:

ePUB 3.0: http://idpf.org/epub/30/spec/epub30-contentdocs.html

http://kb.daisy.org/publishing/docs/index.html

ePUB 3.2: https://www.w3.org/publishing/epub3/

https://www.w3.org/publishing/epub/epub-contentdocs.html#sec-epub-type-attribute

https://www.w3.org/publishing/epub32/epub-contentdocs.html#sec-xhtml-svg-css

https://www.w3.org/publishing/epub32/epub-spec.html

http://kb.daisy.org/publishing/docs/index.html

eBookBlog:

http://www.paulsalvette.com/2012/04/previous-post-page-breaks-similar-to.html

Drop Caps:

My Approach

main > p:nth-child(1)::first-letter {
  font-size: 4.25em;
  font-family: "UnifrakturMaguntia", serif;
  float: left;
  line-height: 1;
  margin-top: -0.05;
  margin-bottom: -0.175em;
  margin-right: 0.025em;
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: text-top;
}

Other Helpful Resources:

OPF: http://idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6

SVGL https://www.w3.org/TR/SVG/embedded.html#HTMLElements

SVG Fallback: http://davidensinger.com/2013/04/inline-svg-with-png-fallback/

SVG Tricks:#

Responsive SVG/Color Changing SVG

SVG Fallbacks

Other eBook Elements

Other eBook Formats

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published