Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-23-2014, 02:40 AM   #1
automa
Zealot
automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.automa ought to be getting tired of karma fortunes by now.
 
automa's Avatar
 
Posts: 110
Karma: 972092
Join Date: Jan 2012
Device: iPhone
"HTML files that are not well formed"

Quote:
This EPUB has HTML files that are not well formed and your current Clean Source preferences are set to automatically clean on Save. Saving a file that is not well formed will cause it to be automatically fixed, which can result in data loss.

Do you want to automatically fix the files before saving?
What is this?
automa is offline   Reply With Quote
Old 05-23-2014, 02:55 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Exactly what it says. Apparently you have an issue in one or more of your HTML files according to Sigil. If you save, it will be fixed automatically based on your settings. However, be careful, since the fix is sometimes worse than the cure.
Toxaris is offline   Reply With Quote
Advert
Old 05-23-2014, 11:14 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,820
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by automa View Post
What is this?
as Toxaris says +1 :

It could be as simple as
<p>stuff</P> < case mismatch
or
<p>more stuff <p> < missing slash or missing close all together

IMHO avoid the auto
Use the PINK box info in BV to track it down
theducks is offline   Reply With Quote
Old 06-04-2014, 01:44 PM   #4
GMcG
Writer
GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.
 
GMcG's Avatar
 
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
whitespace expected

When trying to import an html file into Sigil, I get the message
line1: whitespace expected
and the file will not be imported. This is line 1:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
There is no problem with Calibre. So what's wrong?

(It is possible to copy the html code, paste it into Sigil and then let it be fixed automatically, but it is not the fastest way if you have many files.)

George
GMcG is offline   Reply With Quote
Old 06-05-2014, 05:29 AM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by GMcG View Post
There is no problem with Calibre. So what's wrong?
Calibre accepts pretty much any file. OTOH, Sigil is more strict in its interpretation of standards.
Most likely Sigil expects a space and a dtd reference.

Quote:
Originally Posted by GMcG View Post
(It is possible to copy the html code, paste it into Sigil and then let it be fixed automatically, but it is not the fastest way if you have many files.)
If you have hundreds of files that are formatted like this and are not averse to using a command line tool, you could install sed and use the following one-line script with it:

Code:
# sed -f sigil.sed -i *.html
s/<!DOCTYPE html PUBLIC "-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\/EN">/<\?xml version="1\.0" encoding="utf-8" standalone="no"\?>\n<!DOCTYPE html PUBLIC "-\/\/W3C\/\/DTD XHTML 1\.1\/\/EN"\n  "http:\/\/www\.w3\.org\/TR\/xhtml11\/DTD\/xhtml11\.dtd">/g
I.e., install sed*, save the above code as a sigil.sed in the folder that contains the .html files that you want to modify. Then open a DOS prompt, navigate to the folder with the .html files and enter the following command:

Code:
sed -f sigil.sed -i *.html
This will change all doctype declarations to Sigil style doctype declarations. Since this command will overwrite the original files, you may want to create backup copies first.

*If you have a Mac or a Linux machine you won't have to install sed.
Doitsu is offline   Reply With Quote
Advert
Old 06-05-2014, 02:34 PM   #6
GMcG
Writer
GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.
 
GMcG's Avatar
 
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
Thanks so far. But it's useless, to change just the doctype declaration. I have tried it. You have to edit the rest of the document too until it fits.
I found out, that "Line 1: whitespace expected" means, that Sigil wants an empty line instead of the doctype declaration. But then all the other messages follow.

So in short: Calibre converts old style html files, Sigil does not. They must be in UTF-8 format, you have to convert them first to the xml type and they have to be well formatted. Otherwise they will be rejected.
Or, as I have done: Create the epub with Calibre, then clean the CSS code in Sigil if wanted.

George
GMcG is offline   Reply With Quote
Old 06-10-2014, 11:25 AM   #7
calvin-c
Guru
calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.calvin-c ought to be getting tired of karma fortunes by now.
 
Posts: 787
Karma: 1575310
Join Date: Jul 2009
Device: Moon+ Pro
Quote:
Originally Posted by theducks View Post
as Toxaris says +1 :

It could be as simple as
<p>stuff</P> < case mismatch
or
<p>more stuff <p> < missing slash or missing close all together

IMHO avoid the auto
Use the PINK box info in BV to track it down
Another 'common' error that's hard to spot (at least for me) is a missing bracket:
<p> stuff /p>
When looking at tags I find myself looking at the content & not the entire tag. Particularly 'complex' tags (<p class="calibre" stuff</p>)
calvin-c is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KT "Ghost covers/files" again at 670 books, "stale" image entries in firmware VirgoGirl Kobo Reader 4 04-06-2012 02:10 PM
Fixed Layout Sample ".mobi" file with package(html, css, opf, ncx files). Sushil Kindle Fire 1 01-13-2012 07:16 AM
MS Word "crap" at beginning of html files PatNY Sigil 23 10-21-2010 06:22 PM
Sigil 024 and regular expressions on "all HTML files" WS64 Sigil 4 08-13-2010 07:33 PM


All times are GMT -4. The time now is 12:01 PM.


MobileRead.com is a privately owned, operated and funded community.