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-14-2013, 06:53 AM   #346
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 mrmikel View Post
Epubcheck checks whether all links are valid, so there's no reason to slow down the program.
As does the check book tool.
kovidgoyal is offline  
Old 12-14-2013, 07:42 AM   #347
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
No problem at all with the ToC imposibility... It was a simple desire but if it is resource hungry, of course it is not aceptable at all, as there are a lot of other ways to check...
arspr is offline  
Advert
Old 12-14-2013, 07:33 PM   #348
Tired 'N Grumpy
Connoisseur
Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.Tired 'N Grumpy ought to be getting tired of karma fortunes by now.
 
Posts: 62
Karma: 578732
Join Date: Sep 2013
Device: iPad/ibooks
Amen!

Quote:
Originally Posted by DiapDealer View Post
Just wanted to pop in and say nice work! I haven't had time to give it a really good workout yet, but it seems infinitely usable already. The speed with which this came to light is nothing short of amazing to me (even taking into consideration the pieces of calibre that could be imported and/or re-purposed). Cheers!
Kovid,

I just felt obliged to add my thank you to the rest. This is already great stuff. Amazing.- TnG
Tired 'N Grumpy is offline  
Old 12-14-2013, 08:16 PM   #349
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
While editing a book, I've noticed something with regard to replacing files.

I tried to replace a cover as follows:
- Export the existing cover
- Fix cover as desired in GIMP
- Re-import using the "New File" function

I expected to be asked to replace the file, as it already exists in the book. However, a file was added like this:

Quote:
"N_xxxxx_epub_cvi_r1.jpg/N_xxxxx_epub_cvi_r1.jpg"
N_xxxxx_epub_cvi_r1.jpg already existed; now two files exist, the one mentioned above, and the original. Is this intended behavior?

When trying to replace the file using the "Replace File" function by right-clicking on the file, I got the following error message:

Quote:
calibre, version 1.15.0
ERROR: Unhandled exception: <b>UnboundLocalError</b>:local variable 'mt' referenced before assignment

