View Single Post
Old 07-29-2017, 09:04 PM   #49
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: 47,141
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
When I opened a kepubified file with Sigil, it complained about errors in every content file. This seems to be related to the XML prolog in the content files being commented out after kepubify has done it's thing.

From the original epub, the first lines are:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!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">
<head>
In the kepubified version, I see:
Code:
<!-- ?xml version="1.0" encoding="utf-8"? --><!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>
Modifying the first line to change it back from being a comment allows the kepub to be edited without complaint though this comment should not affect the ability of a Kobo ereader to render the ebook.

Another minor nit doesn't affect my ability to read the epub but the uglifying of the source code is annoying -- is there a good reason for removing the EOLs?
DNSB is offline   Reply With Quote