alexadam / save-as-ebook

Save a web page/selection as an eBook (.epub format) - a Chrome/Firefox/Opera Web Extension
MIT License
1.1k stars 70 forks source link

Feature request - button to change page direction of ebook #55

Open MichaelPetre opened 2 years ago

MichaelPetre commented 2 years ago

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.

MichaelPetre commented 2 years ago

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