A prototype ebook for Emily Carr University’s Social + Interactive Media Centre.
This ebook is build with Harp, which uses Node.js. Install Node.js. It will come with npm, the Node Package Manager. Open the terminal, and you can install Harp using the following command:
npm install -g harp
Next, you can clone this repository locally:
# drag the location you want the project to be, into the terminal
cd ~/Sites/
git clone https://github.com/emilycarru/social-ebook
# this repo would now be in ~/Sites/social-ebook
You can now serve this project using Harp.
harp server social-ebook
# social-ebook is being served in your browser at http://localhost:9000
The platform accommodates different kinds of books with commenting at multiple levels. The basic structure is as follows:
Generic Book
- Section
- Chapter
- Sub-Chapter
- Chapter
There is no explicit Table of Contents; the structure of the book is the table of contents.
Comments may be made at either the Section, Chapter, or Sub-Chapter level. If commenting is permitted at the Section level, that book will have no Chapters or Sub-sections. If commenting is permitted at the Chapter level, that book will have no Sub-Chapters.
Sections are at the top level of the book’s content.
It is likely that most books linear books will only have one section. Books with multiple sections could include a play with acts, or a technical book with multiple major topics.
Chapters are children of Sections.
Sub-Chapters are children of Chapters.
Sub-Chapters may be any amount of content within a chapter. In some books, it could be appropriate to allow commenting at the paragraph level, so Sub-Chapters will be paragraphs.
In another book, an author may only want comments halfway through the book and at the end. Here, the first Sub-Chapter would be the first half of the book. The second Sub-Chapter would be the remainder of the chapter.
Sub-Chapters may also have commenting disabled. This way, an author could have comments enabled at the paragraph level, but only for specific paragraphs.
The following is an example of how Frankenstein would work as a social book with comments at the paragraph level.
- Preface Section
- Foreward Chapter
- Paragraph 1 Sub-Chapter
- Paragraph 2
- Paragraph 3
- Paragraph 4
- Paragraph 5
- Letter I
- Letter II
- Letter III
- Letter IV
- Part I Section
- Chapter 1 Chapter
- Paragraph 1 Sub-Chapter
- Paragraph 2
- Paragraph 3
- and so on
- Paragraph 10
- Chapter 2
- Chapter 3
- and so on
- Chapter 12
- Part II Section
- Chapter 13 Chapter
- Paragraph 1 Sub-Chapter
- Paragraph 2
- Paragraph 3
- and so on
- Paragraph 22
- Chapter 14
- Chapter 15
- and so on
- Chapter 24