lelinhtinh / jEpub

Simple EPUB builder library, works in modern browsers.
https://lelinhtinh.github.io/jEpub/
ISC License
46 stars 19 forks source link

Metadata for series #5

Open lelinhtinh opened 5 years ago

lelinhtinh commented 5 years ago

@jeffmcneill, since the “new” EPUB3 is mostly a reversion to EPUB 3.0.1, that’s the model to follow. See https://w3c.github.io/publ-epub-revision/epub32/spec/epub-packages.html#sec-belongs-to-collection for the spec, though the examples at https://w3c.github.io/publ-epub-revision/epub32/spec/epub-packages.html#group-position are perhaps a bit more complete. Basically:

<meta id="num" property="belongs-to-collection">Series Name Goes Here</meta>
<meta property="collection-type" refines="#num">series</meta>
<meta property="group-position" refines="#num">1</meta>

Caveats:

Originally posted by @jcsalomon in https://github.com/w3c/publ-epub-revision/issues/326#issuecomment-441413635