View Full Version : Need Some Help.
Guns4Hire 04-15-2010, 01:43 AM Not sure what I have done or even if I did something. But lately quite a few ebooks that I edit with Sigil create really odd characters. Now I understand some are soft hypens which cause this problem but the problem I am having is different.
I have an ebook in epub format which I have added to Calibre. When I bring up the ebook viewer all the text is absolutely fine. So I then open it up in Sigil (oh 2.0b3) and make my changes. Once I save it in Sigil I then have a bunch of weird characters (not the question mark) in the Calibre viewer.
I am not sure what I am doing wrong or if something changed with the recent Sigil updates. But this has been happening frequently since the updates. And I have no idea how to fix it. I don't even see within Sigil how I would fix it.
Any suggestions?
Guns4Hire 04-15-2010, 02:15 AM I brought this ebook that I am currently working on up in 1.9 and it does the same thing.
So its happening with all versions. But I am pretty sure that this wasn't happening a while ago. I don't think I have made any changes to anything. I don't even know what I would change to cause this.
Valloric 04-15-2010, 06:38 AM Read this wiki page (http://code.google.com/p/sigil/wiki/ReportingIssues), then create a new issue on the tracker with an attached epub.
Guns4Hire 04-15-2010, 07:38 PM Created an issue. I attached both before and after epubs.
Thanks.
Valloric 04-16-2010, 05:45 AM I responded to your issue (http://code.google.com/p/sigil/issues/detail?id=343). You're specifying two different character sets for your XHTML files, so any application can load it in one of the two ways. Calibre loads it looking at the XML declaration, Sigil and Firefox load it looking at the meta tag.
All of the applications are correct, since you're saying both encodings apply (which is impossible).
Remove the meta tags, since your file is in UTF-8. Or at least change the meta tag to say UTF-8 too.
Guns4Hire 04-16-2010, 01:41 PM I responded to your issue (http://code.google.com/p/sigil/issues/detail?id=343). Your specifying two different character sets for your XHTML files, so any application can load it in one of the two ways. Calibre loads it looking at the XML declaration, Sigil and Firefox load it looking at the meta tag.
All of the applications are correct, since your saying both encodings apply (which is impossible).
Remove the meta tags, since your file is in UTF-8. Or at least change the meta tag to say UTF-8 too.
Ok I am following what you are saying but definitely not understanding it.
How do I specify only one character set for my XHTML files by default on my computer? Obviously I don't want two lol since its causing me this problem. I am unsure how this problem even happened. Since I don't know anything about character sets. How could I of possible of changed them. But obviously I did since I wasn't always having this problem.
I don't know how to remove the meta tags much less change the meta tag to say UTF-8. But if I did doesn't that mean I have to go through all 300+ of my epubs and do this? And then do I have to do this for each epub I buy?
Valloric 04-16-2010, 02:00 PM I just want my files to open up in both Calibre and Sigil the same way. I guess UTF-8? Really I have no idea regarding character sets. How can I have these files do that without messing with the meta tag and the character sets each time?
You will have to mess with the meta tags, since there's no other way to fix this problem other than by hand.
Extract the epub file with a ZIP unarchiver, open each XHTML file and delete the meta tag. Then zip everything back up and open it in Sigil, then resave.
Done.
Shouldn't take you more than a minute.
There's nothing I or anyone else can do, the epub files are faulty. If you bought them from a store, feel free to complain to them about the quality of their files.
Valloric 04-16-2010, 02:10 PM How do I specify only one character set for my XHTML files by default on my computer?
That makes no sense and is not possible.
Guns4Hire 04-16-2010, 02:29 PM That makes no sense and is not possible.
Didn't realize that.
Guns4Hire 04-16-2010, 02:32 PM There's nothing I or anyone else can do, the epub files are faulty. If you bought them from a store, feel free to complain to them about the quality of their files.
Ok I thought since it was happening so frequently lately that it was a difference in setting between Calibre and Sigil. I never would of thought it was faulty epub files.
Thanks.
Guns4Hire 04-16-2010, 02:48 PM You will have to mess with the meta tags, since there's no other way to fix this problem other than by hand.
Extract the epub file with a ZIP unarchiver, open each XHTML file and delete the meta tag. Then zip everything back up and open it in Sigil, then resave.
Done.
Shouldn't take you more than a minute.
Ok so I extracted the epub. Then removed the file in the meta folder. Then archived it as a zip file. Tried to open it with Sigil. In the main window the only thing that showed up was the letters PK. It obviously didn't load. But then I opened Calibre and imported the zip file. And it opened up in the Calibre viewer just fine. So it did work. Just couldn't get it to open in Sigil.
I will keep messing around with it to see if I can get it to open with Sigil.
Thanks for the information and help.
Valloric 04-16-2010, 03:09 PM Ok so I extracted the epub. Then removed the file in the meta folder. Then archived it as a zip file. Tried to open it with Sigil. In the main window the only thing that showed up was the letters PK. It obviously didn't load. But then I opened Calibre and imported the zip file. And it opened up in the Calibre viewer just fine. So it did work. Just couldn't get it to open in Sigil.
I will keep messing around with it to see if I can get it to open with Sigil.
Thanks for the information and help.
You have to change the extension back to epub before opening it in Sigil.
Guns4Hire 04-16-2010, 03:12 PM You have to change the extension back to epub before opening it in Sigil.
LOL Doh!
|