![]() |
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 |
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. |
Ok, so can i change it for something else? Why this application adds tags which cause errors?
|
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> |
Thanks! I'll try this
|
What exactly does "creating new epub from scratch" mean? What's your process?
|
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.
|
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.
|
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? |
Just as obsessive as he will have to be in an ePub editor, if he's been sloppy in Word!
|
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. |
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!
|
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. |
Quote:
|
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 :eek:)) ) |
Quote:
|
Quote:
|
Quote:
And I succeeded! I always viewed as one of those programs that becomes popular for no apparent reason, and then stays popular because no one wants to change. |
It became popular back in the days of CP/M, and by having it's key bindings adopted by other tools like Sidekick and the Turbo Pascal IDE.
|
Quote:
or the later Windows versions? All the early DOS stuff ran on 8080 processors with up to 640K RAM IIRC the big players were Word Processing: Word, Wordperfect, Wordstar Spreadsheet: 123, Supercalc, Multiplan, Quattro RDatabase: dBase, Paradox, (RBase? brain fade :o ) |
@theducks You forgot Visicalc - AFAIK it was first spreadsheet - an Apple II killer app, but for Viscalc there might not be an Apple.
And Multimate Word processor - an IBM PC killer app that killed the Wang WP system, it wasn't much known outside of large corporations - Conn Life commissioned its development. I recall some C programmers using it as an editor - the alternative was EDLIN :lol: Can't remember if it was William Safire or William F. Buckley who used Wordstar up until the day they died - might have been both. I miss them - not that I always agreed with them, but they could turn a phrase or two and raise a wry smile; most of today's equivalents can only beget groans of despair... so many words, so little said :cry: BR |
Quote:
It is a brilliant program, never matched in all the years since. It is in effect a third keyboard level, so that one has lower case, caps, and editing commands, all without looking at the keyboard or moving one's hand off the home keys. I went from 42 wpm on a manual typewriter to 100 wpm on an Olympic electronic typewriter with a CPM computer extension running what I suppose was WS 3. Mike Petrie has created a WordStar command set for Word that makes the clunky Microsoft software function well, though not perfectly. (One must switch to Alt-A to Mark All, for example.) I usually finish up manuscripts on Word, because that's how editors expect to receive them. I have successfully punted WordStar (it's 7D, the last release) through all successive Windows machines, down to Win 7 32-bit. It still works perfectly though I have lost the ability to copy from WS to Clipboard (I can go the other way), so in the rare case where I must do this, I open the WS file in Notepad. I also can no longer print from WS, though most afficionados have built a workaround use Ghostscript for that purpose. IMHO the introduction of WordStar made the whole computer revolution worthwhile, even if it had never led to nothing else. I cannot imagine doing without it. |
I second everything Toxaris said about his plugin, it is absolutely glorious, and can make clean/barebones HTML out of any sort of messy DOC(X)s you might get your hands on.
Quote:
|
Quote:
|
| All times are GMT -4. The time now is 07:59 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.