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 11-29-2013, 01:01 PM   #106
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by theducks View Post
Exactly
Set the cursor on class="calibre29" and right click Goto Link or class
Amazingly, I've never ever knew that this existed. Oh well, RTFM.

What I do use a lot is the "delete unused stylesheet classes" option just to trim hugely cluttered stylesheets to make them more manageable.
DrChiper is offline  
Old 11-29-2013, 01:34 PM   #107
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Kovid, I'm seeing an error when opening a file on my desktop under OS X:

calibre, version 1.13.0
ERROR: Failed to open book: Failed to open book, click Show details for more information.

Traceback (most recent call last):
File "site-packages/calibre/gui2/tweak_book/job.py", line 34, in run
File "site-packages/calibre/gui2/tweak_book/boss.py", line 38, in get_container
File "site-packages/calibre/ebooks/oeb/polish/container.py", line 1077, in get_container
File "site-packages/calibre/ebooks/oeb/polish/container.py", line 830, in __init__
File "site-packages/calibre/ebooks/oeb/polish/container.py", line 136, in __init__
InvalidBook: Could not locate opf file: u'/private/var/folders/jv/z9ntx89x53lbh83qw3qy410r0000gn/T/calibre_1.13.0_tmp_cMk1T2/xPPNqg/00000-y8nSVU/OEBPS/content.opf'

This is a very simple epub created with Sigil. I cracked open the package to confirm that content.opf is in fact in the OEBPS folder (it is).

Shall I send you a copy of the file?

G

Last edited by GRiker; 11-30-2013 at 09:50 AM.
GRiker is offline  
Old 11-29-2013, 01:41 PM   #108
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,064
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DrChiper View Post
Amazingly, I've never ever knew that this existed. Oh well, RTFM.

What I do use a lot is the "delete unused stylesheet classes" option just to trim hugely cluttered stylesheets to make them more manageable.
A definate with the corporate 'Master' stylesheet.
Recently: 3100 lines -> 130 lines that were in use
theducks is offline  
Old 11-29-2013, 02:00 PM   #109
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by theducks View Post
Recently: 3100 lines -> 130 lines that were in use
I bet that most of those 130 remaining where just small variations of otherwise 99% identical classes. Yesterday I reduced one stylesheet to just about 10 useful classes ...

However, just be warned: sometimes the stylesheet is not well formed either. I had several cases that a semi-colon was missing, so some classes were not properly recognized, hence removed but still used.

Last edited by DrChiper; 11-29-2013 at 02:04 PM.
DrChiper is offline  
Old 11-29-2013, 02:17 PM   #110
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
FWIW, I get this error when opening in the terminal box that stays open:
Failed to initialize plugin: u'C:\\Users\\Mike\\AppData\\Roaming\\calibre\\plug i
ns\\eReader PDB 2 PML.zip'
Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 567, in initialize_plugins
File "site-packages\calibre\customize\ui.py", line 53, in load_plugin
File "site-packages\calibre\customize\zipplugin.py", line 188, in load
File "site-packages\calibre\customize\zipplugin.py", line 282, in _locate_code

InvalidPlugin: The plugin in u'C:\\Users\\Mike\\AppData\\Roaming\\calibre\\plug i
ns\\eReader PDB 2 PML.zip' is invalid. It does not contain a top-level __init__.
py file

It doesn't stop anything.
mrmikel is offline  
Old 11-29-2013, 09:32 PM   #111
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@mrmikel: Saving is an asynchronous process (this is because Tweak Book supports both epub and azw3 and saving azw3 is slow, because the book has to be rebuilt). So a traditional save as would not work well. However, I could implement a save copy as which will save the copy in the background at the state you are in while you can continue to work on the book. Will that work for you?

Regrading your error, it is because you have a broken plugin installed, uninstall it from calibre, and the error will go away.

@GRiker: Might be something OS X specific (I have really only tested Tweak Book on my linux dev machine so far) but send me the book anyway.
kovidgoyal is offline  
Old 11-29-2013, 09:42 PM   #112
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Any save as would work for me, since it would be more or less precautionary in case my great idea turned out to be not so great.

The recovery from global search and replace is exceedingly valuable. Things go along so well for a while then one gets a really bright idea and tries it quickly...too quickly.

I will check the error message and see if I can get rid of the plug in.

One useful thing that Sigil does in its book view is it allows you to join broken paragraphs just by deleting everything in between on the screen. That is not something that is available in code view. I am not sure there is an answer for this with this program...maybe there shouldn't be given the unpredictable skill level that could knock out things worth keeping. But I thought I would mention it.

