Hi,
Unfortunately not. The opf is parsed and rebuilt from stored data structures to prevent constant reparsing to speed up performance. Comments are not kept as there is no place in the internal datastructures to keep them as comments can be put just about any place. I guess I could create a comment node for every major tag in the opf and collect them from anyplace inside that tag and store them. It just didn't seem to be worth the effort as the opf was meant to be machine readable (which is how it is used in Sigil). This has been true dince the Sigil 0.8.900 pre-releases if you do any operation that requires changes to the opf.
KevinH
Quote:
Originally Posted by turbulent
Hi,
With Sigil 0.8.x, the file content.opf in the epub from plugin KindleImport contains some comments generated from the metadata of the original mobi/azw3 ebook, as followed:
Code:
<!-- BEGIN INFORMATION ONLY
<meta name="Cover ThumbNail Image" content="Images/image00253.jpeg" />
<meta name="Drm Ebookbase Book Id" content="0006002627397" />
<meta name="ASIN" content="B00QLSKYGU" />
......
END INFORMATION ONLY -->
After updated to v0.9.2, these comments seems to be automatically cleaned by Sigil. Is there any convenient way to keep them?
|