SlideShare une entreprise Scribd logo
1  sur  58
Télécharger pour lire hors ligne
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

Contenu connexe

Plus de Hugh McGuire

Plus de 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
 

Dernier

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Dernier (20)

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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.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
 
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
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
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.
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

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