10-04-2016, 08:54 AM | #46 | ||||
Groupie
Posts: 159
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
Quote:
Quote:
Quote:
Working on one file, clips are there. - Without closing 1st instance, open a 2nd epub. Clips still there for both. - Open a 3rd file: clips disappeared from the first and second files but are there on the 3rd one. - Close 3rd and 2nd file: clips came back on the first file. - Open 2nd and 3rd files again: clips disappeared on 1st and 2nd files but are there on 3rd. - Closed 3rd and 2nd, clips still missing on 1st instance. - Saved searches are all there, nothing else seems to have changed. - Had to close and open again my original file to restore the clips but they are back now. These are all recent files so I also now think this problem is linked to the number of instances open and not to do with the version used to created the files. |
||||
10-05-2016, 09:21 AM | #47 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I simply haven't been able to replicate this yet. I've had as many as eight epubs (some very large, some very small) open at once, and none of those eight Sigil instances had my custom clips revert to the default ones. Granted ... I normally don't use clips all that much, so my sigil_clips.ini file is pretty small. I'll try experimenting with a larger clips database when I get time.
|
10-05-2016, 10:11 AM | #48 |
Sigil Developer
Posts: 7,659
Karma: 5433388
Join Date: Nov 2009
Device: many
|
All I can think of is that this may be related to one instance of Sigil writing to the Settings and somehow locking it which prevents others from reading it successfully. Mixing versions of Sigil may also be an issue if new settings have been included and old settings removed.
We have had a number of changes to the settings in recent releases. I can not recreate this on a Mac at all, but there are never multiple instances of Sigil running on a Mac, there are just multiple main windows all from the same main process all sharing the same settings file so the problem case simply can not trigger in this type of environment. KevinH |
10-05-2016, 10:52 AM | #49 | |
Sigil Developer
Posts: 7,659
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Did a little reading on how QSettings objects (Sigil's SettingsStore inherits from QSettings).
I see the following: Quote:
This advisory file locking and "smart" merging appears to not be so "smart" on some systems! My guess is DiapDealer was 100% correct in that the ini file is locked when doing a long read just when another process needs it and so it returns the default value for clips (or anything) when it can not read the file because it is locked. That said I think DiapDealer is testing with a newer version of Qt (for our next release) than the current releases do, so this bug may have already been fixed in later versions of Qt. I think all we can do is check the status() of the last setting retrieval and then run a sync() and try again but this would require a complete rewrite of the Sigil SettingsStore code. Perhaps we should simply see if this bug in QSettings goes away with the newer Qt releases. KevinH |
|
10-05-2016, 12:39 PM | #50 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
This is also on Windows 7 64-bit.
I attached my sigil_clips.ini in a ZIP file if that helps... although there aren't many clips beyond the defaults. I also have the Clips window attached in the corner of my Sigil (which is how I can easily tell the Clips disappear into thin air when I open an EPUB). I haven't used a fresh install of Sigil in a very long time, so I forget if that window exists by default. Quote:
At least everyone is aware of it now. Thanks again for bringing it up Mister L. Now speaking of bugs, I ran into a very obscure one. I sent the details in a PM to KevinH many moons ago but never got a response. I will fish that one out and see why I didn't post it publicly, and see if it still is buggy in the latest version. If I remember correctly it had to do with Exporting/Importing Saved Searches, and differences between Windows/Mac's files with Carriage Returns + Line Feeds. I am probably the only person in a thousand years who actually tried/used/knew about that functionality. Last edited by Tex2002ans; 10-05-2016 at 12:52 PM. |
|
10-05-2016, 12:51 PM | #51 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Are there any specific steps on Windows 7 machines that I need to follow to cause the disappearing clips bug? |
|
10-05-2016, 01:25 PM | #52 | |
Sigil Developer
Posts: 7,659
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Quote:
No proper utf-8 file needs a BOM (byte order mark) as 8-bit bytes do not have a byte order! A BOM really makes sense when using an encoding such as utf-16 as it will clearly demonstrate if the the utf-16 (16 bit values) values were written in Big Endian or Little Endian byte order. (ie. utf-16-le vs utf-16-be) When you export your saved searches, Sigil properly handles the cr/lf issues and properly creates a utf-8 encoded file that can be read in on any platform that Sigil runs on. If you hand-create an ini file using a text editor, make sure it outputs utf-8 **without** a BOM (as they are meaningless for a utf-8 encoded text file) or post process it to remove the BOM mark if you want it to load on any platform (Mac, Linux, Windows) running Sigil KevinH |
|
10-05-2016, 02:40 PM | #53 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Sometimes I have had the clips disappear when opening the 2nd EPUB, sometimes the 3rd, and sometimes it doesn't happen at all. Quote:
But Windows Sigil was able to Import those test files (even the ones with the BOM), but the Mac Sigil failed. Is that still the case in 0.9.6? (I don't have a Mac so I can't test). Last edited by Tex2002ans; 10-05-2016 at 02:44 PM. |
||
10-05-2016, 05:49 PM | #54 |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm still trying to get it to happen (the disappearing clips) with the stock v0.9.6. Can't determine whether the newer version of Qt fixes it until I can get it to mess up with current version.
|
10-11-2016, 12:23 PM | #55 | |
Groupie
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
Little Tiny Anomaly
Quote:
I have to preface this by saying, Dean Koontz structures his books differently nearly every time. Almost always he has "Part 1 (or I)" "Part 2 (or II)" etc.; and often he'll break those parts down into subsections. The particular books I've seen this anomaly on are those that have Roman Numeral sections, which I coped with by using a monospace font only on the sections within my Table of Contents. The coding may well not be perfect; I'm a novice, as some of you know already. However, with some of the sections in the TOC, each time I do a save, Sigil adds one more blank line between the sections. I have included screenshots of the results of three saves. Because I tend to save at the slightest provocation, this has caused a rather large space between those sections, when I go back and look at it. If the problem is because of something I have coded badly, I'd appreciate your feedback. I'm also including the e-book itself, with the text stripped out so I don't step on anyone's copyright. edit: book removed, apparently I didn't cut enough out of it to prevent problems with copyright. My bad. It's not a life-changing problem, but I just thought you should know. And I have to add to the sentiment expressed by others here, THANK YOU VERY MUCH FOR GIVING US THIS TOOL! I spend a lot of my time looking at the Sigil window on my computer screen. Last edited by JustinThought; 10-11-2016 at 01:46 PM. |
|
10-11-2016, 12:55 PM | #56 | |
Grand Sorcerer
Posts: 27,553
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 10-11-2016 at 01:02 PM. |
|
10-11-2016, 01:53 PM | #57 | |
Groupie
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
Quote:
Because it doesn't affect the book itself, I would think you'd put that on your priority list at "Well, everything else is perfect, I think I'll take a look at it now." :-) Thank you! |
|
10-11-2016, 04:53 PM | #58 |
Sigil Developer
Posts: 7,659
Karma: 5433388
Join Date: Nov 2009
Device: many
|
FWIW,
loose text and entities are technically not allowed inside the body tag (ie. having the body tag be its immediate parent). They should properly be wrapped inside of some other tag like div, p, blockquote, etc, etc. KevinH Last edited by KevinH; 10-11-2016 at 05:24 PM. |
10-12-2016, 09:50 AM | #59 | |
Groupie
Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
Quote:
The patient seems to be perfectly healthy. We don't know why he died. I'm re-upping a stripped-out version with only the Contents page where the problem exists. Maybe you can tell me what I might have done wrong. (Or at least you might get a laugh about how I accomplished my desired results ) Last edited by JustinThought; 10-12-2016 at 10:09 AM. |
|
10-12-2016, 11:39 AM | #60 |
Well trained by Cats
Posts: 29,819
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Looks fine to me (and Validates in Calibre sans the missing links)
Block Level tags can not be split. Check your nesting ( pretty formatting visually helps) Code:
<p> <div> x</p> </div> Then you have the 'PART <timestamp>' which made it wide. Another <br /> needed? Code:
<div>
<a href="../Text/102-004-001.xhtml">PART TWO</a><br /> Wednesday, 5:30 P.M.-11:00 P.M.<br/>
...
</div>
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-0.9.2 Released | KevinH | Sigil | 14 | 01-11-2016 03:11 AM |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil 0.8.2 Released | user_none | Sigil | 12 | 12-22-2014 06:02 PM |
Sigil 0.7.4 Released | user_none | Sigil | 47 | 01-05-2014 02:31 PM |
Sigil 0.4.1 Released | user_none | Sigil | 50 | 09-01-2011 04:58 PM |