I use HTML as the source for importing into Calibre for stories that I have either written or edited.
I clean the code generated and this all works fine, but I am not able to get all the META input right and would appreciate some assistance.
The following is the 'template' I use for each new source document, and most of it works as expected.
- - - - - - - - - -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252">
<TITLE>Story title here</TITLE>
<META NAME="GENERATOR" CONTENT="LibreOffice 3.4 (Win32)">
<META NAME="AUTHOR" CONTENT="Author Name">
<META NAME="CREATED" CONTENT="0;0">
<META NAME="CHANGED" CONTENT="20110912;18475757">
<META NAME="PUBLISHER" CONTENT="Publisher name - usually me">
<META NAME="TAGS" CONTENT="Tags here such as, Espionage, Fiction, Suspense">
<META NAME="COVER" CONTENT="Address of image to be used for cover. Full path, or what?">
<META NAME="COMMENTS" CONTENT="<P>This document is used to set the coding to be used when creating
or editing HTML source documents, prior to importing into Calibre.</P>">
<STYLE TYPE="text/css">
<!--
@page { margin: 2.54cm }
P { margin-top: 0.3cm; margin-bottom: 0.3cm; color: #000000; font-family: "Calibri"; font-size: 12pt; line-height: 100% }
H1 { margin-top: 0.3cm; color: #365f91; font-family: "Calibri"; font-size: 14pt; line-height: 100% }
-->
</STYLE>
</HEAD>
<BODY LANG="en-GB" TEXT="#000000" DIR="LTR">
<H1>Story title here</H1>
- - - - - - - - - -
The two META tags that don't work correctly are COVER and COMMENTS.
Any ideas?
Are there better ways of doing this?
Many thanks in advance.
- - - - - - - - - -
For completeness sake, I follow the following process steps:
- Edit in MS Word, Spell and Grammar check etc
- Open in LibreOffice and save as HTML
- Edit in Notepad++, apply 'template' as shown
- Edit 'template' to be correct for document and clean up (remove) redundant coding
- Open in LibreOffice to review previous editing in case of acidents, and final Spell and Grammar check.
- Import into Calibre
- - - - - - - - - -