SlideShare una empresa de Scribd logo
1 de 50
Descargar para leer sin conexión
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 Statusn");
         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%04xn", 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
SourceTree, 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, you’ve
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 aren’t interchangeable. EPUB, as we’re 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>


                                  O’Reilly, 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 publish
$ make type=PDF     $ make money
$ make type=HTML
$ make type=CHM
$ make type=TXT
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 Text
Chapter 1. What Is EPUB 3?
======================

EPUB 3 in a Nutshell
-----------------------------

So what exactly is an EPUB? If you follow electronic
publishing at all, youʼve 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 arenʼt
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, youʼve 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 arenʼt
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, you’ve 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
aren’t 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, youʼve 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
                                 arenʼt interchangeable.
Markdown

Syntax + Software
Text-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>
1.   !          <li>           </li>
2.         !    <li>           </li>
3.              <li>           </li>
4.              <li>           </li>
5.              </ul>

         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 t
                           !
 plain       ext pla
                     in text
            text             plain t
                                     ext pla
                     plain                   in text


      !                         text
                                         plain
                                                       text
                                                              RSS
     plain text plain xttext
                ext te          t             n
                     p l a i n ext     plai
             t e x t plain t
  p l a i n in text
         pla


                                                              ...




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://xmlgraphics.apache.org/fop/
     http://www.tug.org/texlive/
But...


          ?
 EPUB3?
Open source projects

sphinx-cook
sphinx-themes
SimaQian
CaiLun

  http://github.com/contpub
The End

Más contenido relacionado

La actualidad más candente

La actualidad más candente (14)

Get Thee Behind Me: Making BuddyPress do thine bidding
Get Thee Behind Me: Making BuddyPress do thine biddingGet Thee Behind Me: Making BuddyPress do thine bidding
Get Thee Behind Me: Making BuddyPress do thine bidding
 
Phpvsjsp
PhpvsjspPhpvsjsp
Phpvsjsp
 
WebShell - confoo 2011 - sean coates
WebShell - confoo 2011 - sean coatesWebShell - confoo 2011 - sean coates
WebShell - confoo 2011 - sean coates
 
Wordpress Meetup 2 23 10
Wordpress Meetup 2 23 10Wordpress Meetup 2 23 10
Wordpress Meetup 2 23 10
 
Session no 1
Session no 1Session no 1
Session no 1
 
Introduction to python scrapping
Introduction to python scrappingIntroduction to python scrapping
Introduction to python scrapping
 
ACTC 2013 Website Building Notes
ACTC 2013 Website Building NotesACTC 2013 Website Building Notes
ACTC 2013 Website Building Notes
 
Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
SPDY
SPDYSPDY
SPDY
 
With Great Nerdery Comes Great Responsibility
With Great Nerdery Comes Great Responsibility With Great Nerdery Comes Great Responsibility
With Great Nerdery Comes Great Responsibility
 
Theming for BuddyPress
Theming for BuddyPressTheming for BuddyPress
Theming for BuddyPress
 
Session no 1 html
Session no 1 htmlSession no 1 html
Session no 1 html
 
API Design - 3rd Edition
API Design - 3rd EditionAPI Design - 3rd Edition
API Design - 3rd Edition
 

Destacado

ethniciti: African-Inspired Home Fashion
ethniciti: African-Inspired Home Fashionethniciti: African-Inspired Home Fashion
ethniciti: African-Inspired Home FashionJeffrey St. Clair
 
TRANSFORMATIONS IN SOUTHERN AFRICA AFTER 1750:Political revolution in the eas...
TRANSFORMATIONS IN SOUTHERN AFRICA AFTER 1750:Political revolution in the eas...TRANSFORMATIONS IN SOUTHERN AFRICA AFTER 1750:Political revolution in the eas...
TRANSFORMATIONS IN SOUTHERN AFRICA AFTER 1750:Political revolution in the eas...Maretha Spies
 
African Culture
African CultureAfrican Culture
African Culturemarxer
 

Destacado (8)

ethniciti: African-Inspired Home Fashion
ethniciti: African-Inspired Home Fashionethniciti: African-Inspired Home Fashion
ethniciti: African-Inspired Home Fashion
 
