Quote:
Originally Posted by oecherprinte
Thanks for your answers. I am aware of the difference between
pages and positions and why such a differentiation is necessary.
However, let me rephrase my question:
How can I derive the kindle "positions" for a certain chapter starting from the source html? I learnt from the forum that the positions are incremented in 128 byte steps. But how does this translate into the source html code? Can you come up with an equation about how to calculate a position starting from html? Does compression also play a role?
Thanks,
Jens
|
I don't think there will be a simple equation because the underlying html code can bloat the number of locations within a book... or since you are using the source html, the location (position) is based on the actual text + the html code.
Your best bet may be to test a potential equation out, but I am not computer savvy enough to give a good suggestion on where to start other than if you know what the byte equivalent of a character is, you could start a brute force method counting the bytes and see if the locations match up appropriately when you get to a chapter break.