08-04-2016, 05:45 PM | #1 |
Enthusiast
Posts: 26
Karma: 2010
Join Date: Jul 2015
Device: Kindle 3
|
Sigil messing up Head
Sigil suddenly decided that my perfectly correct head information needed to be wrecked. It changed this:
<head> <meta content="text/css" http-equiv="Content-Style-Type"/> <title>Jennifer’s Magic: Book 1 — Vigilante</title> <meta content="version 1.6.1" name="description"/> <meta content="Cocoa HTML Writer" name="Generator"/> <meta content="1038.36" name="CocoaVersion"/> <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/> </head> into this mess in the body: <head> <title></title> </head> <body> (<meta content="text/css" http-equiv="Content-Style-Type"/> <title>Jennifer’s Magic: Books 1–3</title> <meta content="Cocoa HTML Writer" name="Generator"/> <meta content="1038.36" name="CocoaVersion"/> <meta content="version 2" name="description"/> <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/> When I fix the Head info, Sigil changes it back when I close the document. I have many previous versions of the document, and they all have the correct version. What whent wrong, and can I fix it? Sigil version 0.9.6 for Mac |
08-04-2016, 06:36 PM | #2 | |
Sigil Developer
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
|
What is this meta statement meant to do in an html file?
Quote:
Are you sure you have an **exact** copy of what was originally in head? Just to make sure please cut and paste from the exact original source of the entire head and paste it into CODE tags here. There must be something missing to cause gumbo to not recognize it as being in head. KevinH ps. I will copy your head into a blank sheet on my Mac to see what it does here. |
|
Advert | |
|
08-04-2016, 06:48 PM | #3 |
Sigil Developer
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
|
FYI,
I copied exactly what you have in your head block into a html file "head" element via cutting and pasting from your post and Sigil changed nothing on Mend. So you must have some other mistake that is confusing the gumbo parser. Please try copying **exactly** what you have including any xml declaration, doctype, html tag and full head and pasting it inside a CODE box here. Do not retype it as you may inadvertently change things. I can then copy it out and try it on my Mac to track down what might be wrong that is confusing the parser. KevinH |
08-04-2016, 06:50 PM | #4 |
Sigil Developer
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Also make sure you are not missing the starting and ending body tag and that you do not have multiple head or body tags.
As I can not recreate what you are seeing at all with your input from the first post. Last edited by KevinH; 08-04-2016 at 06:53 PM. |
08-04-2016, 06:56 PM | #5 |
Sigil Developer
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Or alternatively, copy just that one xhtml file and post it someplace online and then personal mail (pm) KevinH with the private link and I would be happy to take a look at it and let you know what I see on my Mac.
|
Advert | |
|
08-04-2016, 07:30 PM | #6 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
I wasn't able to reproduce this issue with the Linux and Windows versions either, but I remember vaguely that something like that happened to me once when I pasted metadata entries outside the header section and/or deleted a required tag.
@tetrault: BTW, most of your header information will be ignored by epub apps. You only need a title tag, which can be empty, because it won't be displayed by epub apps anyway and link tags for stylesheets etc.: Code:
<head> <title></title> <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/> </head> |
08-04-2016, 08:18 PM | #7 |
Grand Sorcerer
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Never seen anything like that before. I can't get Sigil to mess up the original either. If Sigil did it, then we don't have the whole picture.
But first let me take a stab and guess that you pasted your html into Book View? When I paste your original code into an empty Book View tab (as plain text), I get this back out: Code:
<head> <title></title> </head> <body> <p><head></p> <p><meta content="text/css" http-equiv="Content-Style-Type"/></p> <p><title>Jennifer’s Magic: Book 1 — Vigilante</title></p> <p><meta content="version 1.6.1" name="description"/></p> <p><meta content="Cocoa HTML Writer" name="Generator"/></p> <p><meta content="1038.36" name="CocoaVersion"/></p> <p><link href="../Styles/styles.css" rel="stylesheet" type="text/css"/></p> <p></head></p> </body> Granted, you don't have all the entities in yours, but the metadata is certainly being moved out of the head and into the body and the title emptied. Perhaps you cleaned up the entities a bit first? Last edited by DiapDealer; 08-04-2016 at 08:33 PM. |
08-04-2016, 09:33 PM | #8 |
Enthusiast
Posts: 26
Karma: 2010
Join Date: Jul 2015
Device: Kindle 3
|
I thank the respondents, but you were looking in the wrong direction. Sigil changed perfectly good HTML code on every chapter of every document it worked with today. The problem had to be a corrupt Sigil file or Sigil itself. I was hoping to learn which file was the likely culprit. I should have made that clear. (Message to Self: Don't post while you're p1sst.)
I solved the problem without discovering its exact cause. I trashed Sigil and every associated file, including invisible files and cache files. (I use the free utility EasyFind from DEVONtechnologies to find the files.) I reinstalled Sigil that was happy with the correct <head> and meta items. I used Find and Replace All to fix the weird errors. |
08-05-2016, 12:10 AM | #9 |
Sigil Developer
Posts: 7,643
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I really find that very hard to accept. Cache files are removed upon exit and never reused, and corruption of the ini may cause segfaults but shouldn't change documents head elements consistently. Also the main Sigil binary is code signed and the signature includes checksums for key pieces. If corruption happens, the signature test will fail and the OS will abort it.
So something else strange is going on. Sounds like memory issues coupled with alsr/pie security moving the binary load location into and out of bad memory banks when loaded to someplace else. Either way, glad you have it working again. If it happens again, you may want to check the integrity of both your memory and your hd/ssd/storage device. Last edited by KevinH; 08-05-2016 at 12:23 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
has anyone gotten blacklisted for messing around with their kindle? | arfarf624 | Kindle Developer's Corner | 2 | 07-20-2011 10:12 AM |
Pocket eDGe and Full-size eDGe: Head to Head Comparison | alefor | enTourage Archive | 28 | 12-01-2010 07:44 PM |
I was messing Around With Calibre | Silverone | Amazon Kindle | 4 | 09-27-2010 02:15 PM |
505 Messing Up After a Full Shutdown | Michele | Sony Reader | 1 | 06-26-2009 05:56 PM |
Video Head to Head of Kindle and Reader | Kingston | Which one should I buy? | 30 | 01-24-2008 08:03 PM |