Zulu original
Zulu originalZulu original
Zulu original
 
The Zulu Tribe
The Zulu TribeThe Zulu Tribe
The Zulu Tribe
 
TRANSFORMATIONS IN SOUTHERN AFRICA AFTER 1750:Political revolution in the eas...
TRANSFORMATIONS IN SOUTHERN AFRICA AFTER 1750:Political revolution in the eas...TRANSFORMATIONS IN SOUTHERN AFRICA AFTER 1750:Political revolution in the eas...
TRANSFORMATIONS IN SOUTHERN AFRICA AFTER 1750:Political revolution in the eas...
 
Anglo zulu guda
Anglo zulu guda Anglo zulu guda
Anglo zulu guda
 
The zulu girl ppt
The zulu girl pptThe zulu girl ppt
The zulu girl ppt
 
PORTFOLIO
PORTFOLIOPORTFOLIO
PORTFOLIO
 
African Culture
African CultureAfrican Culture
African Culture
 

Similar a 開放源碼電子書與EPUB幕後排版

Plagger the duct tape of internet
Plagger the duct tape of internetPlagger the duct tape of internet
Plagger the duct tape of internetTatsuhiko Miyagawa
 
JSUG - Spring by Christoph Pickl
JSUG - Spring by Christoph PicklJSUG - Spring by Christoph Pickl
JSUG - Spring by Christoph PicklChristoph Pickl
 
Automate Yo'self -- SeaGL
Automate Yo'self -- SeaGL Automate Yo'self -- SeaGL
Automate Yo'self -- SeaGL John Anderson
 
ePUB 3 and Publishing e-books
ePUB 3 and Publishing e-booksePUB 3 and Publishing e-books
ePUB 3 and Publishing e-booksKerem Karatal
 
How to use cache scope component
How to use cache scope componentHow to use cache scope component
How to use cache scope componentprathyusha vadla
 
Project gutenberg's the fables of la fontaine
Project gutenberg's the fables of la fontaineProject gutenberg's the fables of la fontaine
Project gutenberg's the fables of la fontaineAndrei Hortúa
 
Weird Plsql
Weird PlsqlWeird Plsql
Weird Plsqlwebanddb
 
Unix shell scripting basics
Unix shell scripting basicsUnix shell scripting basics
Unix shell scripting basicsAbhay Sapru
 
Unix Shell Scripting Basics
Unix Shell Scripting BasicsUnix Shell Scripting Basics
Unix Shell Scripting BasicsDr.Ravi
 
Polyglot payloads in practice by avlidienbrunn at HackPra
Polyglot payloads in practice by avlidienbrunn at HackPraPolyglot payloads in practice by avlidienbrunn at HackPra
Polyglot payloads in practice by avlidienbrunn at HackPraMathias Karlsson
 
Creating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsCreating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsRicardo Varela
 
Troubleshooting Plone
Troubleshooting PloneTroubleshooting Plone
Troubleshooting PloneRicado Alves
 

Similar a 開放源碼電子書與EPUB幕後排版 (20)

Plagger the duct tape of internet
Plagger the duct tape of internetPlagger the duct tape of internet
Plagger the duct tape of internet
 
PHP 5 Sucks. PHP 5 Rocks.
PHP 5 Sucks. PHP 5 Rocks.PHP 5 Sucks. PHP 5 Rocks.
PHP 5 Sucks. PHP 5 Rocks.
 
JSUG - Spring by Christoph Pickl
JSUG - Spring by Christoph PicklJSUG - Spring by Christoph Pickl
JSUG - Spring by Christoph Pickl
 
Automate Yo'self -- SeaGL
Automate Yo'self -- SeaGL Automate Yo'self -- SeaGL
Automate Yo'self -- SeaGL
 
Automate Yo' Self
Automate Yo' SelfAutomate Yo' Self
Automate Yo' Self
 
Web As A Platform
Web As A PlatformWeb As A Platform
Web As A Platform
 
ePUB 3 and Publishing e-books
ePUB 3 and Publishing e-booksePUB 3 and Publishing e-books
ePUB 3 and Publishing e-books
 
Introduction To JSFL
Introduction To JSFLIntroduction To JSFL
Introduction To JSFL
 
