Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2020, 11:17 AM   #1
Hushpower
Member
Hushpower began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: None
Validator saying .HTML files should be named .XHTML

Gday, I'm getting close to publishing my book (a DOCX converted to EPUB with Calibre) and have used a couple of validators (https://epubcheck.mebooks.co.nz/ and the offline Pagina). Both are returning an error (74, actually) which says:

Quote:
WARNING: content.opf(23,86): XHTML Content Document file name 'index_split_000.html' should have the extension '.xhtml'.
Otherwise, no errors.

I've checked the EPUB in the Kindle Previewer and sideloaded it to ibooks (on my ipad) and Kobo and it looks great.

I'd be grateful if someone could advise whether this error is acceptable and if not, what I have to do with Calibre to rectify the error.

Thanks and Cheers, Al
Hushpower is offline   Reply With Quote
Old 07-30-2020, 12:48 PM   #2
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
It is recommended, though not required, that the component files that make up an EPUB use standard file extensions. Content in an EPUB is in XHTML format and so should have the file extension .xhtml. You can fix this using the calibre editor.
jhowell is online now   Reply With Quote
Old 07-30-2020, 02:39 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You should be running the epubcheck Calibre editor plugin instead on using online validation. It's more secure and much easier to use.
JSWolf is offline   Reply With Quote
Old 07-30-2020, 08:35 PM   #4
Hushpower
Member
Hushpower began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: None
Thanks very much, people.

@JHowell, done. Is there a way to force Calibre to do name the files xhtml automatically?

@JSWolf, installed the plugin OK, and after I changed the filenames, my book got a clean bill of health. I did have second thoughts about that checking site. If the book "escapes", I'll blame the Kiwis!
Hushpower is offline   Reply With Quote
Old 07-31-2020, 06:15 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Hushpower View Post
Thanks very much, people.

@JHowell, done. Is there a way to force Calibre to do name the files xhtml automatically?

@JSWolf, installed the plugin OK, and after I changed the filenames, my book got a clean bill of health. I did have second thoughts about that checking site. If the book "escapes", I'll blame the Kiwis!
I cannot say what happens on these sites to eBooks you validate online. I just know that I prefer doing it locally because it's faster, easier, and any errors can be corrected on the spot.
JSWolf is offline   Reply With Quote
Old 07-31-2020, 06:30 AM   #6
Hushpower
Member
Hushpower began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: None
Thanks Jon.
Hushpower is offline   Reply With Quote
Old 07-31-2020, 07:50 AM   #7
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,072
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Hushpower View Post
@JHowell, done. Is there a way to force Calibre to do name the files xhtml automatically?
I don't know. The calibre editor has a feature that fixes some errors automatically, but this is not really an error so I don't know what it will do in this case.
jhowell is online now   Reply With Quote
Old 07-31-2020, 08:00 AM   #8
Hushpower
Member
Hushpower began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: None
Thanks JHowell.
Hushpower is offline   Reply With Quote
Old 07-31-2020, 12:46 PM   #9
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,587
Karma: 14328510
Join Date: Nov 2019
Device: none
In Sigil you can rename the html files to xhtml; ctl click on each one you want to rename in its Book Browser then right click and select regex rename.

If you'd rather not select them individually you could select all of the books and then instead of using html for the first box use \.html, (and .xhtml for the second box).

I use Sigil for my epub editing but it and Calibre's editor are a toss-up feature-wise.
hobnail is offline   Reply With Quote
Old 07-31-2020, 02:22 PM   #10
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by hobnail View Post
In Sigil you can rename the html files to xhtml; ctl click on each one you want to rename in its Book Browser then right click and select regex rename.

If you'd rather not select them individually you could select all of the books and then instead of using html for the first box use \.html, (and .xhtml for the second box).

I use Sigil for my epub editing but it and Calibre's editor are a toss-up feature-wise.
You don't need to use regex. Simply select the files, rename, enter .xhtml in Rename starting at: field and click on OK.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub Validator nav.xhtml incomplete ol missing Akasashasha ePub 26 12-22-2017 08:17 AM
Some files.html & toc.xhtml (also Cover.xhtml) chaot Workshop 23 02-13-2017 12:20 PM
InDesign - ePub export html files instead of xhtml csavory ePub 5 02-06-2015 01:47 AM
HTML Page to EPUB Named Anchor Problem gknitz Conversion 11 10-02-2013 11:00 PM
XHTML files not listed, only one HTML file SmartyGuy Sigil 6 06-21-2011 12:32 PM


All times are GMT -4. The time now is 12:25 PM.


MobileRead.com is a privately owned, operated and funded community.