Skip to content

Conversation

@mapmeld
Copy link

@mapmeld mapmeld commented Aug 30, 2014

Adding { direction: "rtl" } to bookConfig turns it into a right-to-left book. You start on the cover, flip left, and continue going left until you reach the end of the book.

  • Pages are added in chronological order [page1, page2]. The array is reversed before pages are added to the DOM.
  • Does not affect existing books without a direction config
  • Small changes to engine/book.js are what makes it possible
  • Adds example_rtl book for testing (you can move or remove this, if you want)

HTML5-Storybook is an awesome library! 😄 I'm using its open source interface for an upcoming children's book editor and viewer. We support multiple alphabets, including Arabic, so it's essential that books go in both directions. In the spirit of open source I wanted to contribute code back into the system.

@mcscooter
Copy link
Member

Thanks! We'll review and let you know if there are any questions or issues

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

Successfully merging this pull request may close these issues.

2 participants