Git Product home page Git Product logo

Comments (3)

Fireblend avatar Fireblend commented on May 30, 2024

See: https://stackoverflow.com/a/40561575

reflowable means that there is no pre-determined pagination, hence the text "flows" to adapt to the reading device screen size and to the font height/margin/line spread choices of the user. It is basically like a Web site (= set of Web pages), packaged into a single ZIP file. This is by far the most common flavor of EPUB.

If you have reflowable EPUBs, there is no intrinsic concept of page. Some reading applications compute the "number of pages" by counting the number of characters in the text, and then dividing this number by some constant (e.g., 1024 characters/page). But of course this is just a rough estimate and it does not necessarily correspond to the number of "screens" needed to display the text, which, again, depends on the typographical choices of the reading application and the user (font size, margin, line spread, etc.). Some other reading applications just display a % progress, computed using the number of characters of the text seen so far divided by the total number of characters in the text.

from pyshelf.

th3r00t avatar th3r00t commented on May 30, 2024

Thanks for the link I think this may be exactly what I was looking for!
Already having access to the individual pages i can scrape the contents and do the division to return a generalized representation of pages.

from pyshelf.

th3r00t avatar th3r00t commented on May 30, 2024

For the time being im going to let page count be handled by the reader exclusively

from pyshelf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.