View Single Post
Old 12-07-2013, 09:34 AM   #1
schrijver
Junior Member
schrijver began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2013
Device: Cybook Odyssey
epubReadingSystem object

Hello
!

The epubReadingSystem object provides an interface through which a Scripted Content Document can query information about a User's Reading System.

It’s part of the ePub 3 standard: http://www.idpf.org/epub/30/spec/epu...bReadingSystem

An example implementation by Readium-js: https://github.com/readium/readium-j...ding_system.js

As far as I can tell from grepping the source code, the Calibre Viewer does not support the epubReadingSystem object? I attached a small ePub [1] that works for me in Readium, but not in Calibre [2].

Would you be interested in adding this feature to Calibre? I could see how far I can get with doing this, though I’ll need a little help.

This is what I imagine needs to happen:

1) Add a script to oeb’s existing array of Coffeescripts:
https://github.com/kovidgoyal/calibr...ks/oeb/display
2) Add the script to the loaders index:
https://github.com/kovidgoyal/calibr.../javascript.py
3 ) Specify that the script needs to be loaded? And only for EPUB3?

I was also wondering, how can I start the Calibre viewer with a JavaScript console.

Curious what y’all think of this,
Best,

Eric

[1] http://silo.schr.fr/self-conscious-epub.epub (84k)
Attached Thumbnails
Click image for larger version

Name:	self-conscious-epub.png
Views:	336
Size:	75.7 KB
ID:	116354  

Last edited by DoctorOhh; 12-07-2013 at 06:23 PM. Reason: Attached image
schrijver is offline   Reply With Quote