08-12-2013, 10:05 AM | #76 |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
@Jellby
Thanks for telling your motives. Until now I like Sigil (But I'm a newbie in epub at all and working at it since a week I miss some control about the code generation. E.g. the pattern of the IDs: It's id="FILENAME.FILEXTENSION" instead of just id="FILENAME" Or the UUID: It is automatically added even if there's an ISBN in the metadata. Or the pattern of the ISBN: I'm looking for an automatical transformation from an (unformated) ISBN10 into a formated ISBN13 |
08-13-2013, 04:48 AM | #77 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
Calibre allows you to define expressions which determine those tags which should contribute to the toc and their level in the toc, so this gives quite a lot of control without resorting to hand-coding. Not sure what level of control Sigil gives you as I don't use it. |
|
Advert | |
|
08-13-2013, 06:07 AM | #78 | ||
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Quote:
Quote:
In my utopy using H1 for the highest level is obligatory. It is not anymore a decision of the editor. And "span class="toc1" is simply not a valid markup for a heading. But well, I don't think there are many readers in this forum, who like to talk about "how a better epub spec could be". That's no offense at all. But in my experience in forums in general, people prefer to talk about the reality |
||
08-13-2013, 07:39 AM | #79 | |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Face it: the current ePub spec is largely ignored whenever it suits specific vendors of devices/apps that must read the ePubs. That wouldn't change with your new utopian ePub spec. So what's the point of building (or even imagining) a better--more concise-- imaginary ePub spec that would be adhered to (or supported/implemented in toto) by almost no one? Don't get me wrong ... idealism can be fun. There's nothing wrong with dreaming about what could be. It's just that most of us here (with intimate knowledge of how ePub works--practically--on a range of devices/apps) have already gone through that idealistic phase long ago ... and had it crushed out of us by reality. Last edited by DiapDealer; 08-13-2013 at 08:21 AM. |
|
08-13-2013, 09:20 AM | #80 |
Member Retired
Posts: 3,183
Karma: 11721895
Join Date: Nov 2010
Device: Nook STR (rooted) & Sony T2
|
It doesn't sound that hard to do. A parser using lots of string manipulation and outputing a new and stripped version of the file would do it. Aspects of the decision-making about what to strip would probably require user-intervention. But no, it doesn't sound that hard.
|
Advert | |
|
08-13-2013, 03:08 PM | #81 | |
Bookmaker & Cat Slave
Posts: 11,461
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
There already are ePUB specifications, and there already are "good" HTML coding versus "bad" HTML coding specifications. Anyone who wants to make a higher-quality ePUB can do so--certainly, no one is stopping them. Anyone who wants to can code "perfect" ePUBs or ePUBs that meet their own "should" criteria...{shrug}. When it comes to many of the original "shoulds," as I said some posts ago, everyone's going to have their own view on that, as there are, again, multiple roads to Damascus. While structural issues have more basis in "should," (so as not to confuse what something is versus what it looks like), all the rest is driven by how someone learns; what they like, versus what they don't; what program they're using (someone using INDD with an export plug-in is going to be far, far likelier to use spans for stylistic choices than someone using Sigil, for example), and the like. {shrug}. And what's the point of a set of "rules" or "shoulds" when it's likely that the books we make will have to be altered to work on retail devices, anyway? As we discussed some posts back, as merely one example, all those extra spans in an ePUB for iBooks are to make centering and other aspects work, for the first-gen iPad. For a 1st-Gen iPad, you still can't float images and text at the top of a screen without the text overwriting the images, and Apple can't be bothered to issue a fix, because they have a positive animus about supporting older tech. Like I said, don't mean to sound like a buzz-kill...all these woulda's and shoulda's...but it's a bit difficult when nobody else is playing along, particularly the Elephants. Just my $.02. Again. Hitch |
|
08-13-2013, 03:14 PM | #82 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
08-13-2013, 06:31 PM | #83 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Agreed, but it is valid markup for a TOC entry.
TOC entries do not have to be restricted to heading tags. Although Hn tags probably make most sense for the TOC this is not an ePub requirement, except perhaps in the utopian ePub. Last edited by Agama; 08-13-2013 at 06:35 PM. |
08-13-2013, 06:46 PM | #84 | |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Quote:
I think it's a mistake of the actual spec, kind of cowardice, that it's not more strict. |
|
08-13-2013, 06:55 PM | #85 | |
Grand Sorcerer
Posts: 5,185
Karma: 25133758
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Pocketbook Touch HD3 (Past: Kobo Mini, PEZ, PRS-505, Clié)
|
Quote:
What's the objectively-identifiable difference between "linked list of chapter subsections" and "ToC links?" Who decides what makes a "real" table of contents instead of an internal list of links, which could be in standard <p> format? And before you get to "the TOC comes at the beginning," how would that apply to omnibus documents containing several books? (For that matter... how would you identify "Things That Must Be Marked As Headers?" Some people throw plain text into epub with no markup. Would you declare that any text that's bolded and centered must use an <H> tag?) |
|
08-13-2013, 06:57 PM | #86 | |
Bookmaker & Cat Slave
Posts: 11,461
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
With all due respect, using header tags for the actual TOC entries makes not one iota of sense at all. Using header tags to generate NCX entries--that makes sense. Using header tags in the actual ePUB, to define struture--this makes sense. Using header tags, for nothing other than what is a link? Why does this make sense? An html toc is nothing but a page full of text and links. Using header tags for it, in fact, should be contraindicated. I mean, if we're going all Utopian here. There's not one damn thing "structural" about a page full of text links. Just sayin'. Ooops...I see that Elfwreck beat me to it. ;-) Hitch Last edited by Hitch; 08-13-2013 at 10:16 PM. Reason: Added the Ooops. |
|
08-14-2013, 01:20 AM | #87 |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
|
08-14-2013, 01:28 AM | #88 | |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Quote:
I just plead for obligatory Hns in the text files for headings. No *.ncx at all. When an editor wants, that his readers get a TOC, he has to markup the headings in his textfiles. When the editors thinks "I don't care about a TOC", than he markups how it gives him private joy. But than his readers will get no TOC. It's very simple with strict specs. |
|
08-14-2013, 01:46 AM | #89 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It is in the specs, iirc, that on the devices the ncx could/should be used as a TOC.
|
08-14-2013, 02:52 AM | #90 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
Most of us recognise and dislike messy markup but there are many ways of using different, but well-formed, markup to achieve the same end result. Have you done any web searches for HTML tidying tools. Maybe there is something out there with some flexible user configuration that could help you. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Touch Problem with all epubs, my epubs, or my kobo? (line clipping) | plague006 | Kobo Reader | 14 | 12-02-2011 11:32 PM |
Gui Plugin for Cleaning Ebooks, Fast | burbleburble | Plugins | 91 | 10-11-2011 04:45 PM |