12-11-2018, 10:30 AM | #1 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
<docTitle> and <dc:title>
I start most of my epubs by copying an existing file and then replacing text, images, etc, especially when they're in a series.
So I started with "Old Title" (an epub2) and was making "New Title". Imported new text and images then did a TOC, then edited the metadata. All looked fine. Searched for "Old Title" in the html and the OPF; no mentions left. I went to ePub3-itizer to make a file for iBooks. It wanted to save the file as "Old Title-epub3.epub". Of course I could rename it, but I wondered where the hell it was getting that name from. The OPF: <dc:title>New Title</dc:title> I used Sigil's tool Metadata editor, changed the title (which as expected, changed the above line in OPF); still ePub3-itizer thought it was "Old Title". Of course, there was one file I hadn't looked in: the NCX. And there it was: <docTitle> <text>Old Title</text> </docTitle> So: 1) Why is this here at all? What uses this, aside from ePub3-itizer? 2) Why doesn't the Metadata editor update <docTitle> as well as the OPF <dc:title>? And/or show there is a discrepancy? Neither the "Well-Formed Check" nor Epubcheck raises a flag at them mismatching I found that if I used Tool/Generate TOC, the title was updated in the NCX to match the OPF. But also of course it would make a completely new TOC, and I'd lose any manual edits. But I would not even have known it was necessary if ePub3-itizer hadn't brought it to my attention, since I always use the TOC editor rather than the code directly. Last edited by AlanHK; 12-11-2018 at 11:53 AM. |
12-11-2018, 12:12 PM | #2 | |||||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://web.archive.org/web/20170601...5.html#NCXElem Quote:
Quote:
And according to the MobileRead Wiki page on NCX: Quote:
Quote:
This wouldn't regenerate a TOC based on the book's <h#>, but runs some basic cleanup on the toc.ncx file (along with updating the <docTitle>). (What sort of manual edits are you making in the toc.ncx in the first place?) Last edited by Tex2002ans; 12-11-2018 at 12:15 PM. |
|||||
Advert | |
|
12-12-2018, 01:10 AM | #3 | ||
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
But not matching can only lead to problems, as I encountered. Quote:
Which makes the Metadata Editor's failure to update the title in the NCX seem even odder. For instance, combining different level heads (e.g., Title and Author, h2 and h3). |
||
12-12-2018, 12:26 PM | #4 | |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
There is no failure in the metadata editor. It works as designed for editing the metadata tag contents inside the OPF. If you want to edit the NCX or the TOC, use those features.
By the way, under epub3, you can supply many different dc:title metadata elements so using that to update the ncx or toc makes little sense. Quote:
|
|
12-13-2018, 12:48 AM | #5 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Don't take it personally.
Just a suggestion: as the TOC editor already silently updates the title in the NCX to match the OPF title, why not also do it in the Metadata editor? It IS metadata, just not in the OPF. There is no earthly reason you would want them to be different, they were in my file only because I was unaware there was a title in the NCX at all. Quote:
Anyway, in epub3, the "Generate NCX from NAV" tool does indeed create/change the <docTitle>entry in the NCX from the OPF <dc:Title>. |
|
Advert | |
|
12-13-2018, 06:25 AM | #6 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
12-14-2018, 12:49 AM | #7 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
And when I try to explain that, you take offence. I was NOT trying to make a veiled attack. I'm not stupid enough to ask for help and insult the person at the same time. Put it down to lack of diplomacy, not malice. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Metadata Plugboard to change title of same-title books in series for Kobo Touch | il_mix | Library Management | 5 | 03-15-2018 04:59 PM |
RegEx-Putting pub. date after first sentence in title if two or more sentenced title | font332 | Library Management | 0 | 08-17-2017 08:49 AM |
Edit Book: Handling of 'umlaut' in <title>Wilde Schw�ne</title> | chaot | Editor | 3 | 04-26-2016 12:34 PM |
Title bulk edit match - to remove series info from title | Rob557 | Library Management | 30 | 12-09-2014 06:06 AM |
Pubit!/Add Title Previewer shows ellipsis in title bar | schooner1892 | General Discussions | 0 | 09-15-2012 07:04 PM |