View Single Post
Old 12-17-2014, 01:56 AM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Hmmm, we figured out how to get an SVG inline "apple character" working (see Post #24+, although read the rest too, it might be helpful):

https://www.mobileread.com/forums/sho...d.php?t=222825

I used similar code, and I got it working well in Sigil (not too sure how well a floating SVG works on actual devices right now, or if this works in KF8, or how well it degrades). But here is the basic code:

Quote:
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris dignissim elit massa. Vivamus gravida, dui sit amet hendrerit laoreet, orci tortor dignissim diam, eget tempus erat dolor a ex. Mauris et erat quis nisi porta laoreet vitae quis ex. <img alt="" class="svg_img" src="../Images/fumer.svg"/> Aenean mattis risus non hendrerit fermentum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris dignissim elit massa. Vivamus gravida, dui sit amet hendrerit laoreet, orci tortor dignissim diam, eget tempus erat dolor a ex. Mauris et erat quis nisi porta laoreet vitae quis ex. Aenean mattis risus non hendrerit fermentum.</p>
with the CSS:

Code:
.svg_img {
  	display: inline;
  	height: 5em;
  	width: auto;
	float: right;
}
The height can be tweaked. In that Apple Character topic, we had it set to 1em (since we wanted the apple to scale with the size of the text).

Attached = the EPUB.

Side Note: Any particular reason why you settled on SVG version of this text, instead of just handling this using normal CSS?
Attached Files
File Type: epub TestSVGfumer.epub (7.4 KB, 173 views)

Last edited by Tex2002ans; 12-17-2014 at 01:58 AM.
Tex2002ans is offline   Reply With Quote