Sigil - FlightCrew Errors & Solutions
Some common errors I have encounter and the solutions I've found.
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This resource is reachable but not present in the OPF <manifest>. ...
SOLUTION:
Check path name is correct, e.g. ../Styles/Style.css and caps or lower case in name, etc.
or
For Stylesheet error
Select one or more HTML files in the Book Browser.
Right-click on the selection.
Choose Link Stylesheets from the context menu:
Click on the stylesheet(s) you want to be used for the files and select OK.
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This resource is reachable but not present in the OPF <maifest> or <spine>. ...
SOULTION:
In Book Browser, right click filename, Add Semantics ...
Check files in right order,
Possible reference in .css files
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ID value ,_James_P_-_Voyage_from_Yesteryear not valid value
SOLUTION:
Value may not be formatted correctly, uses , [blank], etc.
OR
Rename ID value
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element 'XXX' in not allowed for content ...
SOLUTION:
<div>
<svg>
<image width="379" height="616" xlink:href="../Images/cover.jpeg"/>
</svg>
</div>
OR put <div> inside of <blockquote> and outside of XXX
OR USE <span> for element 'XXX' may need <p> as well
<p><span style="font-weight:bold">text</span></p>
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
no character data is allowed by content model
<blockquote>
SOLUTION:
replace within <head> or CSS
<style type="text/css">
blockquote.style {
margin-top: 10px;
margin-bottom: 10px;
margin-left: 50px;
padding-left: 15px;
}
</style>
EXAMPLE:
blockquote class="style">
alksdfja;lsdkfja;sldkfjasdklfja;sdklfj
</blockquote>
INDENT TEXT LINE
<style>
.pindent {
margin-left: 4em;
margin-right: 4em;
}
</style>
<p class="pindent">Here lies one from a distant star,<br />
but the soil is not alien to him, for in death he belongs to the universe.</p>
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<span> not allowed inside <blockquote>
SOLUTION:
<blockquote><div><span>
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Related to the file toc.ncx
SOLUTION:
Sometimes
Tools > Table of Contents > Generate ToC
will resolve the issue
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
element 'span' not allowed. ...
SOLUTION:
if the span is for formatting, e.g. italics,
delete it and re-apply format using editor function for it.
(if a lot of occurances note old and new code and use replace all)
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
</head>
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Element or class not declared eg. <u> <strike>
SOLUTION:
Use <span style="text-decoration: underline;">
<span style="text-decoration: line-through">
ERROR:~~~~~~~~~~~~~~~~~~~~~~~~~~~~
schema not satisfied: attribute width <hr width="50%">
<p align="center">
SOLUTION:
<hr style="width:50%" />
<p style="text-align:center">
<p style="center"></p>
<p style="text-align: center; color: rgb(0, 0, 128);">.....</p>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~con tent.OPF stuff~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<guide> reference types are:
*cover the book cover(s), jacket information, etc.
*text First "real" page of content (e.g. "Chapter 1")
*toc table of contents
title-page page with possibly title, author, publisher, and other
metadata
index
back-of-book
style
index
glossary
acknowledgements
bibliography
colophon
copyright-page
dedication
epigraph
foreword
loi list of illustrations
lot list of tables
notes
preface
* only ones Amazon really uses
include only these three <guide> elements since it doesn’t appear that anything besides these three items are accessed by any reading platform.
<guide>
<reference type="cover" title="Cover" href="Text/titlepage.xhtml"/>
<reference type="toc" title="Contents" href="Text/contents001.xhtml"/>
<reference type="text" title="Start" href="Text/part002.xhtml"/>
</guide>
~~~~~~~~~~~~~~~~~~
<package version="2.0" unique-identifier="URI" .....
.......need to match.....
<dc:identifier id="URI">BookId</dc:identifier>
<dc:language>en</dc:language>
<dc:title>BookTitle</dc:title>
|