02-09-2023, 02:39 PM | #1 |
Guru
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
Add lang= to Jacket?
Is it allowable to add a lang= bit to the HTML line of the jacket in the Editor? Unless it's just a function of something I've done, that line in the current book I'm editing is:
Code:
<html xmlns="http://www.w3.org/1999/xhtml"> Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-us" xml:lang="en-us"> Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en-us" xml:lang="en-us"> |
02-09-2023, 02:54 PM | #2 | |
Wizard
Posts: 1,161
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
Of course, only works on new pages, not existing pages |
|
Advert | |
|
02-09-2023, 02:54 PM | #3 |
Guru
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
I'd guess that the "Overriding icons, templates, et cetera" section of the manual would be the place to look:
https://manual.calibre-ebook.com/cus...ates-et-cetera But, I don't know which file in the configuration folder I might change to store in the resources folder to modify the jacket format. |
02-09-2023, 02:55 PM | #4 |
Guru
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
|
02-09-2023, 03:29 PM | #5 |
Guru
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
Also, what about titlepage.xhtml and toc.xhtml?
I'm not sure if titlepage.xhtml is a standard part of an epub of if it's a calibre construct. But, for the book I'm currently editing, the HTML line is: Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> Code:
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
Advert | |
|
02-09-2023, 03:30 PM | #6 |
Resident Curmudgeon
Posts: 74,542
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You don't actually need an HTML TOC. You have the NCX file and if it's ePub3, you have the NAV and in most cases the NCX.
|
02-09-2023, 03:56 PM | #7 |
Wizard
Posts: 1,161
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
02-09-2023, 05:56 PM | #8 |
Guru
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
My toc.xhtml files don't get re-created unless I hit that button to tell it to do so (I want the inline toc at the front of the book). There is an option under Calibre's Preferences > Conversion > Output Options to "Insert Inline Table of Contents" and I've got that off. Could you have that option on? I'd think that would only happen on Conversion, though.
|
02-09-2023, 06:17 PM | #9 |
Guru
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
I've tested replacing the <html...> line in titlepage.xhtml, jacket.xhtml and toc.xhtml with a standard:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en-us" xml:lang="en-us"> |
02-09-2023, 06:23 PM | #10 | |
Wizard
Posts: 1,161
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
When editing the table of contents it recreates the toc.ncx. |
|
02-10-2023, 05:47 AM | #11 | |
the rook, bossing Never.
Posts: 11,565
Karma: 87456643
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
You need the toc.ncx for epub2 ereader/app compatibility. That's why it's recreated. Answer "no". OTOH there is the odd reader that doesn't display system contents using the toc.ncx. That's why some ebooks have an HTML contents page and link each chapter to it. Also an HTML contents page can have additional information and as many levels as you want, partway between and Index and Contents page. More than two on toc.ncx is inadvisable. Oddly not all ereaders have search either, or only a convoluted method to input text if no touch or keyboard. I had one totally dumb ereader that had no search and no ability to select links. I forget if it had the system contents using toc.ncx Last edited by Quoth; 02-10-2023 at 05:51 AM. |
|
02-10-2023, 12:21 PM | #12 |
Guru
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
While confirming that the toc.ncx gets recreated, I also noticed the same lang= issue for both it (toc.ncx) and nav.xhtml. Sort of. Toc.ncx doesn't even have an <html...> line (I guess since it's not an html/xhtml file). Instead, it has:
Code:
<ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="en"> Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" lang="en" xml:lang="en"> EDIT: Also, manually editing the <html...> line in nav.xhtml does seem to remove its "duplicate" entries in the spellchecker (I assume they're getting folded into the ones for the rest of the document). But, changing the language in the <nxc...> line of toc.ncx doesn't make any difference. Its misspellings continue to show up as plain English. Last edited by enuddleyarbl; 02-10-2023 at 12:38 PM. |
02-10-2023, 01:14 PM | #13 |
the rook, bossing Never.
Posts: 11,565
Karma: 87456643
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I spiel cheque in the LO Writer, extra Save As docx and import to Calibre.
Can't you exclude system files in Calibre spell checker? |
02-10-2023, 04:39 PM | #14 | |
Resident Curmudgeon
Posts: 74,542
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Oh and tif here are links back to the HTML ToC, that have to also go. I use Diaps Editing Toolbag to remove links tot he HTML ToC. |
|
02-10-2023, 05:19 PM | #15 |
Well trained by Cats
Posts: 29,945
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Are we using THE EDITOR or does this thread belong in Conversions?
Conversion can/does create TOC depending on format |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add xml:lang to ePub | abraum | ePub | 11 | 06-25-2021 06:06 PM |
Add Read/Unread metadata from custom column to metadata jacket | allanahk | Library Management | 4 | 11-12-2018 03:10 PM |
Stop overwriting metadata jacket on conversion (instead add another one)? | allanahk | Calibre | 2 | 11-11-2018 04:21 PM |
Add Copyright to Book Jacket | Axell | Conversion | 4 | 03-23-2017 03:16 AM |
Any way to add Book Jacket w/ Save to disk? | djrm | Calibre | 3 | 08-17-2010 11:52 AM |