View Single Post
Old 02-25-2022, 11:43 AM   #17
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,099
Karma: 92190113
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by gesundheit View Post
What's the exact format for the decoded eid and offset bytestring?
The first byte is always 0x01, probably there to allow for future variations. The next four bytes are the eid and the last four bytes are the offset.

The eid labels a section of KFX content. It is the KFX equivalent to an HTML id attribute. The offset counts positions from the start of that eid. The position following the colon is an overall position within the book and is another way to refer to the same content.

Positions in KFX count Unicode characters of visible text with each image also counted as one position.

Quote:
Originally Posted by gesundheit View Post
Also, do you happen to know what template is?
I have no idea what that is for. It appears to be the same in all cases I have seen. Unicode FFFC is the Object Replacement Character.
jhowell is offline   Reply With Quote