Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-14-2013, 11:27 AM   #1
tharael89
Enthusiast
tharael89 began at the beginning.
 
Posts: 26
Karma: 12
Join Date: Aug 2013
Device: kobo aura hd
SVG Clip

hi.

i've got a little problem and maybe a suggestion.

first. creating some kepub i've found myself to have to add images with the svg tag but a lot of different sizes. even resizing all of them with the same height leaves me with different widths.
i've been trying to find a fast way to resolve the problem with an automatic way to add the images as svg.

the best one for now is to use the "add cover" tool and then cut and paste the code in the right place.
but it's a roundabout way of doing it
i was then thinking of using a clip to add the svg tag and i've come to use this.

<div class="svgouter">
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 SGC_IMAGE_WIDTH SGC_IMAGE_HEIGHT" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="SGC_IMAGE_HEIGHT" width="SGC_IMAGE_WIDTH" xlink:href="../Images/\1"></image>
</svg>
</div>

but it does not work since sigil it's not able to substitute the SGC_IMAGE_... with the image data.
ah. i've tried with the SGC since i've found it on the tutorial on how change the cover standard html code here: http://web.sigil.googlecode.com/git/...add_cover.html

now my question. there is a code o something similar that tells sigil to use the image height and lenght?

is it possible to develop the command "insert SVG image"?
tharael89 is offline   Reply With Quote
Old 12-14-2013, 11:37 AM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
I do not think ePub 2.0 supports variables used as values in SVG and entities are gone in ePub 3.0 I believe. I think a cut and paste is the best way to create an insert SVG image. It really doesn't matter if this sort of thing is displayed properly in Sigil by the way. A Test in ADE is much better for this sort of thing.

Dale
DaleDe is offline   Reply With Quote
Old 12-14-2013, 11:50 AM   #3
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Kovid Goyal's new Sigil successor does better with svg images.

I don't know though how it correlates to display in any particular device.
mrmikel is offline   Reply With Quote
Old 12-29-2013, 12:37 PM   #4
kamanza
Zealot
kamanza began at the beginning.
 
Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
Quote:
Originally Posted by mrmikel View Post
Kovid Goyal's new Sigil successor does better with svg images.

I don't know though how it correlates to display in any particular device.
What is this & where do i find it?
kamanza is offline   Reply With Quote
Old 12-29-2013, 12:56 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by kamanza View Post
What is this & where do i find it?
It is part of Calibre (not stand-alone) but you can use the editor from the commandline even if the book is NOT stored in the Library
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 Clip-on Light Gilmartin Sony Reader 19 01-28-2012 08:29 AM
Clip-on speakers? TechnoCat Kindle Fire 5 11-22-2011 12:38 AM
Touch Clip On Light MorganM Kobo Reader 1 10-06-2011 06:42 AM
Classic Will Nook clip ? Prince Hal Barnes & Noble NOOK 0 02-18-2010 10:55 PM
The clip? ardeegee Sony Reader 6 09-24-2009 12:52 PM


All times are GMT -4. The time now is 01:28 PM.


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