![]() |
#1 |
Junior Member
![]() 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"> </font><font size="2">Stanisław Kucharski, b. April 26th 1918 in Żywiec. More→ BIOGRAPHIES</font></sub> - no declaration found for element 'font' - element 'font' is not allowed for content model What's it all about? Greetings Chris |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,335
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() 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?
|
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,335
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
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"> Stanisław Kucharski, b. April 26th 1918 in Żywiec. More→ BIOGRAPHIES</span></sub> Last edited by DiapDealer; 04-23-2015 at 08:58 AM. |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Apr 2015
Device: none
|
Thanks! I'll try this
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
What exactly does "creating new epub from scratch" mean? What's your process?
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() 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.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#9 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
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? |
|
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!
|
![]() |
![]() |
![]() |
#11 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#12 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!
|
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,335
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#14 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,876
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:
![]() 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 ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |