View Single Post
Old 11-06-2018, 02:59 AM   #7
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,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Uumas View Post
I'll try these today, but I'm pretty sure that just adds the files to the book, but not the xhtmls required to show them as pages.
Ahhh, so you wanted an individual XHTML file for each SVG.

1. In Sigil, you could add all the SVGs to the EPUB:

File > Add > Existing Files

2. Then inside the XHTML file, you should be able to:

Insert > File

You can easily highlight all the SVGs (Shift-Click) just like you would in Explorer.

3. Once you add them to your EPUB, you would get code smushed together like this:

Quote:
<p><img alt="page001" src="../Images/page001.svg"/><img alt="page002" src="../Images/page002.svg"/><img alt="page003" src="../Images/page003.svg"/></p>
You could then easily split the files manually using Split at Cursor button:

Click image for larger version

Name:	SigilSplitAtCursor.png
Views:	187
Size:	10.5 KB
ID:	167474

or just use Search/Replace to insert the Sigil split marker:

Search: "/><img
Replace: "/><hr class="sigil_split_marker" /><img

and press Edit > Split At Markers (F6).

4. Now you would have each SVG in its own file:

Quote:
File 1:

<p><img alt="page001" src="../Images/page001.svg"/></p>

File 2:

<p><img alt="page002" src="../Images/page002.svg"/></p>

File 3:

<p><img alt="page003" src="../Images/page003.svg"/></p>

Last edited by Tex2002ans; 11-06-2018 at 03:13 AM.
Tex2002ans is offline   Reply With Quote