05-03-2012, 08:54 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2012
Device: Kindle
|
ePub (and KF8) from SVGs
Hello, sages of Mobileread!
I have (what may be) an oddball question. I have a book of poems that I would like to end up in KF8 format, and perhaps transitionally in ePub. Each page has a distinctive vector 'page frame' like an antique picture frame. Inside the frame is a short poem of only a few lines. The poem (in print) uses a distinctive font that goes with the surrounding frame. My wacky idea is that I might be able to have (2) SVGs -- one for the left-hand and one for the right-hand page frame. (Though this might be reduced to one given the electronic format.) Then separately, the text of each poem is saved as an SVG of under 10 KB. The code for each page would 'call' the SVG page frame and display the separate SVG poem within it. Is this workable or unworkable? Simple or insane? While I have done print books, I have no real experience doing eBooks yet. It would be nice if I could represent each page as a pair of vector graphics (inner and outer) to preserve the appearance of each page. As long as the final ePub or KF8 file size is under the limit (to avoid Amazon 'transmission' cost)... Any help would be appreciated! |
05-03-2012, 12:45 PM | #2 |
Grand Sorcerer
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
|
It is possible to reference an SVG element as an img or object from a XHTML page thus you can reuse the same SVG over and over. I am not aware of a way to embed the text you want inside the image directly. However you could have a top and a bottom SVG image and the text between them. I take it that you want one element per page so you will need to scale the image to make this happen with various size (resolution pages). I think you will have to experiment a bit, and read the document http://www.w3.org/TR/SVG11/Overview.html
Dale |
05-03-2012, 01:13 PM | #3 | |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2012
Device: Kindle
|
Quote:
My thought was to have 2 SVGs -- one inside the other. Rather than use plain text, I would make a separate SVG of the poem text. The net effect is the page frame going around the 'outside' while the poem text is itself an SVG on the 'inside'. Thus there would be 2 SVGs per page -- one page frame vector which is on every page, one poem-text SVG which is unique for each page. |
|
05-03-2012, 01:23 PM | #4 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I guess you can have an SVG file that calls/includes another SVG file. Would that work for you?
|
05-03-2012, 01:25 PM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2012
Device: Kindle
|
|
05-03-2012, 01:56 PM | #6 | |
Grand Sorcerer
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
|
Quote:
I believe you should just experiment with this approach. I don't think anyone here can give you a step by step solution. You are just going to have to try an approach and then test it with various reading devices to see what works. It would actually be pretty easy to develop a test case using simple SVG graphics like a curved line at the top and bottom and connecting lines in the middle. I don't know how you will call another SVG in a separate file from within an SVG and have it work properly. Please experiment and report back on what you find. You could use Sigil to develop the test case and then experiment with it. Dale |
|
Tags |
epub, kf8, svg, vector |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Content KF8 quesiton | apastuszak | Amazon Kindle | 12 | 04-15-2012 04:34 PM |
KF8 | sadievan | Amazon Kindle | 6 | 03-30-2012 05:40 PM |
KF8 | MovieBird | Amazon Kindle | 1 | 02-07-2012 11:35 AM |
Could Sigil create both EPUB and KF8? | mncowboy | Sigil | 41 | 01-20-2012 04:48 PM |
KF8 Demo | Soldim | Amazon Kindle | 15 | 12-20-2011 06:14 PM |