But this is not a high priority item considering the tremendous demands on your time.

One other item I ran across today that is not really an issue with the program is the fact that it seems to be epub3 compatible, rather than epub2. Since most devices are epub2 still and will be for a while, is there any chance of a right click open with command so it could be spun out into something that would display in the more limited epub2 vocabulary.

I got an svg example that I put into this program and it displayed image and text great. But older devices do not display the image at all, so it would be nice if I could be alerted if this were the case. This too is not high priority, but I mention it so you can be aware of a potential issue.

This is program for the future, whereas Sigil will be stuck in the past, so it may not be an issue at all.

Last edited by mrmikel; 11-29-2013 at 09:53 PM.
mrmikel is offline  
Old 11-29-2013, 09:58 PM   #113
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@mrmikel: Book view type operations are not really possible here. For that, someone would have to implement book view. As for the preview panel displaying svg, it is basically the same as calibre's ebook viewer, it will display anything the viewer is capable of displaying. Trying to restrict the viewer to device specific limitations is way too much work, since those limitations vary across devices and across time.
kovidgoyal is offline  
Old 11-30-2013, 01:15 AM   #114
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@Griker: No need to send me a book, I think I know what the problem is, it is caused by OS X's use of symlinks for /tmp

I will implement a fix when I have some time to work on OS X.

EDIT: Fix committed, if you run from source, it should work.

Last edited by kovidgoyal; 11-30-2013 at 01:33 AM.
kovidgoyal is offline  
Old 11-30-2013, 02:36 AM   #115
jbacelar
Interested in the matter
jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.
 
jbacelar's Avatar
 
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
This is going very well. I like.
jbacelar is offline  
Old 11-30-2013, 06:38 AM   #116
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
I understand entirely.

Are you considering implementing the clips or spellcheck features of Sigil? The clips feature is a desirable one and the ability to fix multiple spelling errors at once is also nice. The latter, as I recall in Sigil development, took quite a bit of time to get right.
mrmikel is offline  
Old 11-30-2013, 06:47 AM   #117
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Spell check is on my TODO list.

Clips and various other editor niceties like auto-indent, auto-complete and so on are on my nice-to-have but only get to after the basic functionality is in place. I have been neglecting mainline calibre development working on this for the past few weeks, so I am focusing on getting it done and out the door asap for the moment.

Of course, people are welcome to contribute code to add in their favorite features.
kovidgoyal is offline  
Old 11-30-2013, 08:29 AM   #118
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Quote:
Originally Posted by kovidgoyal View Post
@Griker: No need to send me a book, I think I know what the problem is, it is caused by OS X's use of symlinks for /tmp

I will implement a fix when I have some time to work on OS X.

EDIT: Fix committed, if you run from source, it should work.
I updated my source, but I'm still seeing the error:

Code:
calibre, version 1.13.0
ERROR: Failed to open book: Failed to open book, click Show details for more information.

Traceback (most recent call last):
  File "site-packages/calibre/gui2/tweak_book/job.py", line 34, in run
  File "site-packages/calibre/gui2/tweak_book/boss.py", line 38, in get_container
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 1077, in get_container
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 830, in __init__
  File "site-packages/calibre/ebooks/oeb/polish/container.py", line 136, in __init__
InvalidBook: Could not locate opf file: u'/private/var/folders/jv/z9ntx89x53lbh83qw3qy410r0000gn/T/calibre_1.13.0_tmp_0Apdef/3R30jF/00000-f5XDAy/OEBPS/content.opf'
G
GRiker is offline  
Old 11-30-2013, 08:40 AM   #119
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,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Works for me on my OS X machine. Are you sure you are running from updated source?

In particular, see this commit: https://github.com/kovidgoyal/calibr...6f6487193ff255

In fact looking at that traceback, your line numbers dont match, up. Line 830 should be line 836 in the current source

Last edited by kovidgoyal; 11-30-2013 at 08:44 AM.
kovidgoyal is offline  
Old 11-30-2013, 08:55 AM   #120
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Quote:
Originally Posted by kovidgoyal View Post
Works for me on my OS X machine. Are you sure you are running from updated source?

In particular, see this commit: https://github.com/kovidgoyal/calibr...6f6487193ff255

In fact looking at that traceback, your line numbers dont match, up. Line 830 should be line 836 in the current source
My mistake - I had updated my source, but I had not exported my path to CALIBRE_DEVELOP_FROM in the terminal window.

It works.

G

Last edited by GRiker; 11-30-2013 at 09:49 AM.
GRiker 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 04:37 AM.


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