Comments (6)
I wonder if a declarative file format is the only proper way to go. The declarative features of EPUB 3 (epub:trigger, epub:switch) were never implemented and were finally deprecated in EPUB 3.1. On web, CSS and JS are kings: we won't be able to impose to the market any declarative markup for inclusion inside HTML5 markup.
We could create some declarative markup in xml or json, something like SMIL as used for mediaa overlays (i.e. external to the HTML markup), but to have it implemented in authoring tools may be difficult, such structure must be closely associated with the HTML markup and a reference CSS/JS translation of such markup will be required anyhow.
Shouldn't we instead propose a direct CSS/JS reference framework and use vanilla HTML5 markup for expressing what is needed?
I know this is not the "standard" way to standardize (it's more like creating a jquery or angular framework), but it may the the good way to have our work globally adopted, at least for some aspects of our work.
from bd-comics-manga.
@llemeurfr I think you're assuming that HTML will be the building block for WP/PWP, which based on my understanding is absolutely not the case for most dedicated reading apps.
from bd-comics-manga.
You're right to point at that fact. In WP/EPUB 4, we want images to be first class citizens.
I'm questioning the "declarative file format" requirement vs a JS approach (or an hybrid approach). The fact that "spine items" may be pure images does not got in the way of this question IMO.
from bd-comics-manga.
Well a JS/CSS approach is mostly relevant for HTML documents in the spine.
We could of course have a JS based solution for it in R2, but that's different from saying that content producers should write their own JS/CSS per publication.
from bd-comics-manga.
We should not force native readers to include a web view. Therefore I don't think using JS for rendering would be a good idea.
As for a purely declarative approach: there may be some cases where it would not be sufficient or practical (e.g. non-linear animation curves). In these cases maybe JS would make an interesting option, provided that all JS functions in the document are stateless and free of side effets, making it possible to call them with a non-web JS engine.
from bd-comics-manga.
The WG members agree that a declarative approach has many advantages over a programmatic approach, especially:
- simplicity
- performance
- security
We don't want to reproduce the Flash history, with its actionscript language.
Therefore we'll keep a pure declarative approach.
from bd-comics-manga.
Related Issues (6)
- Large images HOT 4
- Animations/Transitions HOT 1
- Parallax
- What is a basic bd/comics/manga? HOT 2
- Diagonal scroll HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bd-comics-manga.