calibre 1.15 [64bit] isfrozen: True is64bit: True
Windows-7-6.1.7601-SP1 Windows ('64bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 69, in ans
File "site-packages\calibre\gui2\tweak_book\boss.py", line 775, in replace_requested
File "site-packages\calibre\ebooks\oeb\polish\replace.py", line 143, in replace_file
UnboundLocalError: local variable 'mt' referenced before assignment
Finally, I tried replacing the file by first deleting the original (obviously breaking the cover image in the preview window), and adding the file back again using the "New File" function. The file was added, and appeared under the Images heading, but the cover did not reappear; not after saving, or refreshing.

I checked the file names by pressing F2 to rename. All image files had a path in front of them:

Quote:
OEBPS/images/
The added file did not have this path. After adding this path to the file name and saving, the entire book updated, and the cover reappeared.

This could potentially be very confusing, as the full path is not visible in the file browser. When adding images, it might be best to add it in the same folder where the other images are. (I've never seen an epub in Sigil that has images divided into different folders.)

(On a related note: Does Trim Cover in the Metadata window trim Calibre's cover, or the actual cover in the book? If it's the Calibre library cover that is trimmed, can the book's cover be replaced with that one, without putting an extra "Titlepage" page into the book?)

Last edited by Katsunami; 12-14-2013 at 08:47 PM.
Katsunami is offline  
Old 12-14-2013, 08:21 PM   #350
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Kovid,

so much for all your wonderful work in creating this tool!

Now that it has been officially released and everything, I would like to remind you of something you said you could get around to doing once you rolled out the initial release:

When using the ToC editor, and a ToC element is the first element on the page, link directly to the page instead of to a UUID added to that element.

And I see you have already added the Search pre-fill.
eschwartz is offline  
Advert
Old 12-14-2013, 08:44 PM   #351
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Whenever I try to import an (x)html file, I end up with a new blank file of the same name.

Images are added as expected, but the add file window says "choose a name for the new (blank) file" either way, which if you are importing a file, may be a little confusing. Perhaps when using "Import resource file" a new message could be used, say, "Choose a name for the imported file"?
eschwartz is offline  
Old 12-14-2013, 09:05 PM   #352
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
A few suggestions:

1: Would it be much work to add a seperate option for default font sizes to the preview pane, so it's independent from the default font of the viewer? I could see people wanting different font sizes. Also, it's confusing having to set the font sizes in the viewer to change the size in the preview panel. Most people will either assume the previewer font is fixed, or only find out about this by accident.

2. Would it be possible to add an option to NOT scroll the preview pane to the first line of text? Sometimes, chapters start with considerable whitespace, and I'd like to see how a page looks. Now I have to scroll upward each time I switch files. A small niggle, but if it's an easy fix...

3. Would it be possible to make the inspector dock below the code pane? I now have the editor set up like this:

- Code pane: left.
- File Browser + TOC Viewer stacked (tabbed), top right.
- Preview pane bottom right, below the File Browser/TOC Viewer.

I'd like to add the inspector, but I would like to do so below the code pane. If I do, it spans the entire bottom. See the attachment: I'd like to dock the inspector below the Find/Replace bar, if possible.

(Yes, I'm using a 19 inch 1280x1024 screen at the moment. In the future, it may be replaced by a 27 inch 1920x1200 screen, which will effectively run 1536x960 due to 25% GUI enlargement.)

4: Is it possible to make the toolbar, File Browser and TOC Viewer use less whitespace?

edit: The fact that this editor is integrated with calibre is saving me quite some time with regard to exporting/importing books, and fixing Calibre and Sigil's different handling of dates.
Attached Thumbnails
Click image for larger version

Name:	editor.jpg
Views:	361
Size:	457.0 KB
ID:	116705  

Last edited by Katsunami; 12-14-2013 at 09:17 PM.
Katsunami is offline  
Old 12-14-2013, 10:16 PM   #353
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: If you are trying to replace a file, use replace file, not add file. And there was a bug in replace file that caused an error when replacing files with the same name, now fixed. https://bugs.launchpad.net/calibre/+bug/1260822

@eschwartz: Yes importing HTML/CSS files is currently broken (always results in a blank file), just use copy paste, fix will be in the next release.

Also please open a bug report for the toc move feature, or I might forget. Right now there is a whole deluge of small things to be fixed/changed/added to edit book.
kovidgoyal is offline  
Old 12-14-2013, 10:26 PM   #354
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:

1. It's not too much work, it's just not very much of a priority.

2. You can disable position syncing with a button below the preview panel. Re-enable it when you are done adjusting the top margin.

3. It's possible to do that, however, only statically, one cannot adjust that in the view itself. Therefore, it would need preferences.

4. I have no idea what you mean by that. You can adjust the width/height of all dockable widgets. As for the toolbar, no there's no way to have it use less whitespace, short of filling it up with more icons, which will happen anyway as more features are added. You can turn off the main window toolbars via the View menu.

EDIT: Regarding 2. I decided to have the preview panel sync show the body top margin as long as the cursor is at or before the body tag.

Last edited by kovidgoyal; 12-14-2013 at 10:56 PM.
kovidgoyal is offline  
Old 12-15-2013, 12:51 AM   #355
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by kovidgoyal View Post
Also please open a bug report for the toc move feature, or I might forget. Right now there is a whole deluge of small things to be fixed/changed/added to edit book.
Gotcha.
eschwartz is offline  
Old 12-15-2013, 10:01 AM   #356
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
@kovid,
I've just found this small bug. It's easy to reproduce.

- Open epub.
- Select TOC Editor from Toolbar, make a change and save TOC.

The change is registered in the TOC View, but the epub's File-Save menu/toolbar options are still greyed-out so the epub cannot be saved until another non-TOC-editor change is made. Editing the toc.ncx file directly works correctly.

This probably won't affect many as there is no need to open edit-ebook to access the TOC editor, but I thought I'd pass it on anyway.
jackie_w is offline  
Old 12-15-2013, 10:53 AM   #357
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
@jackie: thanks, fixed.
kovidgoyal is offline  
Old 12-15-2013, 03:30 PM   #358
draknan
Enthusiast
draknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the roughdraknan is a jewel in the rough
 
Posts: 26
Karma: 7130
Join Date: Nov 2012
Device: Kindle 3
Will it be possible to have the ePub editor as a standalone program?
draknan is offline  
Old 12-15-2013, 03:52 PM   #359
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 draknan View Post
Will it be possible to have the ePub editor as a standalone program?
If you mean to start it without starting calibre, then it can be done by starting the "ebook-edit" executable. If you mean to use it as a completely seperate program, then I think it's not possible.

Edit Book is built on top of Calibre's infrastructure. That's one of the reasons why Kovid can develop it so fast.
Katsunami is offline  
Old 12-16-2013, 08:43 AM   #360
atjnjk
Zealot
atjnjk will become famous soon enoughatjnjk will become famous soon enoughatjnjk will become famous soon enoughatjnjk will become famous soon enoughatjnjk will become famous soon enoughatjnjk will become famous soon enough
 
Posts: 107
Karma: 554
Join Date: Oct 2008
Device: none
@kovid: Is it possible to single click an entry in TOC view to open it?

Last edited by atjnjk; 12-16-2013 at 08:47 AM.
atjnjk 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 12:33 PM.


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