Comments (7)
Just as a point of reference:
http://d.alistapart.com/alternate/styleswitcher.js
(note that this simple JS utility does not support "tagging" via the class attribute, as per the aforementioned IDPF specification for "Alternate Style Tags" http://www.idpf.org/epub/altss-tags )
from readium-shared-js.
Hello Daniel,
We support alternative stylesheets in Mantano Reader and we’d be happy to share it with Readium. I’m waiting for the footnotes (plugins) branch to be merged into develop to plug the alternative stylesheets system in.
Mickaël Menu
R&D Engineer
2 rue du Helder - 75009 Paris, France
Tel.: +33 1 42 47 05 61
[email protected]
www.mantano.com
store.mantano.com
cloud.mantano.com
On Thu, Sep 18, 2014 at 1:50 PM, danielweck [email protected]
wrote:
Just as a point of reference:
http://d.alistapart.com/alternate/styleswitcher.js(note that this simple JS utility does not support "tagging" via the class attribute, as per the aforementioned IDPF specification for "Alternate Style Tags" http://www.idpf.org/epub/altss-tags )
Reply to this email directly or view it on GitHub:
#71 (comment)
from readium-shared-js.
Hello Mickael, your code contribution would be great! The plugin "architecture" has deeper ramifications that need to be discussed with other implementors before we merge your proposed design into the develop branch. Any chance you could share your "alternate stylesheets" implementation irrespective of the event framework which serves as a plugin bootstrapper? (for example, can you share the core routines that bind the "disabled" state of link/rel/href CSS declarations to user preferences / reading system settings? Thanks!
from readium-shared-js.
I agree with you, this needs to be discussed and enhanced. My proposition is very light and it is merely to begin a plugins architecture.
Here’s our implementation:
https://gist.github.com/mmenu-mantano/ba03aeb8a7672ecba03c
But I think it would be better to wait a proper plugin architecture before adding it to Readium.
In this implementation, the selected stylesheets is reapplied when changing the spine item, if it is available in the new spine item.
Mickaël Menu
R&D Engineer
2 rue du Helder - 75009 Paris, France
Tel.: +33 1 42 47 05 61
[email protected]
www.mantano.com
store.mantano.com
cloud.mantano.com
On Thu, Sep 18, 2014 at 4:37 PM, danielweck [email protected]
wrote:
Hello Mickael, your code contribution would be great! The plugin "architecture" has deeper ramifications that need to be discussed with other implementors before we merge your proposed design into the develop branch. Any chance you could share your "alternate stylesheets" implementation irrespective of the event framework which serves as a plugin bootstrapper? (for example, can you share the core routines that bind the "disabled" state of link/rel/href CSS declarations to user preferences / reading system settings? Thanks!
Reply to this email directly or view it on GitHub:
#71 (comment)
from readium-shared-js.
Thank you @mmenu-mantano
I think we should follow the IDPF specification (linked above) and implement support for alternate style tags ("class" attribute), but otherwise your approach is conceptually similar to alistapart's styleswitcher.js (linked above), and as far as I know it works well across multiple browsers and platforms.
from readium-shared-js.
from readium-shared-js.
...and my comment regarding the link@class default standardized vocabulary:
w3c/epub-specs#668 (comment)
from readium-shared-js.
Related Issues (20)
- Chapters getting truncated [iOS - readium-shared-js library] HOT 4
- Absolutely positioned elements are misplaced HOT 5
- Building URL query parameters strips out #fragments HOT 1
- FAQ: custom external font faces
- Hyperlinking: hash fragment identifiers are discarded by internal pagination / scroll offset logic? HOT 3
- Use of reserved word "package" HOT 2
- Turn pages very slow in big html files with Android System Webview 63 HOT 25
- calculatePageIndexDeltaByRectangles has wrong logic calculating pageIndex HOT 6
- Build output: UMD bundle HOT 4
- Internet Explorer very slow to resize document with large spines (100+ pages)
- Please help, openContentUrl() dosen't work well in Electron app when the url contains #. HOT 1
- Rangy dependency not needed strictly-speaking (SMIL experimental feature + Juan's highlighter) HOT 2
- Firefox: Resize Sensor does not trigger when content after expanded element flows into following columns in a certain way
- Highlights HOT 1
- In Redium Reader CFI - is it possible to go exact CFI location in a reflowable document when search text location are multiple in a page HOT 4
- Is there any reason why navigator.epubReadingSystem is writable? HOT 2
- Invalid location/CFI received HOT 2
- Issue with continuous scrolling using (macOs + Safari) trackpad
- The page turn is not done with the readaloud
- API Document
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 readium-shared-js.