Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 09-28-2012, 06:50 AM   #1
bobb40
Enthusiast
bobb40 has a complete set of Star Wars action figures.bobb40 has a complete set of Star Wars action figures.bobb40 has a complete set of Star Wars action figures.
 
Posts: 28
Karma: 274
Join Date: Jul 2011
Device: Kindle3, Kindle4, KoboGlo
epub-kindle conversion blanks svg with text

I've made a fair-sized epub ebook which looks very good on Calibre E-book viewer and on Aldiko reader. But readers will want it on Kindle, so I plugged my Kindle (firmware 3.3) into PC and used Calibre (version 0.8.70) to convert/copy the ebook to the Kindle. The result was surprisingly good -- the most objectionable fault was that all multi-line text of illustrations (jpg images in svg wrappers with svg <g>, <text>, and <tspan> tags) was rendered on a single line.

Then I found that there was an update for my Kindle (generation 3 with keyboard), so I applied it and received congratulations from Amazon for updating to firmware 3.4: now I could read KF8 ebooks! And when I looked at my ebook, every illustration that had any text at all (using svg <g> and <text> tags) was rendered as a blank page. Illustrations with NO text were correctly displayed. I used Calibre to carefully convert/copy to Kindle again (AZW3 only), with same result. Epubcheck shows no errors or warnings in epub ebook. Calibre shows that the ebook sent to Kindle is AZW3 format. Conversion log (it's very long) shows no errors or warnings.

Typical illustration, which works very well in epub, is:

Code:
  <svg version="1.1" xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      width="100%" height="100%" viewBox="0 0 600 447"
      preserveAspectRatio="xMidYMid meet">
    <g font-size="20pt" systemLanguage="en">
      <image width="600" height="387" xlink:href="../Images/hl_i06.jpg" />

      <text style="text-anchor:middle" x="300" y="417">
        AT HOME ON PARKER AVENUE
        <tspan x="300" y="447">SAN FRANCISCO</tspan></text>
    </g>
  </svg>
Explanation or suggestion would be appreciated.
bobb40 is offline   Reply With Quote
Old 09-28-2012, 07:19 AM   #2
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: 43,849
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
When converting to MOBI calibre rasterizes SVG, for KF8 it leaves it alone. Amazon's various KF8 renderers are full og bugs, you've likely come across one of them. Open your kf8 file with calibre's viewer and check the svg.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-28-2012, 08:05 AM   #3
bobb40
Enthusiast
bobb40 has a complete set of Star Wars action figures.bobb40 has a complete set of Star Wars action figures.bobb40 has a complete set of Star Wars action figures.
 
Posts: 28
Karma: 274
Join Date: Jul 2011
Device: Kindle3, Kindle4, KoboGlo
Thanks, Kovid - On Calibre's E-viewer, both the AZW3 file from Calibre, and a MOBI file from KindlePreviewer, look as good as the EPUB. Kindle's 3.4 firmware is a dissappointing step backward.
bobb40 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub from SVG files sachin ePub 7 05-11-2012 09:04 AM
EPub: Bilder mit <svg> einbinden mmat1 Erste Hilfe 10 02-27-2012 09:46 AM
<svg> to <img> tags conversion codrutoctavian Conversion 1 02-15-2012 09:58 PM
resizing of svg logo with text increasing and decreasing in epub ashokbnpal Introduce Yourself 0 07-21-2011 04:26 AM
Strange Blanks in words in .epub in Sigil FraPe Sigil 10 11-16-2009 01:21 PM


All times are GMT -4. The time now is 07:59 PM.


MobileRead.com is a privately owned, operated and funded community.