opds-community / drafts

Contains all the current drafts for the OPDS specifications
36 stars 10 forks source link

Support reading-direction attributes in OPDS #71

Closed foux closed 10 months ago

foux commented 10 months ago

Hi there!

It would be great for OPDS to support reading direction, so that reading-direction can be propagated from server to reader.

For example, using the datas in the docs :

{
  "metadata": {
    "title": "Example listing publications"
  },

  "links": [
    {"rel": "self", "href": "http://example.com/new", "type": "application/opds+json"}
  ],

  "publications": [
    {
      "metadata": {
        "@type": "http://schema.org/Book",
        "title": "Moby-Dick",
        "author": "Herman Melville",
        "identifier": "urn:isbn:978031600000X",
        "language": "en",
        "modified": "2015-09-29T17:00:00Z"
        'reading-direction": "left-to-right"
      },
      "links": [
        {"rel": "self", "href": "http://example.org/publication.json", "type": "application/opds-publication+json"},
        {"rel": "http://opds-spec.org/acquisition/open-access", "href": "http://example.org/file.epub", "type": "application/epub+zip"}
      ],
      "images": [
        {"href": "http://example.org/cover.jpg", "type": "image/jpeg", "height": 1400, "width": 800},
        {"href": "http://example.org/cover-small.jpg", "type": "image/jpeg", "height": 700, "width": 400},
        {"href": "http://example.org/cover.svg", "type": "image/svg+xml"}
      ]
    }
  ]
}

With the possibility for the field to be left-to-right, right-to-left, vertical and webtoon

naglis commented 10 months ago

There exists readingProgression in the default context of Readium Web Publication Manifest.

foux commented 10 months ago

Indeed! Sorry about that