⚠️ ᴛʜɪs ʀᴇᴘᴏsɪᴛᴏʀʏ ɪs ᴅᴇᴘʀᴇᴄᴀᴛᴇᴅ⚠️ We moved all the
r2-*-kotlin
modules to a single repository:kotlin-toolkit
.
readium / r2-shared-kotlin Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
⚠️ ᴛʜɪs ʀᴇᴘᴏsɪᴛᴏʀʏ ɪs ᴅᴇᴘʀᴇᴄᴀᴛᴇᴅ⚠️ We moved all the
r2-*-kotlin
modules to a single repository:kotlin-toolkit
.
It was added some time ago to the model, implemented on iOS.
Looks like the current code expects an array of objects: https://github.com/readium/r2-shared-kotlin/blob/develop/r2-shared/src/main/java/org/readium/r2/shared/Metadata.kt#L157
But subjects can be simply expressed using strings as well (either a single string, or an array of strings) as seen in: https://test.opds.io/2.0/publications.json
Used as an internal in Swift and Kotlin for parsing
Shouldn't be part of the core model
Might be better using a cascade instead for parsing
Implement UserSettings model into r2-shared-kotlin
Added subtitle
Added duration
Added numberOfPages
Extended list of contributors
spine became readingOrder
direction became readingProgression
sort-as became sortAs
belongs-to became belongsTo
In the current code, the parser expects an object for metadata-level links: https://github.com/readium/r2-shared-kotlin/blob/develop/r2-shared/src/main/java/org/readium/r2/shared/Contributor.kt#L81
This is incorrect, links
will always be an array in our model: https://github.com/readium/webpub-manifest/blob/master/schema/contributor-object.schema.json#L41
This can be tested using the OPDS 2.0 Test Catalog at https://test.opds.io/2.0/publications.json
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.