View Single Post
Old 02-26-2008, 06:35 PM   #347
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by kovidgoyal View Post
You can specify the encoding when using mobigen. I haven't bothered with getting the filepos exactly right since it's not that critical. As long as you make sure you dont insert an anchor inside another <> you're fine.

If I had to guess I'd say filepos represents byte position not character position, since in the cp1252 encoding every character is one byte and that was the original encoding mobigen used, back when it was prcgen.
I have confirmed that it is byte position. My original test file was corrupt.

Yes, i assume you can just put an anchor somewhere but I wanted to re-use the existing anchor if it existed...
tompe is offline   Reply With Quote