![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30
Karma: 157236
Join Date: Apr 2012
Location: Winnipeg
Device: Kobo Glo
|
automagic .html to .xhtml ceased
Putterer, been looking for weeks for someone to post about this but no luck.
I take zipped .html mostly from Fadepage (Distributed Proofreaders Canada) and also from PG and convert to .epubs for my own usage. The .epubs from the 0.5 series would have the first sheet as, say, 20120626.html and from then on after every split at cursor or page break the output would be .xhtml - example Title.xhtml, Chapter01.xhtml etc. after renaming. One of the first things I did was to cut and paste out the <style> </style> section and put into a style sheet /Styles/Style0001.css and then put in a link. Since 0.62 in linux (and also 0.70 on Windows 7) my splits between title page, Contents, chapters, etc. all end in .html - not .xhtml (BTW I love the new right click to link style sheets) example first section is 20130224.html Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <!-- terminate if block for class html --> <title>The Song of Roland translated by Dorothy L. Sayers</title> <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css" /> </head> <body> <p class="sgc-1">* A Distributed Proofreaders Canada eBook *</p> <p>This eBook is made available at no cost and with very few restrictions. These restrictions apply only if (1) you make a change in the eBook (other than alteration for different display devices), or (2) you are making commercial use of the eBook. If either of these conditions applies, please check with an FP administrator before proceeding.</p> <p>This work is in the Canadian public domain, but may be under copyright in some countries. If you live outside Canada, check your country's copyright laws. <b>If the book is under copyright in your country, do not download or redistribute this file.</b></p> <p><i>Title:</i> The Song of Roland</p> <p><i>Date of first publication:</i> 1957</p> <p><i>Translator and Author:</i> Dorothy L. Sayers (1893-1957)</p> <p><i>Date first posted:</i> February 22 2013</p> <p><i>Date last updated:</i> February 22 2013</p> <p>Faded Page eBook #20130221</p> <p>This ebook was produced by: Stephen Hutcheson, Brenda Lewis & the Online Distributed Proofreading Canada Team at http://www.pgdpcanada.net</p> </body> </html> Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <!-- terminate if block for class html --> <title>The Song of Roland translated by Dorothy L. Sayers</title> <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css" /> </head> <body> <p><br /> <br /> <br /> <br /></p> <div class="img"><img alt="THE SONG OF ROLAND" height="711" src="../Images/cover.png" width="451" /></div> <div class="box"> <h1>THE SONG OF<br /> ROLAND</h1> <p class="center">★</p> <p class="center"><span class="small">A NEW TRANSLATION BY</span><br /> <i>Dorothy L. Sayers</i></p> <p class="center"><span class="small">PENGUIN BOOKS</span></p> <p class="center"><span class="small">Penguin Books Ltd, Harmondsworth, Middlesex</span></p> <p class="center"><span class="small">U.S.A.: Penguin Books Inc., 3300 Clipper Mill Road, Baltimore 11, Md</span></p> <p class="center"><span class="small">AUSTRALIA: Penguin Books Pty Ltd, 762 Whitehorse Road,<br /> Mitcham, Victoria</span></p> <p class="center"><span class="small">First published 1957</span></p> <p class="center"><span class="small">Copyright © Dorothy L. Sayers 1957</span></p> <p class="center"><span class="small">Made and printed in Great Britain<br /> by The Whitefriars Press Ltd<br /> London and Tonbridge</span></p> </div> </body> </html> Is the .html extension for all the new normal, or am I doing something wrong? TIA mark |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,031
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There were changes
![]() For the most part, it does not matter...The file header (the first few lines in CV) tells what to do. You can change the extension: just click on that part and add the X in the correct place |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
The files created from Split will use the extension of the file you split. Just rename the first file before starting to split if you want a different extension. Or select all files and just type the extension in the rename dialog, and only the extension will be renamed. But .html or .xhtml makes no difference in an epub.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML OR XHTML? Wich One To Use? | fcm52 | Workshop | 8 | 12-11-2012 09:23 PM |
Creating chapters in xhtml/html | ayutheos | Sigil | 7 | 10-18-2012 08:35 AM |
When Calibre Goes to Sigil in HTML *and* XHTML | Tulpana | Sigil | 6 | 07-09-2012 10:03 AM |
HTML Anchor in XHTML | arreke | Sigil | 3 | 12-27-2010 01:28 PM |
Jetbook HTML (XHTML) | rogue_ronin | Ectaco jetBook | 19 | 02-12-2010 09:13 PM |