Thread: EPub printing?
View Single Post
Old 12-21-2011, 02:51 PM   #26
toddos
Guru
toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.
 
toddos's Avatar
 
Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
Quote:
Originally Posted by HarryT View Post
Nope. ePubs are Unicode, so could be 2 bytes per character. And, as I mentioned, it's a count of bytes in the compressed file, so I'm afraid it's not that easy .
Even if you could count characters, epub allows UTF-8 or UTF-16 which means you can't make any easy assumptions about character size (UTF-16 you can assume 1 char == 2 bytes, but UTF-8 could be 1 byte, 2 bytes, or even 3 bytes).
toddos is offline   Reply With Quote