SlideShare ist ein Scribd-Unternehmen logo
1 von 58
Downloaden Sie, um offline zu lesen
an
   API
   for
  books
@hughmcguire

pressbooks.com
To Do List:

1. start thinking of books as [stuff].

2. think about how we make books

        3. look at examples

  4. wonder: is this easy or hard?
What is a book?
My definition:

“A book is a discrete collection of text (and
     other media), that is designed by the
    author(s) as an internally complete
  representation of an idea, or set of ideas;
       emotion or set of emotions; and
 transmitted to readers in various formats.”
What’s in a book?
joy!
         pleasure!
      knowledge!
       characters!
    fictional people!
      real people!
          places!
        concepts!
        footnotes!
       references!
lots and lots of other ...
THINGS!
(and: things that we can name).
What is an API?
Terry Jones’s Definition:

“Just as a User Interface gives humans
  access to information, an API gives
   programs access to information.”
What is a (book) API’s job?
“To give other services the ability to
use [the stuff] in your books, under
       defined circumstances.”
An API is
     another mechanism
by which a publisher can do its
        job, which is:

       “to make public”
    the contents of a book
  (under certain commercial
        arrangements)
HOW:
Start with your
    INDEX.
What is an index’s job?
Shakespeare’s Answer:

“And in such indexes, although small pricks
 To their subsequent volumes, there is seen
      The baby figure of the giant mass
         Of things to come at large.”

            (Troilus and Cessida).
What does a paper index look like?
What does an ebook index look like?
That there is a link!
<a href="/chapter3/index-entry-78">Dracula</a>

<a href="/chapter4/index-entry-101">May 1, 1893</a>
<a href="/chapter1/index-entry-122">Munich</a>
<a href="/chapter9/index-entry-11">Murder</a>

<a href="/chapter10/index-entry-68">Succotash</a>
<a href="/chapter6/index-entry-99">Smith, Dr.</a>
<a href="/chapter16/index-entry-119">Sambuca</a>

<a href="/chapter15/index-entry-199">Vienna</a>
<a href="/chapter2/index-entry-666">Veins</a>
Jonathan Harker’s Journal:
3 May. Bistritz.

Left Munich at 8:35 P.M., on 1st May,
arriving at Vienna early next morning ...the
post town named by Count Dracula, is a
fairly well-known place....
Left Munich at 8:35 P.M., on 1st
May, arriving at Vienna early
next morning ... the post town
named by Count Dracula, is a
fairly well-known place....
Left <a id="index-entry-122">Munich</a>
at 8:35 P.M., on <a id="index-
entry-101">1st May</a>, arriving at <a
id="index-entry-199">Vienna</a> early
next morning... the post town named by
<a id="index-entry-99">Count Dracula</
a>, is a fairly well-known place...
What does a smart index look
            like?
Left <a id="index-entry-122"
class=”place”>Munich</a> at 8:35 P.M.,
on <a id="index-entry-101"
class=”date”>1st May</a>, arriving at <a
id="index-entry-199"
class=”place”>Vienna</a> early next
morning...the post town named by <a
id="index-entry-99" class=”person”>Count
Dracula</a>, is a fairly well-known
place...
<a href="/chapter3/index-entry-78" class=”person”>Dracula</a>

<a href="/chapter4/index-entry-101" class=”date”>May 1, 1893</
a>
<a href="/chapter1/index-entry-122" class=”place”>Munich</a>
<a href="/chapter9/index-entry-11" class=”cause-of-
death”>Murder</a>

<a href="/chapter10/index-entry-68" class=”food”>Succotash</a>
<a href="/chapter6/index-entry-99" class=”person”>Smith, Dr.</
a>
<a href="/chapter16/index-entry-119" class=”food
drink”>Sambuca</a>

<a href="/chapter15/index-entry-199" class=”place”>Vienna</a>
<a href="/chapter2/index-entry-666" class=”body-part”>Veins</
a>
HEY!

THAT’S AN API!

THAT WAS EASY!
What can we do with a book API?
We can build different interfaces
that allow readers to engage in
         different ways.