How to use cache scope component
How to use cache scope componentHow to use cache scope component
How to use cache scope component
 
Project gutenberg's the fables of la fontaine
Project gutenberg's the fables of la fontaineProject gutenberg's the fables of la fontaine
Project gutenberg's the fables of la fontaine
 
YQL Overview
YQL OverviewYQL Overview
YQL Overview
 
Weird Plsql
Weird PlsqlWeird Plsql
Weird Plsql
 
Basic Linux Configurations
Basic Linux ConfigurationsBasic Linux Configurations
Basic Linux Configurations
 
Bioinformatica 27-10-2011-p4-files
Bioinformatica 27-10-2011-p4-filesBioinformatica 27-10-2011-p4-files
Bioinformatica 27-10-2011-p4-files
 
Unix shell scripting basics
Unix shell scripting basicsUnix shell scripting basics
Unix shell scripting basics
 
Unix Shell Scripting Basics
Unix Shell Scripting BasicsUnix Shell Scripting Basics
Unix Shell Scripting Basics
 
Polyglot payloads in practice by avlidienbrunn at HackPra
Polyglot payloads in practice by avlidienbrunn at HackPraPolyglot payloads in practice by avlidienbrunn at HackPra
Polyglot payloads in practice by avlidienbrunn at HackPra
 
Demystifying Maven
Demystifying MavenDemystifying Maven
Demystifying Maven
 
Creating Yahoo Mobile Widgets
Creating Yahoo Mobile WidgetsCreating Yahoo Mobile Widgets
Creating Yahoo Mobile Widgets
 
Troubleshooting Plone
Troubleshooting PloneTroubleshooting Plone
Troubleshooting Plone
 

Más de Kyle Lin

物件導向系統分析與設計(建國)
物件導向系統分析與設計(建國)物件導向系統分析與設計(建國)
物件導向系統分析與設計(建國)Kyle Lin
 
淺談 Geb 網站自動化測試(JCConf 2014)
淺談 Geb 網站自動化測試(JCConf 2014)淺談 Geb 網站自動化測試(JCConf 2014)
淺談 Geb 網站自動化測試(JCConf 2014)Kyle Lin
 
Android 智慧型手機程式設計
Android 智慧型手機程式設計Android 智慧型手機程式設計
Android 智慧型手機程式設計Kyle Lin
 
淺談 Groovy 與 AWS 雲端應用開發整合
淺談 Groovy 與 AWS 雲端應用開發整合淺談 Groovy 與 AWS 雲端應用開發整合
淺談 Groovy 與 AWS 雲端應用開發整合Kyle Lin
 
行動應用開發實務 - Gradle 介紹
行動應用開發實務 - Gradle 介紹行動應用開發實務 - Gradle 介紹
行動應用開發實務 - Gradle 介紹Kyle Lin
 
2013 TQC+ Java 認證研習簡報
2013 TQC+ Java 認證研習簡報2013 TQC+ Java 認證研習簡報
2013 TQC+ Java 認證研習簡報Kyle Lin
 
FarmLogs 農場管理軟體預覽
FarmLogs 農場管理軟體預覽FarmLogs 農場管理軟體預覽
FarmLogs 農場管理軟體預覽Kyle Lin
 
TQC+物件導向程式語言Java認證班(和春資工)
TQC+物件導向程式語言Java認證班(和春資工)TQC+物件導向程式語言Java認證班(和春資工)
TQC+物件導向程式語言Java認證班(和春資工)Kyle Lin
 
Wiki 簡介與操作說明
Wiki 簡介與操作說明Wiki 簡介與操作說明
Wiki 簡介與操作說明Kyle Lin
 
Tqc+ 物件導向程式語言(java)認證研習會
Tqc+ 物件導向程式語言(java)認證研習會Tqc+ 物件導向程式語言(java)認證研習會
Tqc+ 物件導向程式語言(java)認證研習會Kyle Lin
 
ContPub 雲端電子書自助出版平台
ContPub 雲端電子書自助出版平台ContPub 雲端電子書自助出版平台
ContPub 雲端電子書自助出版平台Kyle Lin
 
