Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendition at manifest level setup #56

Open
127 opened this issue Aug 28, 2015 · 2 comments
Open

Rendition at manifest level setup #56

127 opened this issue Aug 28, 2015 · 2 comments

Comments

@127
Copy link
Contributor

127 commented Aug 28, 2015

Feature request
There's no way to add at manifest level rendition properties (current realization supports only spine)

    <meta property="rendition:layout">pre-paginated</meta>
    <meta property="rendition:orientation">portrait</meta>
    <meta property="rendition:spread">none</meta>

By the way, looks like current iBooks fails to read rendition set via properties in spine and works only with meta-section. And there's no need in setting up custom ibooks com.apple.blah-blah properties file in META-INF.
Checkout this example http://files.infogridpacific.com/fxl-tb/fxl-portrait-locked-16x9.epub

@127
Copy link
Contributor Author

127 commented Aug 28, 2015

Actually it doesn't work in elder ::Builder notation. But works this way

      book = GEPUB::Book.new
      book.set_primary_identifier('urn:uuid:'+uniqueid, 'pub-id', 'uuid')
      book.language = @document.language
      book.date = DateTime.now.strftime("%Y-%m-%dT%H:%M:%S%:z")
      book.rendition_layout='pre-paginated'
      book.rendition_orientation='landscape'
      book.rendition_spread='false'

Hard to understand withot looking to the core: something sets as property, smth via setters etc

@skoji
Copy link
Owner

skoji commented Aug 29, 2015

I admit the current API is rather confusing.

Current design is : attribute or metadata with single value sets as property assignment, and setting multiple value via setter (like set_primary_identifier).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants