View Single Post
Old 03-09-2010, 10:50 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,438
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can test it by saving the above code into a file calles test.xhtml and then running

Code:
ebook-convert test.xhtml .epub --no-default-epub-cover
That will give you a single page epub (test.epub) with text that will be correctly horizontall and vertically centered in the calibre viewer (and any other SVG supporting viewer that accepts the text-anchor property).
kovidgoyal is online now   Reply With Quote