gerhardsletten / react-reader

An ePub-reader for React, powered by Epub.js
https://react-reader.metabits.no
Apache License 2.0
721 stars 132 forks source link

react-reader automatically splits book into chapters #140

Closed vstrelianyi closed 1 year ago

vstrelianyi commented 1 year ago

Steps to reproduce

gerhardsletten commented 1 year ago

@vstrelianyi Have you tried to unzip the epub to check its contents? See that the toc menu is not showing nested chapters, so it could be nested chapters below that the gui is not showing.

vstrelianyi commented 1 year ago

Hi! toc - has only one chapter ( as far as I understand there should be on chapter by default ) and there is only one xhtml file with content for that ( it has all the content from my book )

but react-reader does not show all content as one chapter. it adds more chapters ( they are not shown in the toc navigation, but according to book object it is so )

gerhardsletten commented 1 year ago

@vstrelianyi Then it is the underlaying https://github.com/futurepress/epub.js/ that is splitting up big chapters for performance maybe

vstrelianyi commented 1 year ago

ok, got , thx

vstrelianyi commented 1 year ago

@gerhardsletten I have checked the epubjs lib - it splits the imported book into locations they are a part of book object image

Does your library offer the same book object as epubjs ?

gerhardsletten commented 1 year ago

@vstrelianyi This library just wraps epubjs