View Single Post
Old 06-06-2017, 01:15 PM   #33
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by Hitch View Post
Now you're worrying me again. I mean...if you don't have current XML stuff, in what you're copying FROM, why would you be deleting the NEW head material in the NEW file, in the first place? (Am I confused, guys?)
Thanks Hitch. I just copy from the most recent epubs. Usually less than a year old. I just did a text comparison from a 2013 epub to the one I did just yesterday and the xml stuff is identical. Here's the xml from 2013:

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>
<title></title>
</head>
<body>
<p>&nbsp;</p>
</body>
</html>
So the quickest way has been to open a new blank html file in sigil. Ctrl-a its contents, then delete. Go to the 'old' file and ctrl-a then ctrl-c and come back to the blank html file and ctrl-v.

I do realize I'm not do delete any head material anymore.

I suppose I could leave the original xml stuff and delete what's under the <title></title> (screenshot) and then copy and paste what's under the <title></title> in the old .epub but then yeah, that brings the deleting into play. And it leads to the chance of not copying and pasting correctly.

Quote:
Originally Posted by Hitch View Post
I'm not saying, "my way or the highway." I just mean that you need to develop more careful processes, for yourself. Ya know?
Agreed. I'm here looking for the best way of doing it. I'm not committed to any particular way. Of course I look for speed and convenience (as long as it's accurate).

Assuming the xml stuff hasn't/won't change the 'unzipping method' sounds the safest at this point. But it's also slow. Your first way, 'selecting all' of the "empty-ish" new file and copying the old and pasting over the new would be much more convenient and to my liking. I think it would be okay if I did that, don't you?

(Which leads to a separate questions: do I need to be concerned about how current the xml head stuff is? How will I know when it changes?)

Thanks

Quote:
Originally Posted by Hitch View Post


See above. If that's the case, then, hopefully, this current scenario won't happen, because you wouldn't be deleting the head material, would you? Would you??? No, right?
Scouts honor: I will never delete head material ever again.



[/QUOTE]
Attached Thumbnails
Click image for larger version

Name:	Selection_044.png
Views:	133
Size:	43.3 KB
ID:	157202  
Gregg Bell is offline   Reply With Quote