You are on page 1of 50

ePUB

Who
Lab Startup a Passionate Programmer
lyhcode@gmail.com

Work e

PLWeb , http://plweb.org/

Java , http://java.plweb.org/

Source Code

if (pci_read_config_byte(pdev, ET1310_PCI_EEPROM_STATUS, &eestatus)) { dev_err(&pdev->dev, "Could not read PCI config space for EEPROM Status\n"); return -EIO; } /* Determine if the error(s) we care about are present. If they are * present we need to fail. */ if (eestatus & 0x4C) { int write_failed = 0; if (pdev->revision == 0x01) { int i; static const u8 eedata[4] = { 0xFE, 0x13, 0x10, 0xFF }; /* Re-write the first 4 bytes if we have an eeprom * present and the revision id is 1, this fixes the * corruption seen with 1310 B Silicon */ for (i = 0; i < 3; i++) if (eeprom_write(adapter, i, eedata[i]) < 0) write_failed = 1;

} if (pdev->revision != 0x01 || write_failed) { dev_err(&pdev->dev, "Fatal EEPROM Status Error - 0x%04x\n", eestatus); /* This error could mean that there was an error * reading the eeprom or that the eeprom doesn't exist. * We will treat each case the same and not try to * gather additional information that normally would * come from the eeprom, like MAC Address */ adapter->has_eeprom = 0; return -EIO;

Java JDK

Jar
Java, http://java.com/

HTML5 CSS3 JavaScript Appcelerator Titanium Mobile App

Appcelerator Titanium, http://www.appcelerator.com/

Write once, run anywhere


$ make os=MACOSX $ make os=LINUX $ make os=WINDOWS $ make os=SOLARIS $ make deploy $ make money

SourceT ree, http://www.sourcetreeapp.com/

<?xml version="1.0"?> <package version="2.0" xmlns="http://www.idpf.org/2007/opf" unique-identifier="BookId"> <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf"> <dc:title>Pride and Prejudice</dc:title> <dc:language>en</dc:language> <dc:identifier id="BookId" opf:scheme="ISBN">123456789X</dc:identifier> <dc:creator opf:file-as="Austen, Jane" opf:role="aut">Jane Austen</dc:creator> </metadata> <manifest> <item id="chapter1" href="chapter1.xhtml" media-type="application/xhtml+xml"/> <item id="stylesheet" href="style.css" media-type="text/css"/> <item id="ch1-pic" href="ch1-pic.png" media-type="image/png"/> <item id="myfont" href="css/myfont.otf" media-type="application/x-font-opentype"/> <item id="ncx" href="book.ncx" media-type="application/x-dtbncx+xml"/> </manifest> <spine toc="ncx"> <itemref idref="chapter1" /> </spine> <guide> <reference type="loi" title="List Of Illustrations" href="appendix.html#figures" /> </guide> </package>

<body> <div class="chapter" title="Chapter&nbsp;1.&nbsp;What Is EPUB 3?"> <div class="titlepage"> <h1 class="title"><a id="what_is_epub_3_question"></a>What Is EPUB 3?</h1> </div> <div class="sect1" title="EPUB 3 in a Nutshell"> <div class="titlepage"> <h1 class="title"><a id="epub_3_in_a_nutshell"></a>EPUB 3 in a Nutshell</h1> </div> <p>So what exactly is an EPUB? If you follow electronic publishing at all, youve undoubtedly run into the term, but you may have seen or heard it incorrectly being used as a synonym for ebook&mdash;as a shorthand for talking about <span class="emphasis"><em>electronic</em></span> <span class="emphasis"><em>books</ em></span>. Although the two terms share a common relation in electronic book production, they arent interchangeable. EPUB, as were here to discover, is a <span class="emphasis"><em>format</em></span> for representing documents in electronic form. Ebook, on the other hand, is just an abstract term used to encompass any electronic representation of a book, and includes formats such as PDF, HTML, ASCII text, Word, and a host of others, in addition to EPUB.</p>
OReilly, What Is EPUB 3 ?, http://goo.gl/X51CK

Sigil, http://code.google.com/p/sigil/

? ?
eBooks
TXT, EPUB, MOBI, PDF, CHM, ...

Write once, read anywhere


$ make type=EPUB $ make type=EPUB3 $ make type=MOBI $ make type=KF8 $ make type=PDF $ make type=HTML $ make type=CHM $ make type=TXT $ make publish $ make money

v.s.
<h1>What is EPUB?</h1> <p>The most widely accepted format for ebooks today is EPUB, which is developed and maintained by the IDPF.

You can find the official specification ...

Elizabeth Castro, EPUB Straight to the Point

<h1>What is EPUB?</h1> What is EPUB?(Heading) What is EPUB? What is EPUB?

What is EPUB? ============ The most widely accepted **format** for ebooks today is EPUB, which is developed and maintained by the IDPF. Ebook Formats --------------* epub * pdf * mobi * html

WYSIWYG Plain T ext

Chapter 1. What Is EPUB 3? ====================== EPUB 3 in a Nutshell ----------------------------So what exactly is an EPUB? If you follow electronic publishing at all, youve undoubtedly run into the term, but you may have seen or heard it incorrectly being used as a synonym for ebook -- as a shorthand for talking about **electronic books**. Although the two terms share a common relation in electronic book production, they arent interchangeable.

Sigil

Chapter 1. What Is EPUB 3? ====================== EPUB 3 in a Nutshell ----------------------------So what exactly is an EPUB? If you follow electronic publishing at all, youve undoubtedly run into the term, but you may have seen or heard it incorrectly being used as a synonym for ebook -- as a shorthand for talking about **electronic books**. Although the two terms share a common relation in electronic book production, they arent interchangeable.

1989

2010

Chapter 1. What Is EPUB 3? ========================== EPUB 3 in a Nutshell -------------------So what exactly is an EPUB? If you follow electronic publishing at all, youve undoubtedly run into the term, but you may have seen or heard it incorrectly being used as a synonym for ebook -- as a shorthand for talking about **electronic books**. Although the two terms share a common relation in electronic book production, they arent interchangeable.

Chapter 1. What Is EPUB 3? ====================== EPUB 3 in a Nutshell ----------------------------So what exactly is an EPUB? If you follow electronic publishing at all, youve undoubtedly run into the term, but you may have seen or heard it incorrectly being used as a synonym for ebook -- as a shorthand for talking about **electronic books**. Although the two terms share a common relation in electronic book production, they arent interchangeable.

Markdown
Syntax + Software T ext-to-HTML easy-to-read easy-to-write

http://daringfireball.net/projects/markdown/

notepag.es

==========

<h1></h1> <h2></h2>

------------

Markdown http://markdown.tw/ , http://goo.gl/0pBEy


> > > >
<blockquote> </blockquote>

http://markdown.tw/ , http://ce.fhl.net/desert/


* * * * <p></p> <ol> <li></li> <li></li> <li></li> <li></li> <li></li> </ol> <p></p> <ul> <li></li> <li></li> <li></li> <li></li> </ul>

1. 2. 3. 4. 5. ! !

http://markdown.tw/


** ******* ***
<p><strong></ strong><em></em><strong> <em></em></strong> </p> <p></p>

Markdown http://markdown.tw/ , http://goo.gl/0pBEy


![Cover](/path/to/img.jpg) [Plurk](http://plurk.com/)

mouapp.com

Chapter 1. What Is EPUB 3? ======================

Markdown

EPUB 3 in a Nutshell ----------------------------So what exactly is an EPUB? If you follow electronic publishing at all,

eBooks

TXT, EPUB, MOBI, PDF, CHM, ...

Pandoc a universal document converter


pandoc -f markdown -t epub source.txt -o target.epub

Chapter 1. What Is EPUB 3? ====================== EPUB 3 in a Nutshell ----------------------------So what exactly is an EPUB? If you follow electronic publishing at all,

Pandoc, http://johnmacfarlane.net/pandoc/

Pandoc a universal document converter


pandoc -f markdown -t epub source.txt -o target.epub

pandoc -f markdown -t html source.txt -o target.html

pandoc -f markdown -t latex source.txt -o target.tex xelatex target.tex

Pandoc, http://johnmacfarlane.net/pandoc/

======== ---* * * *

---* * *

ePUB
Markdown

Leanpub
Publish Early, Publish Often http://leanpub.com/

Book as a Service

Service

!
plain

plain t ext pla in text plain t ext pla in text


text

text

plain

text

plain
n

t l a i n ext p t e x t plain t p l a i n in text


pla

plain text plain xttext te ext


plai

RSS ...

Continuous Publishing

Contpub
Continuous Publishing contpub.org

Contpub

http://contpub.org/

Contpub

http://contpub.org/

Contpub

http://contpub.org/

Don't Reinvent The Wheel

http://sphinx.pocoo.org/

http://docutils.sourceforge.net/rst.html

http://www.latex-project.org/ http://www.tug.org/texlive/

http://xmlgraphics.apache.org/fop/

But...

? EPUB3?

Open source projects


sphinx-cook sphinx-themes SimaQian CaiLun

http://github.com/contpub

The End

You might also like