Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 12-16-2013, 08:49 AM   #361
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, it isn't.
kovidgoyal is offline  
Old 12-16-2013, 09:07 AM   #362
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
No, it isn't.
Well, that's a clear answer!
Toxaris is offline  
Advert
Old 12-16-2013, 11:43 PM   #363
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,382
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Toxaris View Post
Well, that's a clear answer!
Indeed it was. And the reason for it was that Qt's item widgets dont distinguish between left and right clicks, however, I found a workaround for that, so the next release will have it work with single clicks.
kovidgoyal is offline  
Old 12-17-2013, 01:17 PM   #364
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
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
BobC is offline  
Old 12-17-2013, 11:29 PM   #365
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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).
kovidgoyal is offline  
Advert
Old 12-18-2013, 07:05 AM   #366
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by kovidgoyal View Post
@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).
@Kovid : That looks a good approach, at the moment though, even with manual splitting, I have a problem where a new Chapter is preceded by an anchor - in the preview frame it's not clear where the "split line" is in relation to the anchors as they are invisible in the preview pane and the split line is invisible in the code frame. The anchor could belong to say the end of Chapter 1 or the beginning of Chapter 2 - only an inspection of the code will make this clear, and if you have two - one marking the end of Chap 1 and the next line the start of Chap 2 it is important to split between the two. Any thoughts on how to resolve this would be welcome. (I haven't actually met this last problem yet but know it will arise at some point).

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
BobC is offline  
Old 12-18-2013, 08:09 AM   #367
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline  
Old 12-18-2013, 04:07 PM   #368
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
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)
Attached Thumbnails
Click image for larger version

Name:	Error in Edit Book-1.jpg
Views:	250
Size:	701.3 KB
ID:	116877   Click image for larger version

Name:	Error in Edit Book-2.jpg
Views:	235
Size:	705.9 KB
ID:	116878  
arspr is offline  
Old 12-18-2013, 04:44 PM   #369
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
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.
Katsunami is offline  
Old 12-18-2013, 10:00 PM   #370
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline  
Old 12-19-2013, 05:54 AM   #371
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Quote:
Originally Posted by kovidgoyal View Post
@Katsunami: jackie already reported this issue a while ago in this thread.
Sorry. I must have missed that post.

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.
Katsunami is offline  
Old 12-19-2013, 06:50 AM   #372
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline  
Old 12-20-2013, 02:11 AM   #373
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Here it is Thanks for the image browser, this is very handy.

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.
Divingduck is offline  
Old 12-20-2013, 03:51 AM   #374
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
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.
Dopedangel is offline  
Old 12-20-2013, 03:55 AM   #375
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline  
Closed Thread


Forum Jump

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


All times are GMT -4. The time now is 03:17 AM.


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