GithubHelp home page GithubHelp logo

Comments (7)

danielweck avatar danielweck commented on July 22, 2024

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.

mickael-menu-mantano avatar mickael-menu-mantano commented on July 22, 2024

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.

danielweck avatar danielweck commented on July 22, 2024

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.

mickael-menu-mantano avatar mickael-menu-mantano commented on July 22, 2024

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.

danielweck avatar danielweck commented on July 22, 2024

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.

danielweck avatar danielweck commented on July 22, 2024

Mantano / Bookari screenshot:
img_5882

from readium-shared-js.

danielweck avatar danielweck commented on July 22, 2024

...and my comment regarding the link@class default standardized vocabulary:
w3c/epub-specs#668 (comment)

from readium-shared-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.