Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2015, 08:24 AM   #1
azupak
Junior Member
azupak began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2015
Device: none
Validation errors

Hi,
I'm new to Sigil. I've started creating new epub from scratch and when i try to validate file (just for check if i did everything allright till now) i had erros - for example:

for this line
Code:
<a id="note10" href="#note10b"><sub>[10]</sub></a><sub><font size="2">&nbsp;</font><font size="2">Stanisław Kucharski, b. April 26th 1918 in Żywiec. More→ BIOGRAPHIES</font></sub>
i have this errors:

- no declaration found for element 'font'
- element 'font' is not allowed for content model

What's it all about?

Greetings
Chris
azupak is offline   Reply With Quote
Old 04-23-2015, 08:36 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,336
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by azupak View Post
for this line
Code:
<a id="note10" href="#note10b"><sub>[10]</sub></a><sub><font size="2">&nbsp;</font><font size="2">Stanisław Kucharski, b. April 26th 1918 in Żywiec. More→ BIOGRAPHIES</font></sub>
i have this errors:

- no declaration found for element 'font'
- element 'font' is not allowed for content model

What's it all about?
"element 'font' is not allowed for content model"

The font tag is not valid in xhtml

With any validation error that includes the phrase "element '<blah>' is not allowed" in the description, it's fairly safe to assume that the tag/element <blah> is not valid. Doesn't mean it can't work. It just means that the specs don't want you to use it.

I'm guessing you're using some old mobi-markup-based source code for your book? Mobiml is based on html 3.2 and will contain lots of markup that's not valid in xhtml.

Last edited by DiapDealer; 04-23-2015 at 08:46 AM.
DiapDealer is offline   Reply With Quote
Old 04-23-2015, 08:43 AM   #3
azupak
Junior Member
azupak began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2015
Device: none
Ok, so can i change it for something else? Why this application adds tags which cause errors?
azupak is offline   Reply With Quote
Old 04-23-2015, 08:55 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,336
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by azupak View Post
Ok, so can i change it for something else? Why this application adds tags which cause errors?
Sigil didn't add the font tags. They had to have been in your original source. The only tag Sigil will add that won't validate (that I'm aware of) is the '<u>' tag when adding underlines in wysiwyg mode. Sigil doesn't add '<font>' tags for any reason.

If you want to make an element's text larger or smaller, you should assign css to that element's class to do so. If it's already within a block element you may have to add span tags to accomplish it.

Code:
<a id="note10" href="#note10b"><sub>[10]</sub></a><sub><span class="smaller">&nbsp;Stanisław Kucharski, b. April 26th 1918 in Żywiec. More→ BIOGRAPHIES</span></sub>
span.smaller { font-size: .75em; }

Last edited by DiapDealer; 04-23-2015 at 08:58 AM.
DiapDealer is offline   Reply With Quote
Old 04-23-2015, 09:05 AM   #5
azupak
Junior Member
azupak began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2015
Device: none
Thanks! I'll try this
azupak is offline   Reply With Quote
Old 04-25-2015, 08:13 AM   #6
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
What exactly does "creating new epub from scratch" mean? What's your process?
exaltedwombat is offline   Reply With Quote
Old 05-01-2015, 09:17 AM   #7
azupak
Junior Member
azupak began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2015
Device: none
It means that i've started creating ebook in Sigil by using copy/paste method (copy from Word and paste to Sigil as 'clean' text, chapter by chapter) but after 2 chapters I realized that it's not as good idea as i thought, so after that I cleaned whole Word document by using regular expressions and then pasted it into Sigil.
azupak is offline   Reply With Quote
Old 05-01-2015, 12:16 PM   #8
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
Cleaning HTML via RegEx is not a good idea. A lot can go wrong. You could use my Word add-in, that will create clean code and an ePUB directly from Word if you want.
Toxaris is offline   Reply With Quote
Old 05-02-2015, 06:29 AM   #9
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by Toxaris View Post
You could use my Word add-in, that will create clean code and an ePUB directly from Word if you want.
Oh gosh, I suppose I must buy a new version of Word! The plug-in doesn't work with Word 2000, as I recall, so I have leaned on Word2CleanHtml online. (I finish up my books in Word for the sake of the curly quotes and the em dashes etc.)

But Word to epub? Really? How obsessive does a Wordster have to be, with Styles and such, to get a good result exporting via the plug-in?
Notjohn is offline   Reply With Quote
Old 05-02-2015, 10:58 AM   #10
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Just as obsessive as he will have to be in an ePub editor, if he's been sloppy in Word!
exaltedwombat is offline   Reply With Quote
Old 05-02-2015, 12:47 PM   #11
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
Quote:
Originally Posted by Notjohn View Post
Oh gosh, I suppose I must buy a new version of Word! The plug-in doesn't work with Word 2000, as I recall, so I have leaned on Word2CleanHtml online. (I finish up my books in Word for the sake of the curly quotes and the em dashes etc.)

But Word to epub? Really? How obsessive does a Wordster have to be, with Styles and such, to get a good result exporting via the plug-in?
So sorry not to support a version over 15 years old... It supports Office 2007 and even that is 9 years old... It uses features not available in Word in the older versions, so I cannot even port it even if I want to.

Yes, Word to ePUB. You don't even have to be obsessive to find it useful. It will create a good ePUB with clean HTML (even if you don't use styles), will split on headers, handles tables, lists, footnotes and basic formatting (more formatting if you use styles). You can create the ePUB and after creation automatically start up Sigil of Calibre editor to further process. It saves a lot of time cleaning up and produces much better results than the Word2CleanHtml online. And yes, I have checked that.

