![]() |
#361 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, it isn't.
|
![]() |
![]() |
#362 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
![]() |
Advert | |
|
![]() |
#363 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
#364 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
I appreciate that there are goodies to come, the ability to merge and split files is already there and very useful, however it can be a tedious manual process. Most PG EPUBS are split according to size and without regard to structure so my first job has been to merge all the files together and then split based on chapter headings.
This is often not as simple as simply splitting at a particular heading level as the split may be needed a line or so before the appropriate heading if there is an anchor set there which is referenced from elsewhere. Using a regex S&R with Sigil it is possible to insert markers in the correct place and then do a mass "split on markers". A similar capability in Calibre's book editor would be most welcome at some stage. Is this the right place to ask if this is in the workstack or does it need an enhancement request ? BobC |
![]() |
![]() |
#365 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@BobC: Sure, I can see the utility of auto-splitting. However, I dont think I want to make it regex based, I prefer to make it XPath based, which is both more powerful and it works with the current splitting infrastructure (which splits on tags not arbitrary locations in the code).
|
![]() |
Advert | |
|
![]() |
#366 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
I suppose even with Xpath based auto-splitting it would be possible to use Regex S&R to create the appropriate tags that can then be used for the tag based splitting (just musing). BobC |
|
![]() |
![]() |
#367 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, you can use S&R to assign a class or id to tags on which to split. Although XPath is in many ways a superset of regex, since you can run regexps within an xpath expression.
|
![]() |
![]() |
#368 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Hi, I think I've found a bug in Edit Book.
When I edit nearly any tag in the book I'm currently reading and I make a mistake (as example from <span class="italic"> to <spanclass="italic"> in line 22), I automatically get the error shown in the screenshots. After this error, Preview is no longer updated. But this issue doesn't happen in other books where I perform this same mistake. (I've even built a test book with just one chapter of the original one and its associated stylesheet, where the issue is still present. If you want I can send it to you in the way you want) |
![]() |
![]() |
#369 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
I may also have found a bug when editing the TOC using Edit Book. I did this:
- Open the book with Edit Book. - Click Edit TOC. - Remove one entry - Click OK (in the TOC dialog) The book can't be saved: the option is greyed out. I assumed that the TOC was saved by the Edit TOC feature, so i quit Edit Book. The change wasn't saved, however. The removed entry was still there. I tried a few times, with the same result. Then, before quitting Edit Book, I removed and replaced one character in a random file to make the Save option active. After saving, and then quitting Edit Book, the removed entry in the TOC was indeed removed. If the Edit TOC dialog does not actually save the TOC when clicking OK, the Save option of Tweak Book should become available. |
![]() |
![]() |
#370 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@Katsunami: jackie already reported this issue a while ago in this thread.
@arspr: That comes from having an not upto date version of lxml in the build. Which version of calibre are you using? 32bit or 64bit and on whichi OS? EDIT: Never mind, I see its 64bit windows. I will update lxml in that build, which should fix the issue. Last edited by kovidgoyal; 12-18-2013 at 10:23 PM. |
![]() |
![]() |
#371 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
By the way: is it possible make the preview pane dock behind the code pane, switching between them by doubleclicking on the tab? It would make it much easier to use Edit Book on a screen with lower resolutions, such as my 1280x1024 monitor. Also I think that the file browser and table of contents use too much vertical white space compared to Sigil. Is it possible to reduce this somehow? Edit Book feels as if it is wasting too much space on smaller screens. I hope that you view posts like this as suggestions, and not as complaints. If the preview pane can't be docked behind the code pane, and the white space can't be reduced because it's how the QT widgets work and look under Windows, then it's fine by me. Last edited by Katsunami; 12-19-2013 at 05:58 AM. |
|
![]() |
![]() |
#372 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1) No, it isn't.
2) The whitespace is deliberate, I find having the whitespace between rows makes the views much easier to use. If you dont like it, it should be a trivial change to make in your copy of the source code. |
![]() |
![]() |
#373 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Here it is
![]() And I like your new editor extensions. It becomes more and more of a real editor. You make pleasant surprises for christmas time. Last edited by Divingduck; 12-20-2013 at 04:24 AM. |
![]() |
![]() |
#374 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,794
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
I think I found a bug. After deleting a file it is not removed from the toc automatically.
|
![]() |
![]() |
#375 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The ToC view is not "live". You have toeither close and re-open it, or right click and choose refresh.
EDIT: Actually, currently deleting a file does not automatically remove refernces from the toc.ncx, so the toc view will not change even if you do refresh it. EDIT2: https://github.com/kovidgoyal/calibr...7e7f24f22638e1 Last edited by kovidgoyal; 12-20-2013 at 04:31 AM. |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to make Sigil live | varlog | Sigil | 136 | 10-25-2013 02:34 PM |
how many tocs does Sigil make? | Gregg Bell | Sigil | 17 | 01-31-2013 09:39 AM |
How do I make all .pdf's in my calibre library open in calibre instead of preview | morbo3000 | Library Management | 9 | 07-30-2011 10:39 AM |
using sigil to make changes befote conversion | alansplace | Sigil | 11 | 06-07-2011 07:50 AM |
i can't make sigil run in fedora 14 | nastarovia | Sigil | 1 | 01-20-2011 05:02 AM |