Conversion output (of sample epub) in recent (7.8) Calibre version:
Code:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" width="100%" height="100%" version="1.1" viewBox="0 0 15849.6 21132.8" class="calibre2">
<defs>
</defs>
<g id="Vrstva_x0020_1">
<text x="5218.93" y="6709.26" class="fil">KAREL ČAPEK</text>
<text x="5265.25" y="7298.9" class="fil1">VÁLKA S MLOKY</text>
</g>
</svg>
(style references are now present; style definitions themselves are moved to the css file) :
Code:
.fil {
fill: #2B2A29;
font-family: "MIRobokat";
font-size: 635px;
font-weight: normal;
line-height: 1.2;
}
.fil1 {
fill: #2B2A29;
font-family: "MIRobokat";
font-size: 493.89px;
font-weight: bold;
line-height: 1.2;
}
So styles defined inside of SVG are preserved. Which greatly improves text based SVG conversion output.
One small flaw: Styles are only preserved for epub output. In case epub is converted into docx/mobi/etc., seems svg images are still rendered (into png) without applying styles.