04-12-2024, 09:07 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Apr 2024
Device: none
|
From HTML to XHTML (or XHTML text?!)
Recently, my e-book distributor told me that the text file in my epub is HTML and must be changed to XHTML to comply with the review requirements of some platforms.
I checked Caliber's conversion information, and it seems that the way it works is to use a plug-in to convert to XHTML and then convert it to HTML before outputting it. What should I do if I don't want the "convert to HTML" step? In other words, I want the extension of the content text file to be XHTML instead of HTML after converting my book from docx to epub. I'm not English native speaker, please let me know if there are any misunderstandings. |
04-12-2024, 03:21 PM | #2 |
Wizard
Posts: 1,322
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Hello @beeace336
You don't need any plugins to change file extensions. I've had a look around the Conversion settings screen, but could not find a mention of plugins, or any setting for html<>xhtml settings. Not sure where you saw the requirement for a plugin. But the fix is simple...
See the image... |
Advert | |
|
04-12-2024, 05:02 PM | #3 |
the rook, bossing Never.
Posts: 12,260
Karma: 89531599
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
I didn't like to write because I thought it was too simple, but I thought it was simply the naming, *.html -> *.xhtml. The actual text will be xhtml assuming it passed checks because it's an epub.
Your ebook distributor may be clueless? |
04-12-2024, 05:04 PM | #4 |
Bibliophagist
Posts: 39,678
Karma: 154147704
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Sadly while HTML and XHTML do have some differences (ePub2 compared to ePub3), the last publisher that demanded XHTML files was happy with the content when the text files were block renamed from .html to .xhtml in an ePub2 ebook.
|
04-12-2024, 06:24 PM | #5 |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
If the distributor continues to complain after you change the file extensions (↑ ↑ ↑), open a copy of the EPUB with Sigil, click 'Yes' to the following popup and Save the EPUB and send that your e-book distributor.
BR |
Advert | |
|
04-12-2024, 11:00 PM | #6 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Apr 2024
Device: none
|
Thank you so much!
I've already followed your method and succeed! I upload my e-book again and waiting for reply from my distributor's now. Quote:
|
|
04-13-2024, 07:31 AM | #7 |
the rook, bossing Never.
Posts: 12,260
Karma: 89531599
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there any value to XHTML vs HTML? | fdwojo | Sigil | 7 | 11-18-2019 04:47 PM |
Some files.html & toc.xhtml (also Cover.xhtml) | chaot | Workshop | 23 | 02-13-2017 12:20 PM |
html vs xhtml | cybmole | Sigil | 4 | 04-29-2014 11:22 AM |
HTML Or XHTML? | fcm52 | Workshop | 2 | 09-29-2013 01:10 PM |