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 02-26-2012, 01:45 PM   #16
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,854
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by meme View Post
Ok, I can duplicate this on Windows, but not on Ubuntu.

But just to be clear - this is only an issue if you are on a stylesheet (and possibly any non-html tab) and do a search on All HTML files (which obviously doesn't include the stylesheet anyway, although I can see why it would be a common search). If you are on an html tab and do the all html search, it should work. And it seems to be fine if you are on a non-html tab and the search is found.
I think Sigil should ignore the All setting if on a CSS, OPF, NCX.
I have had it jump (5.1) from a stylesheet search onto regular HTML pages.
theducks is offline   Reply With Quote
Old 02-26-2012, 02:45 PM   #17
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by theducks View Post
I think Sigil should ignore the All setting if on a CSS, OPF, NCX.
I have had it jump (5.1) from a stylesheet search onto regular HTML pages.
The setting is for All HTML Files - and that's what it does, searches just HTML files, not stylesheets, images, etc. It means you can do your search without having to move from the stylesheet to an HTML page and it means you don't get and error message telling you to switch to an HTML page when you've told it to search All HTML.

If you want to search a stylesheet - use Current File.
meme is offline   Reply With Quote
 
Enthusiast
Old 02-26-2012, 03:04 PM   #18
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 218
Karma: 9102
Join Date: Sep 2010
Device: Cybook Opus
It's definitely avoidable, but I frequently forget to switch back to "current file only" mode and end up losing data.
Rand Brittain is offline   Reply With Quote
Old 02-26-2012, 03:23 PM   #19
Jabby
Jr. - Junior Member
Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.
 
Posts: 572
Karma: 2000170
Join Date: Aug 2010
Location: East Texas
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
"Tidy" no longer seems to work.

"Tidy" no longer seems to work. I am running W7 x64 and other than that, have found no major problems. The F&R got a good workout.

Having a hit on the "find next" highlight the chapter, in the book browser, helps a lot. Many thanks for this one.

Regards - John
Jabby is offline   Reply With Quote
Old 02-26-2012, 04:08 PM   #20
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,854
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by meme View Post
The setting is for All HTML Files - and that's what it does, searches just HTML files, not stylesheets, images, etc. It means you can do your search without having to move from the stylesheet to an HTML page and it means you don't get and error message telling you to switch to an HTML page when you've told it to search All HTML.

If you want to search a stylesheet - use Current File.
You misunderstood.
I am searching a stylesheet
I forgot and left the range set to All HTML
The search finishes the stylesheet and jumps to a regular page, no user intervention required.

This reaction may (not proven) have some relation to Where in the current TAB order the CSS was opened.
theducks is offline   Reply With Quote
Old 02-26-2012, 04:19 PM   #21
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by theducks View Post
You misunderstood.
I am searching a stylesheet
I forgot and left the range set to All HTML
The search finishes the stylesheet and jumps to a regular page, no user intervention required.

This reaction may (not proven) have some relation to Where in the current TAB order the CSS was opened.
No, I think I understood right. If you select All HTML Files then the search will only search HTML files. If you are on a non-html file it will switch to the first HTML file in the book browser and start there. If you are on an html file, it will start with the file you are on.

Now, if you are saying you do a find in the stylesheet with All HTML files and it finds something in the stylesheet first and if you continue to find it jumps to HTML, then thats wrong - I'll retest that.


Its possible I should rethink trying to be helpful by automatically switching you to html files if you use All HTML. If there is a risk that most people will forget to change the setting when going to a stylesheet and then use replace all and cause unexpected replacements or just not understand why find did what it did, then I'll look at modifying the code to either warn you that you can't use all html while not on an html page, or switch automatically to current file. It was changed because the code was inconsistent in how it handled F&R for different tabs and it followed on from automatically switching you to code view from book view if you did a replace to avoid a dialog box. (Either way of course it shouldn't crash).
meme is offline   Reply With Quote
Old 02-26-2012, 08:53 PM   #22
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,854
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by meme View Post
Its possible I should rethink trying to be helpful by automatically switching you to html files if you use All HTML. If there is a risk that most people will forget to change the setting when going to a stylesheet and then use replace all and cause unexpected replacements or just not understand why find did what it did, then I'll look at modifying the code to either warn you that you can't use all html while not on an html page, or switch automatically to current file. It was changed because the code was inconsistent in how it handled F&R for different tabs and it followed on from automatically switching you to code view from book view if you did a replace to avoid a dialog box. (Either way of course it shouldn't crash).
I thought I noticed I was not getting Nagged about forgetting to switch to CV when setting a Search All HTML
I had not realized that the starting page type (CSS) did not override this (ignore the all).
I was ot smarted by the Smarter Function
theducks is offline   Reply With Quote
Old 02-27-2012, 12:06 AM   #23
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
Posts: 299
Karma: 56788
Join Date: Jun 2011
Device: Kindle
This has happened twice now...

regex search in all HTML files for:
Code:
([a-z])'([a-z])
and another search for:
Code:
([a-z])- ([a-z])
in both cases, the replace value was
Code:
\1\2
and in both cases, it replaced the found strings with "\1\2" instead of the appropriate references.

for what it's worth, for the following S/R, there were no problems:
Code:
S: <span class="italic">(.*?)</span>
R: <i>\1</i>
so it may be just a question of using multiple references...

(I'm running Windows Vista)

Last edited by ElMiko; 02-27-2012 at 12:12 AM.
ElMiko is offline   Reply With Quote
Old 02-27-2012, 02:29 AM   #24
Timur
Connoisseur
Timur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five wordsTimur can name that ebook in five words
 
Posts: 54
Karma: 37363
Join Date: Aug 2011
Location: Istanbul
Device: EBW1150, Nook STR
The problem mmat1 and ElMiko described(back references not resolving for some instances and replacing with back reference text itself, while doing step-by-step replacement) happened to me in 0.5.1 as well. Windows 7, 64-bit.
Timur is offline   Reply With Quote
Old 02-27-2012, 04:18 AM   #25
jbacelar
Connoisseur
jbacelar began at the beginning.
 
Posts: 70
Karma: 30
Join Date: Dec 2011
Location: Spain, south coast
Device: PocketBook 622
Sigil 0.5.3 ravage the user_dict.txt in words with accent (spanish).

No problem with any old versions.

XP-32

Last edited by jbacelar; 02-27-2012 at 10:34 AM.
jbacelar is offline   Reply With Quote
Old 02-27-2012, 04:59 AM   #26
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
Quote:
Originally Posted by theducks View Post
I think Sigil should ignore the All setting if on a CSS
No, if you are inspecting the CSS and want to know where a special class is used its nice to start the search there and not change to any other (X)HTML page,
huebi is offline   Reply With Quote
Old 02-27-2012, 06:22 AM   #27
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,267
Karma: 42123822
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I've had the issue with the replacement strings being "\1" or "\1\2" instead of the proper contents of the backreferences since 0.5.1 as well. But it's very inconsistent and I haven't been able to track down the exact circumstances under which it happens.
DiapDealer is offline   Reply With Quote
Old 02-27-2012, 07:37 AM   #28
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by DiapDealer View Post
I've had the issue with the replacement strings being "\1" or "\1\2" instead of the proper contents of the backreferences since 0.5.1 as well. But it's very inconsistent and I haven't been able to track down the exact circumstances under which it happens.
Quote:
Originally Posted by Timur View Post
The problem mmat1 and ElMiko described(back references not resolving for some instances and replacing with back reference text itself, while doing step-by-step replacement) happened to me in 0.5.1 as well. Windows 7, 64-bit.
Found/fixed the issue. It only happens with Replace in All HTML Files, and only if you are at the bottom of one file and hit Replace to go find the first match in the top of the next file - when you hit Replace again it leaves the \1\2 items instead of doing the replace because the location of the last found text info wasn't being updated correctly.

As a workaround, if your Replace goes to the next page, just click on the beginning of the file and do the Replace again.

I actually didn't see this at first because I already had it working in my version as part of implementing the new Spell Check find - after fixing what I thought was a new issue.
meme is offline   Reply With Quote
Old 02-27-2012, 07:49 AM   #29
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,267
Karma: 42123822
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
As a workaround, if your Replace goes to the next page, just click on the beginning of the file and do the Replace again.
I was doing this (without actually knowing why) and seemed to be working for me, but I wasn't overly confident in the results. Thanks for confirming.
DiapDealer is offline   Reply With Quote
Old 02-27-2012, 08:50 AM   #30
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,854
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Thanks for finding this (\1 \2), I was thinking I was getting careless in my testing my search expression phase
theducks 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
Sigil 0.4.2 Released user_none Sigil 41 10-26-2011 06:03 AM
Sigil 0.4.1 Released user_none Sigil 50 09-01-2011 04:58 PM
Sigil 0.4.0 and FlightCrew 0.7.2 Released user_none Sigil 13 08-23-2011 02:18 PM
Sigil 0.3.4 / Sigil 0.4.0 RC1 / Cover in Nook Color Bertrand Sigil 13 08-06-2011 04:06 AM
Sigil 0.3.4 / Problème CSS entre Sigil et iPad Grivels Software 10 07-03-2011 09:06 AM


All times are GMT -4. The time now is 04:59 AM.


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