The Pulp interface.
image: Gleann Ignacio
The Bits interface.
Image: Rebekah Ford
The
“what stuff is mentioned in this
              book”
           interface:

        Small Demons.
The
“who is reading this and what are
      they saying about it”
            interface:

           Readmill.
The
“Let’s explode this book and put it back
       together in a very cool way”
                interface:

          Dracula Dissected.

     bit.ly/draculadissected
IS THIS HARD?
Not if you use a good
         book-based
content management system.
        (like PressBooks!).
Conclusions:
1.
Books are made of stuff that can be
             named
2.
 If you name stuff in your HTML
   (while indexing!), then we can
(easily) build new uses/interfaces
  for our books, such as Dracula
             Dissected.
3.
        <shameless_plug>
    If you use something like
 PressBooks to make your books,
making Dracula Dissected becomes
              easy.
       </shameless_plug>
So ... What is a book?
My definition:

“A book is a discrete collection of text (and
    other media), that is designed by the
   author(s) as an internally complete
 representation of an idea, or set of ideas;
       emotion or set of emotions...

             ... with an API.”
Talk to me about dissecting your
            Dracula!

    hugh@pressbooks.com
       @hughmcguire

    http://pressbooks.com

Weitere ähnliche Inhalte

Mehr von Hugh McGuire

Mehr von Hugh McGuire (12)

What PressBooks Does to WordPress
What PressBooks Does to WordPressWhat PressBooks Does to WordPress
What PressBooks Does to WordPress
 
8 Reflections on New Book Production Workflows
8 Reflections on New Book Production Workflows8 Reflections on New Book Production Workflows
8 Reflections on New Book Production Workflows
 
Book as URL
Book as URLBook as URL
Book as URL
 
Opening the Book
Opening the BookOpening the Book
Opening the Book
 
Pressbooks Demo Deck
Pressbooks Demo DeckPressbooks Demo Deck
Pressbooks Demo Deck
 
Why Books & the Internet Will Merge
Why Books & the Internet Will MergeWhy Books & the Internet Will Merge
Why Books & the Internet Will Merge
 
PivotCamp preso
PivotCamp presoPivotCamp preso
PivotCamp preso
 
Open, Webby Book Publishing
Open, Webby Book PublishingOpen, Webby Book Publishing
Open, Webby Book Publishing
 
Four Reasons to be Worried about Publishing
Four Reasons to be Worried about PublishingFour Reasons to be Worried about Publishing
Four Reasons to be Worried about Publishing
 
Ten Thoughts on Social Media & Marketing
Ten Thoughts on Social Media & MarketingTen Thoughts on Social Media & Marketing
Ten Thoughts on Social Media & Marketing
 
Ceci n'est pas une book
Ceci n'est pas une bookCeci n'est pas une book
Ceci n'est pas une book
 
How to Build an Unsuccessful Start-Up
How to Build an Unsuccessful Start-UpHow to Build an Unsuccessful Start-Up
How to Build an Unsuccessful Start-Up
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