TQC+團報系統學生版(雲科資管)
TQC+團報系統學生版(雲科資管)TQC+團報系統學生版(雲科資管)
TQC+團報系統學生版(雲科資管)Kyle Lin
 
TQC+ Java 認證研習
TQC+ Java 認證研習TQC+ Java 認證研習
TQC+ Java 認證研習Kyle Lin
 
20101220架構討論
20101220架構討論20101220架構討論
20101220架構討論Kyle Lin
 
Asp net (1)
Asp net  (1)Asp net  (1)
Asp net (1)Kyle Lin
 
iisnode Test Drive
iisnode Test Driveiisnode Test Drive
iisnode Test DriveKyle Lin
 
TQC+ Java 全國教師研習會 PLWeb 介紹
TQC+ Java 全國教師研習會 PLWeb 介紹TQC+ Java 全國教師研習會 PLWeb 介紹
TQC+ Java 全國教師研習會 PLWeb 介紹Kyle Lin
 
Modern Browser as a Programming Editor
Modern Browser as a Programming EditorModern Browser as a Programming Editor
Modern Browser as a Programming EditorKyle Lin
 

Más de Kyle Lin (19)

物件導向系統分析與設計(建國)
物件導向系統分析與設計(建國)物件導向系統分析與設計(建國)
物件導向系統分析與設計(建國)
 
淺談 Geb 網站自動化測試(JCConf 2014)
淺談 Geb 網站自動化測試(JCConf 2014)淺談 Geb 網站自動化測試(JCConf 2014)
淺談 Geb 網站自動化測試(JCConf 2014)
 
Android 智慧型手機程式設計
Android 智慧型手機程式設計Android 智慧型手機程式設計
Android 智慧型手機程式設計
 
淺談 Groovy 與 AWS 雲端應用開發整合
淺談 Groovy 與 AWS 雲端應用開發整合淺談 Groovy 與 AWS 雲端應用開發整合
淺談 Groovy 與 AWS 雲端應用開發整合
 
行動應用開發實務 - Gradle 介紹
行動應用開發實務 - Gradle 介紹行動應用開發實務 - Gradle 介紹
行動應用開發實務 - Gradle 介紹
 
2013 TQC+ Java 認證研習簡報
2013 TQC+ Java 認證研習簡報2013 TQC+ Java 認證研習簡報
2013 TQC+ Java 認證研習簡報
 
FarmLogs 農場管理軟體預覽
FarmLogs 農場管理軟體預覽FarmLogs 農場管理軟體預覽
FarmLogs 農場管理軟體預覽
 
TQC+物件導向程式語言Java認證班(和春資工)
TQC+物件導向程式語言Java認證班(和春資工)TQC+物件導向程式語言Java認證班(和春資工)
TQC+物件導向程式語言Java認證班(和春資工)
 
Wiki 簡介與操作說明
Wiki 簡介與操作說明Wiki 簡介與操作說明
Wiki 簡介與操作說明
 
Tqc+ 物件導向程式語言(java)認證研習會
Tqc+ 物件導向程式語言(java)認證研習會Tqc+ 物件導向程式語言(java)認證研習會
Tqc+ 物件導向程式語言(java)認證研習會
 
ContPub 雲端電子書自助出版平台
ContPub 雲端電子書自助出版平台ContPub 雲端電子書自助出版平台
ContPub 雲端電子書自助出版平台
 
TQC+團報系統學生版(雲科資管)
TQC+團報系統學生版(雲科資管)TQC+團報系統學生版(雲科資管)
TQC+團報系統學生版(雲科資管)
 
TQC+ Java 認證研習
TQC+ Java 認證研習TQC+ Java 認證研習
TQC+ Java 認證研習
 
20101220架構討論
20101220架構討論20101220架構討論
20101220架構討論
 
Asp net (1)
Asp net  (1)Asp net  (1)
Asp net (1)
 
Asp net
Asp net Asp net
Asp net
 
iisnode Test Drive
iisnode Test Driveiisnode Test Drive
iisnode Test Drive
 
TQC+ Java 全國教師研習會 PLWeb 介紹
TQC+ Java 全國教師研習會 PLWeb 介紹TQC+ Java 全國教師研習會 PLWeb 介紹
TQC+ Java 全國教師研習會 PLWeb 介紹
 
