02-06-2017, 04:37 PM | #1 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Some files.html & toc.xhtml (also Cover.xhtml)
I create via Tools->Table of Contents->Insert inline Table of Contents such one. It came as .xhtml-file. My other files are all .html, apart from Cover.xhtml (I don't know why this one is also .xhtml). toc.xhtml What is this all about? Edit: And why it came with such a CSS, which doesn't function in ereaders, at least not in my one!? Code:
<head>
<title>Inhaltsverzeichnis</title>
<style type="text/css">
li {
list-style-type: none;
padding-left: 2em;
margin-left: 0;
}
a {
text-decoration: none;
}
a:hover {
color: red;
}
</style>
</head>
Last edited by chaot; 02-06-2017 at 04:50 PM. |
02-06-2017, 04:43 PM | #2 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It doesn't actually matter which file extension is used. Just pick one and rename so they are all the same. They don't have to be the same, it just looks better.
|
Advert | |
|
02-06-2017, 04:59 PM | #3 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Are you sure? Check Book is after the change to toc.html unchanged. For what kind of changes is the message meant? |
02-06-2017, 05:42 PM | #4 |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
There is no problem with changing .xhtml to .html, or vice versa.
|
02-06-2017, 06:31 PM | #5 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
The file extension is unimportant. What actually matters is the mime type declared in the OPF. It should be application/xhtml+xml for XHTML files.
|
Advert | |
|
02-07-2017, 02:12 AM | #6 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Now, the hover selector might work on a tablet or PC, but not on a standalone reader for sure. |
|
02-07-2017, 10:49 AM | #7 | ||
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
The message say:
Quote:
I specify my question from #3: For what kind of changes is the message box created at all? @jhowell - that's alright, as you see: Code:
<manifest>
<item href="toc.html" id="id8" media-type="application/xhtml+xml"/>
... and at end ...
<reference type="toc" title="Inhaltsverzeichnis" href="toc.html#calibre_generated_inline_toc"/>
Not from here: Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" lang="de"> Quote:
So, it shouldn't come as integrated CSS here! Last edited by chaot; 02-07-2017 at 10:53 AM. |
||
02-07-2017, 11:12 AM | #8 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
EPUB3 recommends .xhtml extensions. EpubCheck will actually issue a warning for files that are .htm, or .html (in an epub3). Better safe than sorry, in my opinion (even though warnings are not errors). I make them all .xhtml (regardless of the epub version).
|
02-07-2017, 12:35 PM | #9 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
All .xhtml to be safe for future: Piece of good advice!
|
02-07-2017, 03:08 PM | #10 | |
null operator (he/him)
Posts: 20,559
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
FWIW Sigil doesn't issue similar warnings. I don't know if any of the epub validators would object to the presence of a .jng file, or if any ereader devices would know what to do with one. I do same as DD - make all the text files .xhtml. BR |
|
02-07-2017, 04:15 PM | #11 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Make sure to select Englisch from the Sprache (Language) dropdown list box in the Neues Buch erstellen (Create new book) dialog box when you create a new English epub. |
|
02-08-2017, 01:00 PM | #12 | ||
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
You still learn something about it.
I use English interface! Quote:
Quote:
Last edited by chaot; 02-08-2017 at 01:03 PM. |
||
02-08-2017, 01:15 PM | #13 | |
Grand Sorcerer
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
<dc:language>de</dc:language> BTW, if it's a German book, why do you want to change the value of the TOC guide item title attribute? |
|
02-09-2017, 10:49 AM | #14 | |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
@Doitsu: Quit simple! Sometimes we can't see the wood for the trees.
In Edit Metadata there is a dropdown box Language: German (in my case). E.g. I test with French: then inline TOC comes as Table des Matières Tested with Yoruba (a westafrican language): Table of Contents. Kovid made a mistake here. Correct is: Tabili ti awọn akoonu ti (Google translate). Quote:
Anyway, I know now: there is no mystery! all! |
|
02-09-2017, 05:16 PM | #15 | |
null operator (he/him)
Posts: 20,559
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
My Google English to Yoruba translator yields "Atọka akoonu" for "Table of Contents", as does a Nigerian Yoruba dictionary site. I think Google translates differently if your Google language is set to other than the source language - perhaps by translating source to user's google language and then to target language. I've experienced this when translating FX Italian to Swedish when my Google language is set to English, if I set my google language to Italian I sometimes get a different result - which is almost invariably 'better' according to my Swedish interlocutor BR |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
InDesign - ePub export html files instead of xhtml | csavory | ePub | 5 | 02-06-2015 01:47 AM |
MOBI without TOC.xhtml | Oxford-eBooks | Kindle Formats | 13 | 10-04-2014 11:40 PM |
Creating TOC and splitting into several xhtml files | Julius Caesar | Kindle Formats | 1 | 08-31-2013 09:26 AM |
TOC xhtml | giosa | Sigil | 3 | 01-17-2012 09:12 PM |
XHTML files not listed, only one HTML file | SmartyGuy | Sigil | 6 | 06-21-2011 12:32 PM |