![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 542
Join Date: Dec 2007
Device: Sony PRS-505
|
Possible bug in global search?
Using Sigil 0.2.3, Windows XP 32bit. Searches on all HTML documents seem to be missing out the last document.
I've tested this on a few different epubs by opening a document other than the last one and searching (all documents, normal mode, direction all) for text which is definitely in the last HTML file. It won't find it, however if I open the last file and select search within the current file it will find the text with exactly the same search string. Also adding a blank file to the epub and repeating the global search will find the text okay, as the target text is now in the second to last HTML file. Last edited by Lexicon; 07-28-2010 at 06:33 PM. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() ![]() I have been (mostly) lucky so far. I blamed S+R misses on ME. ![]() Nice to hear that I may have been having Help ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 542
Join Date: Dec 2007
Device: Sony PRS-505
|
Bizarrely global search and replace seems to be working okay, it's just global search that doesn't work to find text in the last file.
If I search for a target phrase I get the "cannot be found" message, but if I try to replace the text with something else I get a message saying that it has been changed one time. Open the last file to check and sure enough the substitution has been made. So it seems any missed s+r's are still user error I'm afraid to say ![]() |
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Please report it on the tracker. Instruction on doing this are here.
Frankly I think there's a bug report about this on the tracker already, and that it's caused by QDom not storing XML attributes in document order, but sorted. That bug will be fixed when Xerces is integrated. Then again, your bug could be different, so just report it with the information necessary to reproduce it. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 542
Join Date: Dec 2007
Device: Sony PRS-505
|
Sorry, Valloric, I've got signup fatigue and don't want to create a Google account. I already have a million different logins and passwords to keep track of.
I just thought I'd let people know about this so they can avoid the problem, the easiest workaround at the moment is to add a blank page at the end of the epub and then remove it just before final save. |
![]() |
![]() |
![]() |
#7 | |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
If you don't want to add it to the tracker, you can provide this info in this thread. Attach the document etc., as outlined in the link I referenced. |
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 542
Join Date: Dec 2007
Device: Sony PRS-505
|
I don't think it is the files I'm working with, I can reproduce the behaviour with a very simple epub created from scratch in Sigil.
Using Sigil 0.2.3, Windows XP 32bit. 1. Open Sigil. 2. Select code view and enter "<p>cat</p>" (without the quotes) into the body of Section0001.xhtml. 3. Add a new text item. 4. Open Section0002.xhtml and select code view, enter "<p>mongoose</p>" (without the quotes) into the body of the file. 5. Switch back to Section0001.xhtml code view, open the find dialog and type "mongoose" (without the quotes) into the Find what box. Choose to Look in all HTML files. Options are: Normal search mode, Direction all, no other boxes ticked. 6. Click find next. What should happen: Sigil should find the word in the second xhtml file, switch focus to that file and highlight the text. What actually happens: Sigil reports that the search term cannot be found even though the text is definitely in the epub. Workaround: 7. Add a new text item to the end of the list (there are now 3 xhtml files in the epub, the last one has not been modified). 8. Switch back to Section0001.xhtml code view, open the find dialog and type "mongoose" (without the quotes) into the Find what box. Select to Look in all HTML files. Options are: Normal search mode, Direction all, no other boxes ticked. 6. Click find next. Sigil locates the relevant text in Section0002.xhtml. |
![]() |
![]() |
![]() |
#9 |
Reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 520
Karma: 24612
Join Date: Aug 2009
Location: Utrecht, NL
Device: Kobo Aura 2, iPhone, iPad
|
I tried the above recipe on my Mac to see if it had the same bug. I had in the past noticed that Sigil sometimes couldn't find a word that I knew was in the book. However, after I successfully searched the word in the second file I wanted to return to the first file and Sigil became completely unresponsive, swallowing up CPU time. Apparently it got stuck in some loop. I had to manually kill it.
|
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Some misses in WYSIWYG turn out to be what you can't see differences in that mode. I was searching on * * * underneath the covers (CV) was Code:
<p><b>* </b><b>* *</b></p> ![]() Last edited by theducks; 07-29-2010 at 11:38 AM. Reason: added example |
|
![]() |
![]() |
![]() |
#11 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
|
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() Could someone else check this S+R annoyance out. Win XP Do a S+R, leave the S+R window, continue scrolling the document, even set an insertion point. Now close the S+R window. Does the document reset it's position from current? ![]() |
|
![]() |
![]() |
![]() |
#13 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Born a few miles from there. But that was before there was a Silicon Valley. In fact, I don't think Silicon had been added to the periodic chart yet.
![]() Back to our previously scheduled topic, I tried the experiment that Lexicon described, EXCEPT that I searched with Direction = Down, and it did find the unique text in the second (of two) files, switched focus (it was already open) to that file, and highlighted the text just as I'd expect it to work. Ditto if file was not open. Note that files must be in "code view," or at least all open files must be. I repeated it with a previously-made epub having 31 files, with the same result. Searching for text that was unique to the last file resulted in the correct behavior. BUT! Repeating the search with "Direction" = "All" gave the "not found" error. Moral of story: Do not use "Direction" = "All". |
![]() |
![]() |
![]() |
#14 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Bug confirmed and fixed.
GOD how I hate single-character bugs. On a related note, that was one awesomely written bug report. Clear, concise, reproducible. Keep 'em coming. ![]() To me, the moral of the story is: report the bugs you encounter. ...and double-check your corner cases. As much as I hate typos, they hate me back. |
![]() |
![]() |
![]() |
#15 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
If you're asking if (in XP):
Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bug or Feature? | capidamonte | Calibre | 5 | 07-27-2010 03:06 PM |
Is this a bug? | AlpGlide | iRex | 0 | 04-19-2010 04:43 PM |
6.48 Bug | Demented | Calibre | 0 | 04-18-2010 05:47 PM |
Possible Bug in 4.21 | Amalthia | Calibre | 13 | 01-12-2009 07:00 PM |
PRS-505 bug or eBookLib bug? | porkupan | Sony Reader | 3 | 10-07-2007 10:44 PM |