Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View HadrienGardeur's full-sized avatar

Hadrien Gardeur HadrienGardeur

View GitHub Profile
@HadrienGardeur
HadrienGardeur / discovery.json
Last active March 1, 2023 17:06
New experiments around ODL
{
"harvest": [{
"metadata": {
"title": "Public domain ebooks"
},
"links": [{
"href": "https://example.com/publicdomain.json{?since,until}",
"templated": true,
"type": "application/odl+json"
}]
@HadrienGardeur
HadrienGardeur / audiobook.json
Last active January 6, 2023 11:26
a11y metadata for RWPM
{
"accessMode": [
"auditory"
],
"accessModeSufficient": [
"auditory"
],
"feature": [
"tableOfContents"
],
@HadrienGardeur
HadrienGardeur / package.opf
Last active July 20, 2021 13:36
Accessible FXL publication with reflowable fallbacks
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://www.idpf.org/2007/opf" prefix="rendition: http://www.idpf.org/vocab/rendition/# cc: http://creativecommons.org/ns#" version="3.0" dir="ltr" id="package">
<metadata>
<dc:title>Accessible FXL publication with reflowable fallbacks</dc:title>
<meta property="rendition:layout">pre-paginated</meta>
<meta property="rendition:orientation">auto</meta>
<meta property="rendition:spread">auto</meta>
<meta property="schema:accessMode">textual</meta>
<meta property="schema:accessMode">visual</meta>
<meta property="schema:accessModeSufficient">textual,visual</meta>
@HadrienGardeur
HadrienGardeur / chapter1.html
Last active December 6, 2020 11:46
RWPM with the ability to switch between FXL, normal HTML and IIIF
<p><a id="page1" href="page1.html" />This is the text of the reflowable view</p>
[
{
"created_at": "2020-08-17T16:02:52+02:00",
"identifier": "Panier de collectivites+bibliothecaire3 (13-08-2020)",
"library": "Biblio test LIQ - 2020",
"retailer": "Librairie Morency",
"total_before_taxes": "141.91",
"currency": "CAD",
"taxes": [
{
{
"@context": "https://www.w3.org/TR/wpub/context.jsonld",
"name": "Moby Dick",
"author": "Herman Melville",
"identifier": "urn:isbn:978031600000X",
"lang": "en",
"dir": "ltr",
"start_url": "/chapter1",
"display": "fullscreen",
"spine": [
@HadrienGardeur
HadrienGardeur / webapp-as-webpub.json
Created June 23, 2017 18:14
Web App Manifest using the Readium Web Publication Manifest model
{
"@context": "http://example.com/webapp.jsonld",
"metadata": {
"name": "Donate App",
"description": "This app helps you donate to worthy causes.",
"short_name": "Donate",
"language": "en",
"direction": "ltr",
"display": "fullscreen",
"orientation": "landscape",
{
"@context": "http://readium.org/webpub/default.jsonld",
"metadata": {
"@type": "http://schema.org/GraphicNovel",
"title": "IIIF Example",
"identifier": "urn:isbn:97822531670xx",
"language": "en",
"modified": "2017-06-03T17:00:00Z",
"schema:license": "http://creativecommons.org/licenses/by-sa/3.0",
@HadrienGardeur
HadrienGardeur / metadata-basic.json
Last active October 5, 2018 07:27
JSON-LD for application/webpub+json
{
"@context": "http://readium.org/webpub/default.jsonld",
"metadata": {
"@type": "http://schema.org/Book",
"identifier": "urn:isbn:9780000000001",
"title": "Moby-Dick",
"author": "Herman Melville",
"language": "en",
"publisher": "Whale Publishing Ltd.",
"modified": "2016-02-18T10:32:18Z",
@HadrienGardeur
HadrienGardeur / 1-navigation.json
Last active March 16, 2017 22:51
Attempt to port OPDS to the new serialization for EPUB (application/epub+json), might be OPDS 2.0 (application/opds+json)
{
"@context": "http://opds-spec.org/opds.jsonld",
"metadata": {"title": "eBook Store"},
"links": [
{"rel": "self", "href": "/navigation.json", "type": "application/opds+json"},
{"rel": "shelf", "href": "/shelf", "type": "application/opds+json"}
],