View Single Post
Old 03-24-2013, 01:53 PM   #10
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
glyphIgo v. 1.18 released.

Added a function to count the number of characters (displayable, not counting XHTML tags) in an EPUB eBook:

Code:
$ python glyphIgo.py -e ebook.epub -c
[INFO] Reading characters appearing in 'ebook.epub'...
[INFO] Reading characters appearing in 'ebook.epub'... Done
[INFO] Number of characters appearing in 'ebook.epub'...
1310564
[INFO] Number of characters appearing in 'ebook.epub'... Done

$ python glyphIgo.py -e ebook.epub -c -q
1310564
Please observe that the counting is somewhat "approximate", as explained in the Technical Notes in the project web page:
http://code.google.com/p/glyphigo/
http://code.google.com/p/glyphigo/wiki/UsageExamples
http://code.google.com/p/glyphigo/downloads/list
AlPe is offline   Reply With Quote