It has many, many more options and exporting to ePUB is just one of them and not even the most important one. Even if you don't find the addin and this option useful, others do.
To each its own.

Last edited by Toxaris; 05-02-2015 at 12:59 PM.
Toxaris is offline   Reply With Quote
Old 05-03-2015, 06:07 AM   #12
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
I can't use more recent iterations of Word than 2003 because they lack the ability to open WordStar files. WordStar is the best of all possible word processors, and I'll not give it up until I am no longer able to beat Windows into submission to run a DOS program, not even for your plug-in! It would be like touch-typing with just one hand!
Notjohn is offline   Reply With Quote
Old 05-03-2015, 07:36 AM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,336
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Notjohn View Post
I can't use more recent iterations of Word than 2003 because they lack the ability to open WordStar files. WordStar is the best of all possible word processors, and I'll not give it up until I am no longer able to beat Windows into submission to run a DOS program, not even for your plug-in! It would be like touch-typing with just one hand!
Please. This whole "WordStar is the best" hoo-hah is nothing but nostalgia, comfort-level, and familiarity. If it's so perfect, why do you need to be able to open its finished product in Word at all?

If it was truly "the best of all possible word processors," they'd still be selling versions of it for the latest Windows. It's more like; "I already put my time in learning the ins and outs of WordStar and have no desire to spend the time necessary to do the same with a newer Wordprocessing program, so I cling desperately to the past while convincing myself that I do so for purely objective "betterness" reasons rather than it simply being a case of subjective personal preference and a lack of desire to retool."

Nothing at all wrong with wanting to stick with what you know. It's just not reasonable to expect the rest of the world to accommodate your dated preferences ad infinitum.

Last edited by DiapDealer; 05-03-2015 at 07:41 AM.
DiapDealer is offline   Reply With Quote
Old 05-03-2015, 09:35 AM   #14
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
Quote:
Originally Posted by Notjohn View Post
I can't use more recent iterations of Word than 2003 because they lack the ability to open WordStar files. WordStar is the best of all possible word processors, and I'll not give it up until I am no longer able to beat Windows into submission to run a DOS program, not even for your plug-in! It would be like touch-typing with just one hand!
So, because you think Wordstar is the best, nobody should use a newer version of Word... Why did you respond to my message anyway? It had nothing to do with the original post and is apparently just for bashing others and showing your presumed superiority in working with ancient word processors. Fine, if you get a kick out of that. I will not respond to this anymore. I just gave the OP an alternative that will work for normal people that move along instead of grasping to the ancient ways.
Toxaris is offline   Reply With Quote
Old 05-03-2015, 10:24 AM   #15
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: 30,877
Karma: 59840450
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 Toxaris View Post
So sorry not to support a version over 15 years old... It supports Office 2007 and even that is 9 years old... It uses features not available in Word in the older versions, so I cannot even port it even if I want to.

Yes, Word to ePUB. You don't even have to be obsessive to find it useful. It will create a good ePUB with clean HTML (even if you don't use styles), will split on headers, handles tables, lists, footnotes and basic formatting (more formatting if you use styles). You can create the ePUB and after creation automatically start up Sigil of Calibre editor to further process. It saves a lot of time cleaning up and produces much better results than the Word2CleanHtml online. And yes, I have checked that.

It has many, many more options and exporting to ePUB is just one of them and not even the most important one. Even if you don't find the addin and this option useful, others do.
To each its own.
I still have my WS 5.5 (on 5.25" floppies.)
There is the small issue that none of my systems have/can use that size drive (I could never get XP to USE the drive, so I took it out and used the space for a 100M Zip Drive ((I still have blank Zip discs )) )
theducks is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Errors mpresley ePub 7 10-27-2011 02:41 AM
Help with validation errors AThirstyMind ePub 2 05-13-2011 06:08 PM
EPUB Validation errors vhin3125 Workshop 1 04-01-2011 12:37 PM
Validation Errors luthar28 ePub 13 08-10-2010 12:24 PM


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


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