![]() |
#16 |
Enthusiast
![]() Posts: 48
Karma: 62
Join Date: Jan 2010
Device: HANLIN V3
|
A) you people are Wonderful. Bouquets and heartfelt thanks all around.
B) case-sensitive tags in XHTML/XML, doh! my bad. got too used to loose, case-insensitive HTML parsers. C) after fixing (ahem) this little problem I tried again... and found a new problem. Looks like Sigil wrote an incomplete metadata block? I get complaints about "Unfinished element" at line 9 of content.opf. I hadn't touched this file with vim afaik, only the content???.xhtml files further down in text/. I consulted Ainsworth's guide to XHTML (my current favourite tutorial/ref) and found that the metadata block must include title, identifier, and language. Looks like "language" is missing from the block in my content.opf, so I am adding Ainsworth's sample "en" language element. <dc:language xsi:type="dcterms:RFC3066">en</dc:language> this didn't fly either. ERROR: AgCiv.epub/OEBPS/content.opf(8): The prefix "xsi" for attribute "xsi:type" associated with an element type "dc:language" is not bound. (sigh) I get rid of the offending xsi:type syntax. finally, my epub is valid! I now restart Sigil (drum roll...) and load the freshly validated epub. Yes, it loads! Yes, I can see the entire document. And best of all, YES it has a table of contents. Now I'm going to Save it back and see if Sigil (a) writes a correct metadata block and (b) writes toc.ncx... ... and the answer is... Yes, the language tag has persisted in the metadata block, and Yes, toc.ncx is now fully populated with (I trust) correct section/subsection references. I am, as far as I know, one happy camper and no longer *quite* such a n00b. So why was the language element missing from the metadata block? Did Sigil leave it out? Did Calibre leave it out and Sigil simply replicate the bad block? Or have I been into that file with vim, accidentally deleting one line and subsequently forgetting all about it? I guess I'll find out next time I convert pdf to epub in Calibre and then export it for edit :-) ![]() |
![]() |
![]() |
![]() |
#17 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Do you really want your editor to "guess" at your book's title, author and language? This is one of the things you have to make sure you include yourself. What Sigil can do (and will, in time) is warn you that you failed to specify this information. But that's as far as it can go. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | ||
Enthusiast
![]() Posts: 48
Karma: 62
Join Date: Jan 2010
Device: HANLIN V3
|
Quote:
If Sigil did want to be more newbie-friendly... perhaps in the metadata editor, any missing *required* elements for a structure could be created with value BLANK and visually highlighted, so if you pop open the editor you immediately see that the doc is damaged or incomplete? Most every commercial Web form on the planet flags (w/asterisks, colour, boldface, etc) "required fields" -- it's a visual convention familiar to most 'net users. Quote:
One last thought... Couldn't 'language' be inferred -- if left uninitialised -- from the local environment? It wouldn't be infallible (my LANG may be en, but I may also read/author documents in French from time to time). But it might be a good starting guess. "Element 'language' missing from metadata. Initialised to best-guess 'en' from local language configuration." |
||
![]() |
![]() |
![]() |
#19 | ||
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
The average epub user doesn't care that his epub file doesn't conform to the epub spec, he just wants to fix errors/improve layout etc. He only cares that the file displays correctly on his reading device. The people who care about their epub file meeting the specification already use tools like epubcheck to verify the basic requirements. If you care about meeting the specification, the prerequisite is that you know it. Guessing the language according to the system locale is a bad idea, since it lulls you into believing that you don't have to worry about setting a language directly. And then you create an epub in a different language and now your epub has incorrect information. Not to mention other people (like for instance, me) who use a different locale than the majority of the books they create. And then you're still left with the title and author, so you have to open the Meta Editor either way. There's no way around this. And you're still ignoring the main problem: Sigil can't guess the author or the book title. Nothing can. Case closed. Bottom line, guessing is error-prone (hence, guessing). I'm against it. I'd rather force the user to make sure he used the correct information than have him curse my name when the guessing game bites him and causes considerable damage. I choose to err on the side of caution. The only recourse is to provide a warning on export if some of this information is missing, and the user can either act on this or ignore it if he doesn't care. Quote:
Last edited by Valloric; 02-14-2010 at 10:34 AM. Reason: restructured a bit |
||
![]() |
![]() |
![]() |
#20 | |
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Debasish
![]() Posts: 10
Karma: 10
Join Date: Feb 2010
Location: India
Device: Sony Reder
|
Need Help
How to convert .epub to .awz
![]() |
![]() |
![]() |
![]() |
#22 | |
Enthusiast
![]() Posts: 48
Karma: 62
Join Date: Jan 2010
Device: HANLIN V3
|
My apologies, no sarcasm was intended. I have written a lot of GUI apps that were not for newbies at all, just convenience-tools for people who had to have expert knowledge well in hand before using the tool. So it makes sense to me that a tool can be GUI without being at all intended for newbies, and I would accept such a tool and bring to it different expectations than I'd bring to something intended to hand-hold the clueless. (And when it comes to epubs, as I've made embarrassingly clear, I am still firmly situated in the ranks of the clueless).
Quote:
Mostly, I'm sorry to have given the impression of sarcasm -- and offence -- when being quite serious and having friendly rather than baiting intent. Apologies again. Tone is difficult to convey -- with or without smileys -- and I seem to have conveyed an unintended tone here. I've succeeded in making my epub compliant; I now know how to generate toc.ncx using Sigil (this alone is worth a bit of learning curve!); I now know which metadata fields are required for a well-formed content.opf; and I can move on to final proofing for those last few blankety-blank OCR errors. Everyone's been very helpful and all the patient n00b-education is much appreciated. |
|
![]() |
![]() |
![]() |
#23 |
zeldinha zippy zeldissima
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
|
don't worry rootless agrarian, we all were clueless n00bs once.
![]() ![]() |
![]() |
![]() |
![]() |
#24 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,841
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
|
![]() |
![]() |
![]() |
#25 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
TOC and Index links in Sigil | Bamber | ePub | 10 | 11-11-2010 02:12 PM |
Calibre ePub TOC and Sigil | salasnet | Calibre | 3 | 09-26-2010 05:34 PM |
Sigil Toc editor | Enesco | Sigil | 16 | 09-23-2010 06:41 AM |
sigil and toc | bobcdy | Sigil | 5 | 10-17-2009 04:29 PM |
TOC in Sigil | KindleKid | Sigil | 8 | 08-19-2009 04:30 PM |