|  12-14-2012, 08:45 AM | #16 | 
| Member  Posts: 15 Karma: 10 Join Date: Nov 2012 Location: NJ Device: Kobo, iPad, Android smartphone, Kindle | 
			
			Sorry to hear that. One more question then. If I were to copy & paste into UltraEdit which allows that kind of search & replace, will I be able to paste back into Sigil without messing up some characters like quotes, apostrophes, em dashes, etc?
		 | 
|   |   | 
|  12-14-2012, 09:36 AM | #17 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 In Book View, probably little chance of surviving. Why not try a Test file and See? | |
|   |   | 
|  12-14-2012, 10:29 AM | #18 | 
| Member  Posts: 15 Karma: 10 Join Date: Nov 2012 Location: NJ Device: Kobo, iPad, Android smartphone, Kindle | 
			
			Yes!!!! I am definitely a happy camper now!!    | 
|   |   | 
|  12-14-2012, 01:45 PM | #19 | 
| Wizard            Posts: 3,720 Karma: 1759970 Join Date: Sep 2010 Device: none | 
			
			I'm am just curious as to in what circumstance the circular replace all would give you problems. if you have already fixed some instances of whatever, then there's no harm in letting fly with a circular replace-all, as it should not find anything that needs fixing before your current position ? maybe the issue will get revisited one day IF you make a strong case for it - who knows. I've never had an issue; once I understood that it worked circularly I just accepted that fact and I cannot think of a case where I would "need" it to be non-circular | 
|   |   | 
|  12-14-2012, 03:02 PM | #20 | 
| Color me gone            Posts: 2,089 Karma: 1445295 Join Date: Apr 2008 Location: Central Oregon Coast Device: PRS-300 | 
			
			I can think of at least one reason to insert a dialog box at the bottom of the document before circling back around.  If I have fixed something up the way I like it, it is readily possible to blow it away with an unintended replace that covers the territory I just worked on, like eliminating spaces.  However, since we do have the option of selected files, then this should not be a problem given a little prior thought.  There is only so far we can go in protecting ourselves without throwing in unnecessary dialog boxes at the end of the document. Nothing is foolproof given a sufficient fool and that was me when I was trying to work on formatting and knocked out all the paragraphs in 400 footnotes with a replace all. The fly in the ointment is that you can not undo a replace all for technical reasons. | 
|   |   | 
|  12-14-2012, 03:23 PM | #21 | 
| Wizard            Posts: 3,720 Karma: 1759970 Join Date: Sep 2010 Device: none | |
|   |   | 
|  12-14-2012, 04:22 PM | #22 | 
| Sigil developer            Posts: 1,274 Karma: 1101600 Join Date: Jan 2011 Location: UK Device: Kindle PW, K4 NT, K3, Kobo Touch | 
			
			An option to enable/disable wrap was added for 0.6.0 but pulled as it did not work correctly in all circumstances.  We might revisit it, but its still not clear if there is a strong case for it - since you can split files and work on a file at a time.
		 | 
|   |   | 
|  12-14-2012, 05:21 PM | #23 | 
| Zennist            Posts: 1,022 Karma: 47809468 Join Date: Jul 2010 Device: iPod Touch, Sony PRS-350, Nook HD+ & HD | 
			
			I would like to cast my vote for the ability to search in only one direction -- just down and just up. Of course,  if this would present undue technical difficulties or entail too much time to implement, I could understand why the developers would not do it.  I could think of a few instances where I might use this. For example, say all the headlines in a book had the same style -- ie, the "Introduction" ... "Table of Contents" ... the "Foreword" .... plus all the "Chapters XX." But say you want to change just the chapter heads to a different style. Well then you'd only want to do a search-and-replace from the first chapter down and skip all the material preceding Chapter 1. I understand that this probably can be done with some form of regex using the word "Chapter" but regex is hard for a lot of people (including me!) and harder to get right. I think I would use the options fairly often, if they were there. But, again, if it was technically difficult to implement I can understand leaving it out. --Pat | 
|   |   | 
|  12-14-2012, 08:12 PM | #24 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | 
			
			Say you want to replace text only within the body, but the pattern also appears in the <Head>   Bcause of the circular, you have to step through, rather than replace all from a current (body) mark | 
|   |   | 
|  12-15-2012, 04:41 AM | #25 | 
| frumious Bandersnatch            Posts: 7,570 Karma: 20150435 Join Date: Jan 2008 Location: Spaniard in Sweden Device: Cybook Orizon, Kobo Aura | 
			
			Copy the head, replace all, paste the head (just a workaround, but better than stepping through)
		 | 
|   |   | 
|  12-15-2012, 05:41 AM | #26 | 
| Wizard            Posts: 3,720 Karma: 1759970 Join Date: Sep 2010 Device: none | 
			
			alternatively you can usually make the pattern more specific, by including preceeding or following tags, so that head does not match. can you give an example of a pattern in both head & body that you could be changing , please actually , I am confused, because every xhtml file has a head, are you using replace all , but restricted to current file only? if you are only editing a single file, then surely step through is no big deal & is very safe ? | 
|   |   | 
|  12-15-2012, 06:29 AM | #27 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | |
|   |   | 
|  12-15-2012, 06:35 AM | #28 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
  searches to be sure to exclude those I did not want to change. It was so easy: Open file, scroll to just after the <body> , run the replace all | |
|   |   | 
|  01-30-2013, 03:42 PM | #29 | |
| Enthusiast  Posts: 35 Karma: 10 Join Date: Jan 2013 Device: Amazon Cloud |  Sigil - won't launch 
			
			Hi, I also have Mac OS x 10.6.8 and this version will not launch on my system. There is a slash though the icon. Any other versions I should look into? Thanks. Patrice Quote: 
 | |
|   |   | 
|  01-30-2013, 03:56 PM | #30 | 
| A Hairy Wizard            Posts: 3,395 Karma: 20212733 Join Date: Dec 2012 Location: Charleston, SC today Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire | 
			
			I would like a "just down" or "just up" option if it's possible. As an example: Sometimes the books I edit have different "parts", Part 1, Part 2, etc. Each Part's chapters restart numbering from chapter 1 instead of being continuous through the whole book. So when I use a search replace to create an id for the chapter head I begin at the new Part and replace all following chapters with the part number and chapter...then do that again with the next part. so I get id="Ch_1-1", id="Ch_1-2"..., id="Ch_2-1", id="Ch_2-2"...etc. Some of these books have > 100 chapters. If it circles back and replaces the parts that I've done already then it wastes the effort. Having said that: There is probably some more elaborate regex I could create to check for the existence of the "-" in an id, I just haven't figured it out. Ideally, there would be some process where I could use a counter when replacing, so I could just use id="Ch_1" to id="Ch_100"...does anyone know if there is such a "counter"?? And if there is a counter...can I shoot for the moon and get a function that will insert roman numerals??!!?? (id="Ch_69" title="LXIX") | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Sigil 0.6.0 Released | user_none | Sigil | 93 | 11-24-2012 06:50 PM | 
| Sigil 0.5.3 Released | user_none | Sigil | 85 | 05-13-2012 05:29 AM | 
| 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 |