Book as API (Hugh McGuire)

  • 1. an API for books @hughmcguire pressbooks.com
  • 2. To Do List: 1. start thinking of books as [stuff]. 2. think about how we make books 3. look at examples 4. wonder: is this easy or hard?
  • 3. What is a book?
  • 4. My definition: “A book is a discrete collection of text (and other media), that is designed by the author(s) as an internally complete representation of an idea, or set of ideas; emotion or set of emotions; and transmitted to readers in various formats.”
  • 6. joy! pleasure! knowledge! characters! fictional people! real people! places! concepts! footnotes! references! lots and lots of other ...
  • 8. What is an API?
  • 9. Terry Jones’s Definition: “Just as a User Interface gives humans access to information, an API gives programs access to information.”
  • 10. What is a (book) API’s job?
  • 11. “To give other services the ability to use [the stuff] in your books, under defined circumstances.”
  • 12. An API is another mechanism by which a publisher can do its job, which is: “to make public” the contents of a book (under certain commercial arrangements)
  • 13. HOW:
  • 14. Start with your INDEX.
  • 15. What is an index’s job?
  • 16. Shakespeare’s Answer: “And in such indexes, although small pricks To their subsequent volumes, there is seen The baby figure of the giant mass Of things to come at large.” (Troilus and Cessida).
  • 17. What does a paper index look like?
  • 18.
  • 19. What does an ebook index look like?
  • 20.
  • 21. That there is a link!
  • 22. <a href="/chapter3/index-entry-78">Dracula</a> <a href="/chapter4/index-entry-101">May 1, 1893</a> <a href="/chapter1/index-entry-122">Munich</a> <a href="/chapter9/index-entry-11">Murder</a> <a href="/chapter10/index-entry-68">Succotash</a> <a href="/chapter6/index-entry-99">Smith, Dr.</a> <a href="/chapter16/index-entry-119">Sambuca</a> <a href="/chapter15/index-entry-199">Vienna</a> <a href="/chapter2/index-entry-666">Veins</a>
  • 23. Jonathan Harker’s Journal: 3 May. Bistritz. Left Munich at 8:35 P.M., on 1st May, arriving at Vienna early next morning ...the post town named by Count Dracula, is a fairly well-known place....
  • 24. Left Munich at 8:35 P.M., on 1st May, arriving at Vienna early next morning ... the post town named by Count Dracula, is a fairly well-known place....
  • 25. Left <a id="index-entry-122">Munich</a> at 8:35 P.M., on <a id="index- entry-101">1st May</a>, arriving at <a id="index-entry-199">Vienna</a> early next morning... the post town named by <a id="index-entry-99">Count Dracula</ a>, is a fairly well-known place...
  • 26. What does a smart index look like?
  • 27. Left <a id="index-entry-122" class=”place”>Munich</a> at 8:35 P.M., on <a id="index-entry-101" class=”date”>1st May</a>, arriving at <a id="index-entry-199" class=”place”>Vienna</a> early next morning...the post town named by <a id="index-entry-99" class=”person”>Count Dracula</a>, is a fairly well-known place...
  • 28. <a href="/chapter3/index-entry-78" class=”person”>Dracula</a> <a href="/chapter4/index-entry-101" class=”date”>May 1, 1893</ a> <a href="/chapter1/index-entry-122" class=”place”>Munich</a> <a href="/chapter9/index-entry-11" class=”cause-of- death”>Murder</a> <a href="/chapter10/index-entry-68" class=”food”>Succotash</a> <a href="/chapter6/index-entry-99" class=”person”>Smith, Dr.</ a> <a href="/chapter16/index-entry-119" class=”food drink”>Sambuca</a> <a href="/chapter15/index-entry-199" class=”place”>Vienna</a> <a href="/chapter2/index-entry-666" class=”body-part”>Veins</ a>
  • 30. What can we do with a book API?
  • 31. We can build different interfaces that allow readers to engage in different ways.
  • 36. The “what stuff is mentioned in this book” interface: Small Demons.
  • 37.
  • 38. The “who is reading this and what are they saying about it” interface: Readmill.
  • 39.
  • 40. The “Let’s explode this book and put it back together in a very cool way” interface: Dracula Dissected. bit.ly/draculadissected
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 51. Not if you use a good book-based content management system. (like PressBooks!).
  • 53. 1. Books are made of stuff that can be named
  • 54. 2. If you name stuff in your HTML (while indexing!), then we can (easily) build new uses/interfaces for our books, such as Dracula Dissected.
  • 55. 3. <shameless_plug> If you use something like PressBooks to make your books, making Dracula Dissected becomes easy. </shameless_plug>
  • 56. So ... What is a book?
  • 57. My definition: “A book is a discrete collection of text (and other media), that is designed by the author(s) as an internally complete representation of an idea, or set of ideas; emotion or set of emotions... ... with an API.”
  • 58. Talk to me about dissecting your Dracula! hugh@pressbooks.com @hughmcguire http://pressbooks.com