Modern Browser as a Programming Editor
Modern Browser as a Programming EditorModern Browser as a Programming Editor
Modern Browser as a Programming Editor
 

Último

Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 

Último (20)

Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 

開放源碼電子書與EPUB幕後排版

  • 1. ePUB /
  • 3. Work e PLWeb , http://plweb.org/
  • 4. Java , http://java.plweb.org/
  • 6. if (pci_read_config_byte(pdev, ET1310_PCI_EEPROM_STATUS, &eestatus)) { dev_err(&pdev->dev, "Could not read PCI config space for EEPROM Statusn"); 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%04xn", 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; }
  • 8. HTML5 CSS3 JavaScript Appcelerator Titanium Mobile App Appcelerator Titanium, http://www.appcelerator.com/
  • 9. Write once, run anywhere
  • 10. $ make os=MACOSX $ make os=LINUX $ make os=WINDOWS $ make os=SOLARIS $ make deploy $ make money
  • 12. <?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>
  • 13. <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, you’ve 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 aren’t interchangeable. EPUB, as we’re 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> O’Reilly, What Is EPUB 3 ?, http://goo.gl/X51CK
  • 15. ? ? eBooks TXT, EPUB, MOBI, PDF, CHM, ...
  • 16. Write once, read anywhere
  • 17. $ make type=EPUB $ make type=EPUB3 $ make type=MOBI $ make type=KF8 $ make publish $ make type=PDF $ make money $ make type=HTML $ make type=CHM $ make type=TXT
  • 18.
  • 19. 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
  • 20. <h1>What is EPUB?</h1> What is EPUB?(Heading) What is EPUB? What is EPUB?
  • 21. 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 Text
  • 22. Chapter 1. What Is EPUB 3? ====================== EPUB 3 in a Nutshell ----------------------------- So what exactly is an EPUB? If you follow electronic publishing at all, youʼve 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 arenʼt interchangeable. Sigil
  • 23. Chapter 1. What Is EPUB 3? ====================== EPUB 3 in a Nutshell ----------------------------- So what exactly is an EPUB? If you follow electronic publishing at all, youʼve 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 arenʼt interchangeable. ?
  • 25. Chapter 1. What Is EPUB 3? ========================== EPUB 3 in a Nutshell -------------------- So what exactly is an EPUB? If you follow electronic publishing at all, you’ve 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 aren’t 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, youʼve 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 arenʼt interchangeable.
  • 26. Markdown Syntax + Software Text-to-HTML easy-to-read easy-to-write http://daringfireball.net/projects/markdown/
  • 28. <h1> </h1> ========== <h2> </h2> ------------ Markdown http://markdown.tw/ , http://goo.gl/0pBEy
  • 29. > <blockquote> > > > </blockquote> http://markdown.tw/ , http://ce.fhl.net/desert/
  • 30. <p> </p> <ol> <li> </li> * <li> </li> * <li> </li> * <li> </li> * <li> </li> </ol> <p> </p> <ul> 1. ! <li> </li> 2. ! <li> </li> 3. <li> </li> 4. <li> </li> 5. </ul> http://markdown.tw/
  • 31. ** <p> <strong> </ ** * * *** strong> <em> </em> <strong> *** <em> </em></strong> </p> <p> </p> Markdown http://markdown.tw/ , http://goo.gl/0pBEy
  • 34. 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, ...
  • 35. +
  • 36. 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/
  • 37. 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/
  • 38.
  • 40. Leanpub Publish Early, Publish Often http://leanpub.com/
  • 41. Book as a Service Service
  • 42. ! plain t ! plain ext pla in text text plain t ext pla plain in text ! text plain text RSS plain text plain xttext ext te t n p l a i n ext plai t e x t plain t p l a i n in text pla ... Continuous Publishing
  • 44. Contpub http://contpub.org/
  • 45. Contpub http://contpub.org/
  • 46. Contpub http://contpub.org/
  • 47. Don't Reinvent The Wheel http://sphinx.pocoo.org/ http://docutils.sourceforge.net/rst.html http://www.latex-project.org/ http://xmlgraphics.apache.org/fop/ http://www.tug.org/texlive/
  • 48. But... ? EPUB3?