Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2010, 06:18 PM   #1
Lexicon
Enthusiast
Lexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enough
 
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.
Lexicon is offline   Reply With Quote
Old 07-28-2010, 07:09 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,831
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Lexicon View Post
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.

I have been (mostly) lucky so far. I blamed S+R misses on ME.
Nice to hear that I may have been having Help
theducks is offline   Reply With Quote
Old 07-28-2010, 08:39 PM   #3
Lexicon
Enthusiast
Lexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enough
 
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
Lexicon is offline   Reply With Quote
Old 07-28-2010, 08:44 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,831
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Lexicon View Post
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
RATS !
theducks is offline   Reply With Quote
Old 07-29-2010, 05:41 AM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
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.
Valloric is offline   Reply With Quote
Old 07-29-2010, 07:00 AM   #6
Lexicon
Enthusiast
Lexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enough
 
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.
Lexicon is offline   Reply With Quote
Old 07-29-2010, 08:12 AM   #7
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by Lexicon View Post
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.
Well then it probably won't be fixed any time soon. The bug is certainly related to the document in question and the search terms used, and without this information, I can't track the bug down.

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.
Valloric is offline   Reply With Quote
Old 07-29-2010, 09:26 AM   #8
Lexicon
Enthusiast
Lexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enoughLexicon will become famous soon enough
 
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.
Attached Files
File Type: epub findBug.epub (2.0 KB, 123 views)
Lexicon is offline   Reply With Quote
Old 07-29-2010, 10:45 AM   #9
pietvo
Reader
pietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notespietvo can name that song in three notes
 
pietvo's Avatar
 
Posts: 514
Karma: 24612
Join Date: Aug 2009
Location: Cochabamba, BO
Device: Onyx Boox 60, iPod Touch
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.
pietvo is offline   Reply With Quote
Old 07-29-2010, 11:07 AM   #10
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,831
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by pietvo View Post
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.
I stopped using Direction "All", just too many odd things (not) happening that "cockpit error" cold not account for

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>
Looks the same in BV

Last edited by theducks; 07-29-2010 at 11:38 AM. Reason: added example
theducks is offline   Reply With Quote
Old 07-29-2010, 05:01 PM   #11
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 544
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by theducks View Post
I stopped using Direction "All", just too many odd things (not) happening that "cockpit error" cold not account for
Same here. Seems that "Direction = all" leads to an infinite loop somewhere (and it ain't Cupertino )
st_albert is offline   Reply With Quote
Old 07-29-2010, 06:26 PM   #12
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,831
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by st_albert View Post
Same here. Seems that "Direction = all" leads to an infinite loop somewhere (and it ain't Cupertino )
Silicon Valley local ?

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?
theducks is offline   Reply With Quote
Old 07-29-2010, 10:31 PM   #13
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 544
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by theducks View Post
Silicon Valley local ?
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".
st_albert is offline   Reply With Quote
Old 07-30-2010, 08:25 AM   #14
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
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.

Quote:
Originally Posted by st_albert View Post
Moral of story: Do not use "Direction" = "All".
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.
Valloric is offline   Reply With Quote
Old 08-01-2010, 04:14 AM   #15
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,477
Karma: 13517271
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by theducks View Post
Silicon Valley local ?

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?
Ducky:

If you're asking if (in XP):
  1. You do a S&R;
  2. then you close the S&R window,
  3. and the cursor position in the CV window is reset (usually to the top of the file), even though you had it in the location you wanted before you closed the S&R window?
Then the answer is YES, it most certainly is, about 75-80% of the time. It's very annoying. I tried to capture it with Jing for Valloric, but it's just inconsistent enough wherein nearly every time I start to run the video, it doesn't bloody do it...and running Sigil and Jing simultaneously, the latter in video mode with a window size large enough to capture the action sucks the life out of my cpu.

Hitch
Hitch is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:05 AM.


MobileRead.com is a privately owned, operated and funded community.