06-23-2010, 11:49 AM | #16 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
You should really use "<p class="h1">(.+)</p>" with minimal matching. |
|
06-23-2010, 01:22 PM | #17 | |
Enthusiast
Posts: 38
Karma: 608
Join Date: Aug 2009
Location: Toronto
Device: all devices
|
Quote:
I tried the expression "<p class="h1">(.+)</p>" with minimal matching, and selecting "regular expression", and "all" radio buttons. When looking at the "current file", I found the first chapter heading, clicked "replace" and it appeared to work fine. Then I changed it to "All files", and found NO matches. Yet when I selected the next file (find and replace window still open), I switched to Code View, and clicked "Find Next" again, and found the heading for Chapter 2!!. I did the above process for the next 6 chapters, and then closed the find and replace window. Next I selected the TOC editor to find that there were NO headings in my table of contents. All of the changes I had made in the previous steps had vanished! This was using the mac version, 0.2.3. I'm testing it on a PC now and if it's a problem there too I'll issue a defect report. But maybe I've done something wrong? Cheers, Luise |
|
Advert | |
|
06-23-2010, 01:38 PM | #18 | ||
Bookmaker & Cat Slave
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
|
||
06-23-2010, 02:44 PM | #19 | ||
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Quote:
I'll take a look at it tomorrow. |
||
06-23-2010, 04:08 PM | #20 |
Enthusiast
Posts: 38
Karma: 608
Join Date: Aug 2009
Location: Toronto
Device: all devices
|
The vanishing problem appeared to only happen on the mac... my PC version worked fine. We're running snow leopard, 10.6.2, I think.
As for the global find-and-replace thing, I just now tried opening up ALL the xhtml files in my book, switched them ALL to code view, and did a global "find and replace" and it worked... (that's really annoying, btw, having to open them all and switch them all to code view. Expecially when there are 100+ .xhtml documents in the book!). |
Advert | |
|
06-23-2010, 04:10 PM | #21 | |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Quote:
Not that I should blab about the blobs. Thanks, blub! -- whoops, I mean "Thanks, bub!" cap |
|
06-23-2010, 04:14 PM | #22 |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
06-23-2010, 08:59 PM | #23 |
Enthusiast
Posts: 38
Karma: 608
Join Date: Aug 2009
Location: Toronto
Device: all devices
|
For me, if I started with one of the files open and in code view, it only found that one file. But if I then opened up all of the files and switched to code view, it found and replaced all of them... I was using a regular expression and had selected minimal matching at the time...
|
06-23-2010, 09:14 PM | #24 | |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
(I ONLYselect Down or UP. I have had lockouts with "All" direction) |
|
06-23-2010, 10:52 PM | #25 | |
Guru
Posts: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
|
Quote:
I was more talking about situations where you know there is no other tag other than the <p> tag. I guess I try to be as specific as possible with my regex's these days. May not be strictly necessary. but I find it's good practice for me, as I am still quite the novice at them. Also, I use Notepad++ as my primary editor, which doesn't have a minimal matching option, and I can't figure out what to use to make the expression lazy, as the '?' doesn't seem to work for this purpose. Last edited by sherman; 06-23-2010 at 10:56 PM. |
|
06-24-2010, 10:53 AM | #26 |
Enthusiast
Posts: 38
Karma: 608
Join Date: Aug 2009
Location: Toronto
Device: all devices
|
|
06-24-2010, 11:16 AM | #27 | |
Well trained by Cats
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
XP with just 2 tabs (CSS and Ch01) S&R Find (first) Replace (Repeat aftere every find) All tabs with the search term are now open. Tabs without the search term are NOT open Tabs before the Start point, even if they have the term value, are NOT open (expected) I have not tried a "Replace All", There are a few times I want to "skip" a replace. |
|
06-24-2010, 08:47 PM | #28 |
Connoisseur
Posts: 98
Karma: 40
Join Date: May 2010
Device: Kobo (currently out of commission), Kindle 3
|
Hi everyone,
I'm having some trouble with the TOC editor in terms of the fact that it doesn't seem to appear on the EPUB documents used by my Kobo. I've used the headings on the "Chapter One" text and then used the "Ctrl+Enter" to split the chapters but when I go to the navigation menu on the Kobo, it's still one chapter. |
06-24-2010, 09:50 PM | #29 | |
Bookmaker & Cat Slave
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
06-25-2010, 02:50 AM | #30 |
Connoisseur
Posts: 98
Karma: 40
Join Date: May 2010
Device: Kobo (currently out of commission), Kindle 3
|
Yes and yes.
Here's a screencap:http://amygordon.com.au/SigilTOC.gif Edit: I tried with another book, and although it generated a TOC on the Kobo menu, any attempts to go to a specific chapter (or "next/previous" chapter) in the menu took me to the start of the book. When I loaded the original book on Sigil it was divided into the index splits already so I didn't have to do any editing as I did with the first book. Last edited by Katdragon; 06-25-2010 at 07:40 AM. Reason: More info. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil Toc editor | Enesco | Sigil | 16 | 09-23-2010 06:41 AM |
PRS-500 Software: LRF TOC Editor v1.02 | hal9000 | Sony Reader Dev Corner | 29 | 07-04-2010 07:17 PM |
Problem with TOC editor | alecE | Sigil | 2 | 10-29-2009 01:30 AM |
Getting TOC to work? | enarchay | Sony Reader | 11 | 05-28-2009 05:46 AM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |