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

Global page count, instead of per-chapter. #11

Closed
elmimmo opened this issue Oct 17, 2010 · 1 comment
Closed

Global page count, instead of per-chapter. #11

elmimmo opened this issue Oct 17, 2010 · 1 comment

Comments

@elmimmo
Copy link

elmimmo commented Oct 17, 2010

If a book data object is made up of several HTML files, such as the example book Dubliners, the page count is for a particular file instead of the whole book, which is then very little reference of how far in the book one is. It would be great to be able to display page no. X of book's total Y.

@joseph
Copy link
Owner

joseph commented Nov 17, 2010

This requires processing the entire book, which runs against Monocle's architecture, loading components on demand.

For Booki.sh we intend to run entire books through a headless Safari during the importation of data phase, giving us a fairly accurate idea of each component's relative size. If we can see that a component is 6% of the book, and the component is 10 pages at the present resolution, we know that the book is 600 pages (give or take a page).

So that's one approach. In short, full-book calculations aren't going into Monocle itself - you'll have to do them server-side or just get clever.

This issue was closed.
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