alexadam / save-as-ebook

Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request - button to change page direction of ebook

MichaelPetre opened this issue · comments

Would it be possible to add a button to change the page direction?
This is useful for Japanese novels and books, where the text is normally read vertically right to left, with pages being turned from right to left.

This requires adding a parameter to the spine tag in contents.opf (around line 163 of saveEbook.js)

The default spine is defined as:
'<spine toc="ncx">'

A right-to-left spine is defined as:
'<spine toc="ncx" page-progression-direction="rtl">'

I have attempted implementing a button for the functionality but ended up breaking the locally unpacked extension for Chrome.

Pretty much done implementing this one, one issue left to fix.