Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
publishing:digital:html [2021/03/20 08:23] – created maartenpublishing:digital:html [2024/02/14 12:20] (current) – external edit 127.0.0.1
Line 3: Line 3:
 To publish on the web, use the HTML code from the epub file, which will need minimal cleaning. To get the “raw” HTML from the epub file, go to https://www.onlineconverter.com/epub-to-html and upload your epub. You get a zip file back, which you need to unzip: To publish on the web, use the HTML code from the epub file, which will need minimal cleaning. To get the “raw” HTML from the epub file, go to https://www.onlineconverter.com/epub-to-html and upload your epub. You get a zip file back, which you need to unzip:
  
 +{{:publishing:digital:html.jpg|}}
  
 All we are interested in is the index.htm file, which is all the merged chapters of the book in a single file. All we are interested in is the index.htm file, which is all the merged chapters of the book in a single file.
 Delete the headers and footers like this: Delete the headers and footers like this:
  
 +{{:publishing:digital:html2.jpg|}}
  
 It is good practice to remove instances like ''class="calibre4"'',  ''class="calibre1"'' with a simple mass “find and replace”, though not strictly necessary. It is good practice to remove instances like ''class="calibre4"'',  ''class="calibre1"'' with a simple mass “find and replace”, though not strictly necessary.
Line 13: Line 14:
 The main thing is to make the code suitable to be pasted directly into Joomla/Wordpress (source view), so adjust accordingly. The online converter preserves a usable Table of Contents as long as you have a proper one in the original epub file, and you may have to delete some ''<nav>'' tags and change the ''<ol>'' tags to ''<ul>'' The main thing is to make the code suitable to be pasted directly into Joomla/Wordpress (source view), so adjust accordingly. The online converter preserves a usable Table of Contents as long as you have a proper one in the original epub file, and you may have to delete some ''<nav>'' tags and change the ''<ol>'' tags to ''<ul>''
  
-For the cover image (intro image in Joomla), you will likely need to modify your book cover to a landscape format rather than portrait. This is also easily done in Adobe Spark (resize to something like 1080x500 px and move the elements around).+For the cover image (intro image in Joomla), you will likely need to modify your book cover to a landscape format rather than portrait. This is easily done in [[https://spark.adobe.com/|Adobe Spark]] (resize to something like 1080x500 px and move the elements around).