Order it now! Amazon prioritizes orders on a first come, first served basis.


View Full Version : calibre 0.6.0 released


Pages : [1] 2

kovidgoyal
07-24-2009, 11:16 PM
This is a continuation of the calibre 0.6 beta thread, so those of you that have outstanding issues with 0.6 can follow up here.

Ralob
07-24-2009, 11:34 PM
Oops, already posted before this thread started. Well, might as well post here, too. Two things. one, how much RAM is Calibre supposed to take up on average with .6? I just want to know so I can compare my results with the expected ones to see if there is a memory leak on my end.

Also, here is the post I put up earlier: When I try adding pdf's to the library, it takes quite awhile for the program to add the file. I assume it is looking for the metadata, because it is stuck on the "Adding Screen" at 0%.Previous versions such as 5.14 seemed to add the files much faster. *shrug* Could be just me. :P

starrigger
07-25-2009, 12:54 AM
Just out of curiosity, why is it not possible to use LRF as an input format?

=X=
07-25-2009, 01:27 AM
Kovid I reopened issue 2914 (http://calibre.kovidgoyal.net/ticket/2914) based on John's earlier comment I suspect he did not realize the unicode was valid and his fix was most likely to ignore invalid unicode (a good solution) but the unicode was valid and I put additional info in the description.

=X=

=X=
07-25-2009, 01:33 AM
Just out of curiosity, why is it not possible to use LRF as an input format?

Jeff, calibre's conversion process has two parts the dissecting (file input) of a file format and the creating of a file format (file output). While calibre has had the creating of an LRF done long ago he has not got around to the dissecting of the LRF format. His lrf2lrs has been in alpha(pre beta) for some time now so I suspect he has had little time in creating a robust enough solution to dissect LRF.

=X=

kovidgoyal
07-25-2009, 02:02 AM
@Ralob: I haven't actually looked at memory consumption in windows. 0.6 will use more memory than 0.5 because it keeps a few worker processes in the background.

Adding PDFs is slow because calibre now tries to read the metadata from them. You can disable this via Preferences->Plugins

@starrigger: Basically I've never got around to implementing LRF -> HTML conversion. That's all that's needed to make conversion of LRF possible.

@=X=: Cool, now that I will be make weekly releases again, you should see your bugs fixed quickly.

bmfrosty
07-25-2009, 02:17 AM
I have some ideas regarding user experience and interaction. Would it be OK if I presented a rather extensive post with some ideas on how to make Calibre a more streamlined and cohesive user experience? I think at current it's a great set of tools, but it involves more learning on the part of the user than it should need to.

new
07-25-2009, 02:31 AM
How do I remove the older version of Calibre on an Apple? :help: I have never done that before, doesn't the program leave preferences or something behind if I drag the program into trash?

Also, the only reason I would want to upgrade is if when I convert from .pdf to .lrf the headers would be removed, instead of the headers appearing in strange places. Is that changed in this update? Otherwise I am fine with the older version. Yes, bells and whistles would be nice too, but I don't like updating versions much. Thanks!

It is a nice program.

Jellby
07-25-2009, 05:10 AM
Some comments to the What's new in calibre 0.6? (http://calibre.kovidgoyal.net/new_in_6/) page:

I count 18 formats... maybe saying "dozens of e-book formats" is too much ;) (Is OEB really not supported as input format? I'd have said it's a simple enough format for that.)

In the screenshot for the wizard, it says "Booken" instead of "Bookeen". And the magic wand looks stretched vertically.

AlexBell
07-25-2009, 05:39 AM
I see you've got Biggles in your library. It must be more than 50 years since I've read one of the books in that series.

Congratulations on what looks so far to be a marvellous program.

Regards, Alex

user_none
07-25-2009, 07:53 AM
Kovid I reopened issue 2914 (http://calibre.kovidgoyal.net/ticket/2914) based on John's earlier comment I suspect he did not realize the unicode was valid and his fix was most likely to ignore invalid unicode (a good solution) but the unicode was valid and I put additional info in the description.

=X=

Thanks =X=, I realized it it was detecting the numbers after the unicode character once I got a look at those screen shots of how it was supposed to render. I've closed it out and according to Kovid the fix made it into 0.6.0.

Ralob
07-25-2009, 09:23 AM
Thanks for the tip Kovid. I disabled the PDF metareader plugin and everything it works perfect. :)

rcuadro
07-25-2009, 10:19 AM
Right no! Thanks for all your hard work :)

Elsi
07-25-2009, 10:22 AM
Just out of curiosity, why is it not possible to use LRF as an input format?
This would be an excellent enhancement -- and I look forward to it.

sherryk_us
07-25-2009, 11:07 AM
I just upgraded to 6.0 on my mac. Everything seems good except when I go to edit metadata and add a new file format (html, imp) the program freezes and I have to force quit. Is there any way to fix it? I think I accidentally replaced the old version which worked in this respect when I installed 6.0.

I haven't tried importing a new book yet. I'll have to see if that freezes things up too.

BTW, I have a huge number of books in the library. Not sure if that makes a difference here.

Thanks, Sherry

kovidgoyal
07-25-2009, 11:07 AM
@new: Just delete the o.5 calibre folder to uninstall. Dont worry about left behinf preferences, 0.6 automatically upgrades them.

@bmfrosty: Sure, go ahead, I wont promise to implement all your ideas, but I always welcome feedback

@AlexBell: I love Biggles, read all the books, unfortunately, could only find a couple in didgital format, the last time I looked

kovidgoyal
07-25-2009, 11:21 AM
@sherryk_us: It may just be taking a longer time than before. Have you tried waiting?

sherryk_us
07-25-2009, 11:31 AM
I waited about a half an hour the first time, but only 10 or 15 minutes the second and third time.

BTW importing new books seems to work really well and faster than with the previous version of Calibre! :) Weird.

Thanks for the suggestion.

Sherry

p3aul
07-25-2009, 11:50 AM
I upgraded and was hoping to convert from epub to text like the "New Features" said it could, but I can't find the right command-line program. It's not any2txt or epub2txt. Which one is it?
Thanks,
Paul

Never mind. I was able to accomplish this in the GUI.
Paul :)

kovidgoyal
07-25-2009, 12:19 PM
I waited about a half an hour the first time, but only 10 or 15 minutes the second and third time.

BTW importing new books seems to work really well and faster than with the previous version of Calibre! :) Weird.

Thanks for the suggestion.

Sherry

Can you please open a ticket, and I'll look into it. Too many forum posts today to keep track of.

kovidgoyal
07-25-2009, 12:20 PM
@p3aul: All the old conversion commands have been consolidated into a single command called ebook-convert

So for example


ebook-convert myfile.epub output.txt

Garfunkel
07-25-2009, 01:07 PM
Kovid, please fix the FB2 input plugin TOC auto-creation issue. I've opened the ticket (#2814). I contacted the author of the plugin (Anatoly Shipitsin). See the details in the ticket info. Thanx.

pars_andy
07-25-2009, 01:50 PM
This would be an excellent enhancement -- and I look forward to it.

I agree. Sadly i've read that it's not on the immediate 'to do' list at the moment though unless someone else wants to have a bash at developing the plug in. Unfortunately i'm just about able to program my dvd recorder but not much else so i doubt i'm going to be able to help in any way!

Eagleeye
07-25-2009, 02:05 PM
One hint: for linux (at least, for ubuntu 9.04): you have to make sure, that the libphonon-package is installed. Especially the sources. Else you get the following messages (and calibre will not work):
Traceback (most recent call last):
File "/tmp/init.py", line 43, in <module>
File "/home/kovid/work/calibre/src/calibre/linux.py", line 8, in <module>
File "/home/kovid/work/calibre/src/calibre/customize/ui.py", line 11, in <module>
File "/home/kovid/work/calibre/src/calibre/customize/builtins.py", line 339, in <module>
File "/home/kovid/work/calibre/src/calibre/ebooks/pdf/output.py", line 18, in <module>
File "/home/kovid/work/calibre/src/calibre/ebooks/pdf/writer.py", line 22, in <module>
File "ExtensionLoader_PyQt4_QtWebKit.py", line 12, in <module>
ImportError: libphonon.so.4: cannot open shared object file: No such file or directory

@Kovidgayal: it is possible to include these packages into the linux-binary?

kacir
07-25-2009, 04:20 PM
Instalation in Mint Linux works perfectly.
I have just pasted the commandline from the download page into terminal window. No problem with old versions of libraries.

Thank you Kovid very, very much.

I hope that Sony engineers and Sony management pay attention. Sony Library has only fraction of features of Calibre.

kovidgoyal
07-25-2009, 04:26 PM
@Eagleeye: I've added a note about libphonon to the download page. Adding it to the binary is not an option as it has a whole list of its own dependencies

@kacir: Glad to hear it

p3aul
07-25-2009, 04:29 PM
@p3aul: All the old conversion commands have been consolidated into a single command called ebook-convert

So for example

Code:

ebook-convert myfile.epub output.tx

Oh I gotcha! Thanks, Kovid!:thanks:

=X=
07-25-2009, 05:46 PM
Thanks =X=, I realized it it was detecting the numbers after the unicode character once I got a look at those screen shots of how it was supposed to render. I've closed it out and according to Kovid the fix made it into 0.6.0.

Hi user_none,
Ah okay, Thanks I'll try it out

Also thank you for the the eReader conversion that is one of the features I've been most exited about in the 6 release esp since the eReader price are so attractive compared to some of the other formats.

BTW I've tried Outliers and there are some more problems. I'll write a trouble report and show some of the pictures when I have some time.

Mitchll
07-25-2009, 06:06 PM
Kudos to Kovid and all who work with him. A great job well done!!!:thanks:


Mitch

Berkyb
07-25-2009, 09:27 PM
@Eagleeye: I've added a note about libphonon to the download page. Adding it to the binary is not an option as it has a whole list of its own dependencies

@kacir: Glad to hear it
I'm a linux newbie working on a dell mini netbook. I had no problems using the previous version of Calibre but am getting this error upon trying to install version 6: ImportError: libphonon.so.4: cannot open shared object file: No such file or directory

I've installed libphonon4 and libphonon-dev but continue to get the error. I've been reading message boards, the ubuntu community forums, and anything else I can find to fix the problem myself but keep coming up with nothing.

Any help would be greatly appreciated.

Cheri

pghmark
07-25-2009, 09:52 PM
Kovid,

I hit a problem I thought we addressed several versions ago, but I can't find the thread to refresh me on whether you fixed something, or gave me special instructions

I've been using Calibre 0.5.14 on Windows7 with no problems. When I try to install the new version, I get an error message indicating the Calibre is still running and I can't finish the installation. Calibre is not listed in Task Manager as a running application, or process. Even tried it after a fresh reboot.

Thanks for a great program and your help...

user_none
07-25-2009, 10:02 PM
I'm a linux newbie working on a dell mini netbook. I had no problems using the previous version of Calibre but am getting this error upon trying to install version 6: ImportError: libphonon.so.4: cannot open shared object file: No such file or directory

I've installed libphonon4 and libphonon-dev but continue to get the error. I've been reading message boards, the ubuntu community forums, and anything else I can find to fix the problem myself but keep coming up with nothing.

Any help would be greatly appreciated.

Cheri

What version of Ubuntu are you using?

Berkyb
07-25-2009, 10:03 PM
I'm using 8.04 (Hardy)

Graflan
07-25-2009, 11:39 PM
I'm also having the same problem with ImportError: libphonon.so.4: cannot open shared object file: No such file or directory. I've installed the libphonon4 package.

My OS is Ubuntu 8.04

FizzyWater
07-26-2009, 12:29 AM
I've been using Calibre 0.5.14 on Windows7 with no problems. When I try to install the new version, I get an error message indicating the Calibre is still running and I can't finish the installation. Calibre is not listed in Task Manager as a running application, or process.

Not Kovid here, but do you have the Calibre tray notification turned on? I thought that sometimes caused a problem of Calibre appearing to be running, when it wasn't...

Garfunkel
07-26-2009, 12:31 AM
Kovid, the ticket I opened is http://calibre.kovidgoyal.net/ticket/2908.

FizzyWater
07-26-2009, 12:31 AM
Kovid, I tried to redownload the installer and I'm still getting that very odd display of the internal fonts in the program.

I had two thoughts about possible causes:


What font is used in the body of your program? Is it possible I'm getting that odd display because I don't have that font installed on my computer?
Is there any reason this could be caused by my having Python 2.5 installed?

kovidgoyal
07-26-2009, 12:48 AM
@pghamark: You sure you dont have calibre.exe in your list of processes (note processes and not applications)

@FizzyWater: calibre doesn't use any special font to render its interface, just whatever is your system default. I really have no idea what could be causing that.

@Graflan and Berkyb: We're working on a solution for the libphonon problem, unfortunately, calibre needs Qt 4.5 (which is what needs libphonon). The version of libphonon on your systems is too old.

@Garfunkel: Yeah it's on my TODO list.

slantybard
07-26-2009, 12:55 AM
There seems to be a whole whack of new options for conversions. I realize that I will need to spend some time playing around with the updated gui options, but I would like to start off similar to my 0.5.14 processing. In 0.5.14, I import html, lit or epub files and export to epub. I usually change the baseline font to 13 and use the css override of:
--override-css "p {margin-top: 0pt; margin-bottom:0pt;padding:0pt; text-indent:20pt}"

In looking at the conversion options available in 0.6, I am not sure where to put in my options for my old workflow. I see a base font dialog in the look and feel section, but the default is now 0.0, not the 11 from before. I assume I just replace the 0.0 with 13. I found a margins section on the page setup section and I assume the left and right correspond to my old css override of padding, but am not fully sure about that. As well, I didn't see any area to input text indenting. I did see an area in the LRF output, but I am outputting into epub.

Thanks for any help/sugggestions.

slantybard
07-26-2009, 12:56 AM
There seems to be a whole whack of new options for conversions. I realize that I will need to spend some time playing around with the updated gui options, but I would like to start off similar to my 0.5.14 processing. In 0.5.14, I import html, lit or epub files and export to epub. I usually change the baseline font to 13 and use the css override of:
--override-css "p {margin-top: 0pt; margin-bottom:0pt;padding:0pt; text-indent:20pt}"

In looking at the conversion options available in 0.6, I am not sure where to put in my options for my old workflow. I see a base font dialog in the look and feel section, but the default is now 0.0, not the 11 from before. I assume I just replace the 0.0 with 13. I found a margins section on the page setup section and I assume the left and right correspond to my old css override of padding, but am not fully sure about that. As well, I didn't see any area to input text indenting. I did see an area in the LRF output, but I am outputting into epub.

Thanks for any help/sugggestions.

kovidgoyal
07-26-2009, 01:04 AM
there is still an override css (except that it's called extra css) so you should just be able to use it as before, with the exception of font sizes, which you may have to play around a little bit with.

PiAir
07-26-2009, 01:33 AM
Did the feed2xxxx command line options get removed from the Windows version or did they get integrated into another command also?

PiAir
07-26-2009, 05:37 AM
Did the feed2xxxx command line options get removed from the Windows version or did they get integrated into another command also?

Answering my own question: yes, it got integrated into the ebook-convert command. :2thumbsup

One thing I did wrong was that I was using .py as extension for my filters. That wasn't a problem before, but now you need to use .recipe
The export type is determined by the extension of the export filename.

So now you use: calibre>ebook-convert filters/myfilter.recipe ebooks/myBook.epub to create an epub based on a custom recipe.
And calibre>ebook-convert filters/myfilter.recipe ebooks/myBook.mobi creates a mobipocket version of the same recipe.

Also see the wiki page about it (http://calibre.kovidgoyal.net/user_manual/news.html#tips-for-developing-new-recipes)

kacir
07-26-2009, 06:09 AM
All the old conversion commands have been consolidated into a single command called ebook-convert

ebook-convert myfile.epub output.txt


Just like you, I too like to use commandline.

When I tried to use ebook-convert it told me that it has numerous interesting options. Too mumerous to be documented in manpage or a humble -h option output :blink:. It told me to go to
http://calibre.kovidgoyal.net/user_manual/conversion.html
But ... said page is completely devoid of any documentation of options.
How can I help you to remedy this situation?

Kacir

user_none
07-26-2009, 09:39 AM
Just like you, I too like to use commandline.

When I tried to use ebook-convert it told me that it has numerous interesting options. Too mumerous to be documented in manpage or a humble -h option output :blink:. It told me to go to
http://calibre.kovidgoyal.net/user_manual/conversion.html
But ... said page is completely devoid of any documentation of options.
How can I help you to remedy this situation?

Kacir

ebook-convert -h
Will print a very basic help.

The full help options are created dynamically based on your input and output types.

ebook-convert in.epub out.txt -h
This will give you the full list of option based upon those formats. This design decision is because some formats specify format specific input/output options and some disable global input/output options.

richreads
07-26-2009, 01:43 PM
i've been trying the option to insert the book metadata at the start of the book.
it's great. bit it is bracketing series with a <b> and </b>.

kovidgoyal
07-26-2009, 01:55 PM
i've been trying the option to insert the book metadata at the start of the book.
it's great. bit it is bracketing series with a <b> and </b>.

Why is that bad?

richreads
07-26-2009, 02:03 PM
sorry i guess i wasn't clear.
after i convert it is showing the <b> </b> when i view the lfr in the the viewer.
I've attached a screen shot

kovidgoyal
07-26-2009, 02:23 PM
Ah, will be fixed in 0.6.1

pghmark
07-26-2009, 04:56 PM
Nope...first thing I thought of...

pghmark
07-26-2009, 05:09 PM
Double checked...rebooted system, checked processes for all users, no calibre listed. Tried install, get message the calibre is running and install won't go any further.

slantybard
07-26-2009, 05:52 PM
there is still an override css (except that it's called extra css) so you should just be able to use it as before, with the exception of font sizes, which you may have to play around a little bit with.

Sorry, so I should put this:

--override-css "p {margin-top: 0pt; margin-bottom:0pt;padding:0pt; text-indent:20pt}"

into the extra css box? Same syntax? Then do I leave the margins section on the page setup dialog all at 0? Thanks.

Ralob
07-26-2009, 05:55 PM
In the viewer, is it still possible to remove the toolbars? I tried right clicking all over the place like in 5.14 and did not see the option.

vbu
07-26-2009, 07:04 PM
Thanks for this great software Kovid! I really like the new conversion from RB format as I have a lot of old books from my (now dead) Rocket eBook Pro I'd love to read again.

One thing, could you add validation to ebook-convert so it won't let you specify the same filename for both input and output? I was converting a book and using the linux autocompletion to quickly fill out the name and pressed enter before changing the output file extension. Result? A clobbered input file.

E.g. I ran this

ebook-convert input.rb input.rb

instead of

ebook-convert input.rb input.epub


Thanks

kovidgoyal
07-26-2009, 08:12 PM
@vbu: opena ticket so I dont forget

@ralob: I don;t think anything toolbar related changed in the viewer.

@slantybard: yes, the margin setting is for overall page margins, not paragraph margins

@pghmark: Hmm not sure what could be causing this, as far as i know, the installer simply checks for calibre.exe in the running processes.

Timoleon
07-26-2009, 08:40 PM
Thanks, Kovid, for this wonderful piece of software --- I can't say enough good things about it. :thumbsup:

There is one behavior that baffles me. I run all my ebooks through Book Designer, create a lit file, then have Calibre convert it to lrf for my Sony Reader PRS-505. In Book Designer, I highlight the book title and author and designate them as such. Book Designer will center these and make the font larger in relation to the rest of the text, and it will note the metadata.

In Calibre version 5.14, I change the font size of the output from the default size of 10 points to 9 points. Everything converts great and looks proportional on the Sony Reader. However, in Calibre version 6.0 if I change the font size from the default "0.0" to 9 points, the book title and book author take up virtually the complete page! The rest of the text looks fine. If I leave the default font size at "0.0", the resulting page with the book title and book author on it looks normal. The body text, however, is a little larger than I like it, at 10 points.

I can "sort of" solve the problem by just highlighting, centering, and bolding the book author and book title in Book Designer without indicating that they are in fact the book author and book title, but this seems a less than ideal solution. Any ideas on what is going on and how I can effect a better fix? Thanks! :book2:

kovidgoyal
07-26-2009, 08:48 PM
The font rescaling code has been changed, it now uses two inputs, the base font size and a font size key.

The font size key is a list of sizes to map the logical sizes xx-small, x-small, small, normal, large, x-large, xx-large etc to. All sizes in the document are sized proportionately by the key. If you find the high end becoming too large try setting a key that has different (I can't remember whether smaller of larger sizes on the high end).

If I remember right the SONY reader output profile by default uses the key
7.5, 9, 10, 12, 15.5, 20, 22, 24

This key has been optimized for EPUB output as going forward I'm pretty sure SONY will drop LRF. You might have to experiment a little to find the best key for your needs.

Timoleon
07-26-2009, 09:04 PM
Thanks, Kovid. I'll play with the input and output a bit more keeping your comments in mind. I'd like to go "whole hog" into epub output, but I'm bothered by the fact that the Sony PRS-505 has no epub support for justified text, and with the events/rumors floating around Sony the last couple of days I'm afraid that there may not be any more updates to the Sony software, and a near zero chance of the justification being provided. :(

Ralob
07-26-2009, 09:25 PM
@vbu: opena ticket so I dont forget

@ralob: I don;t think anything toolbar related changed in the viewer.

@slantybard: yes, the margin setting is for overall page margins, not paragraph margins

@pghmark: Hmm not sure what could be causing this, as far as i know, the installer simply checks for calibre.exe in the running processes.

I went back to 5.14 and I could remove either toolbar but I can't on 6.0 or 6.1.

kovidgoyal
07-26-2009, 10:20 PM
I went back to 5.14 and I could remove either toolbar but I can't on 6.0 or 6.1.

Open a ticket and I'll look at it when I have a moment

Timoleon
07-26-2009, 11:03 PM
The font rescaling code has been changed, it now uses two inputs, the base font size and a font size key.

The font size key is a list of sizes to map the logical sizes xx-small, x-small, small, normal, large, x-large, xx-large etc to. All sizes in the document are sized proportionately by the key. If you find the high end becoming too large try setting a key that has different (I can't remember whether smaller of larger sizes on the high end).

If I remember right the SONY reader output profile by default uses the key
7.5, 9, 10, 12, 15.5, 20, 22, 24

This key has been optimized for EPUB output as going forward I'm pretty sure SONY will drop LRF. You might have to experiment a little to find the best key for your needs.

I changed the font size key list to:
7.5, 9, 10, 12, 12, 12, 12, 12 and this solved my problem. The lrf file generated by Calibre no longer has the super-sized book author and book title strings as produced by Book Designer.

I'll play with epub next. Thanks for your help, Kovid! :thanks:

slantybard
07-26-2009, 11:10 PM
I changed the font size key list to:
7.5, 9, 10, 12, 12, 12, 12, 12 and this solved my problem. The lrf file generated by Calibre no longer has the super-sized book author and book title strings as produced by Book Designer.

I'll play with epub next. Thanks for your help, Kovid! :thanks:

This is pretty interesting. Is there an algorithm for the font size key if you just change the base font size? For example, if the font size key is defaulted to:
7.5, 9, 10, 12, 15.5, 20, 22, 24
then I assume the "base font size" of this key is 12. If we change the base font size to a larger or smaller number, then what happens to the key? Or would the key stay the same except for the "normal" number. This could lead to a normal size larger or smaller than the other keyed sizes.

Kris777
07-27-2009, 12:29 AM
I just found this video presentation on youtube:
Xu_FgtM_Oqs

kovidgoyal
07-27-2009, 01:42 AM
@slantybard: It's been a while since I looked at that code (it was written by llasram anyway) but IIRC the nearest size in the key becomes normal.

@Kris777: Thanks for the link, I've added it to the calibre video page :)

Angela
07-27-2009, 03:19 AM
Hello,sorry for my english i am italian.A strange thing happens.I have all my book in mobipocket.I put it in calibre then i convert it into epub.I read it but the letter ì is missing.I attached image and see the yellow word.Thanks.

Lo Zeno
07-27-2009, 08:02 AM
I'm Italian too, and I experienced a similar problem converting a TXT to EPUB today: all accented letters (à, è, é, ì, ò, ù), which are unfortunately very common and widely used in Italian, are missing in the converted text.

Angela
07-27-2009, 08:14 AM
Lo Zeno,no this is a new thing.In other version of calibre 06.16b it is ok.I am not converting txt to epub but mobi to epub and in mobi accended letters is ok.In this case only ì missing, à è ò ù is ok. Thank you

kovidgoyal
07-27-2009, 08:58 AM
@Angela: Opena ticket and attach the MOBI file showing this problem.

@LoZeno: You have to specify the correct input encoding when converting TXT files. Try using one of the following encodings

cp1252
cp1251
latin1

PiAir
07-27-2009, 09:07 AM
@LoZeno: You have to specify the correct input encoding when converting TXT files. Try using one of the following encodings

cp1252
cp1251
latin1

And in your case you also might want to try UTF-8

Tip: if you open the TXT file in Notepad++ (free) you can easily see the encoding for the file and even change it.

Momo_Germany
07-27-2009, 09:15 AM
I really waited for Version 6 and I like some of the new features (detecting two cards at the Sony Reader etc.). But for now after trying Version 6 I have to say I went back to 5.14., which is much more comfortable for me.

The rasons:

1) As some of the other users too I've problems with the font sizes in Version 6. For me it has become much more complicated than before to get an epub in a font size I like. However, somehow I think I would find a solution if I had the time to try various possibilities (but for the moment I don't have the time to do so).

2) more importantly: If I convert an ebook (epub to epub) to add a cover and make the fonts a little bit bigger with Version 6 the page-numbers of the ebook change. I can't use this, as I need a version of the books where the page-numbers stay the same as in the printed version (important for quotations etc.). Up to Version 5.14 this worked perfectly for epubs, now it doesn't work like this anymore.

3) If I do so (converting epub to epub, changing the font-size and adding a cover) the former cover-page of the ebook now is always removed by Calibre 6 automatically, although I made sure NOT to check this box in my settings. I can try whatever I want, the former cover-page now is always removed and changed into a plain page, which I absolutely don't like.

Maybe those things will be fixed in future. So far I go back to Version 5.14, which works much better for me.

By the way: When I went back to Version 5.14 after having tried Version 6 I had no possibility anymore to connect Calibre to my Calibre-library-files and I had to remove them from the folder to get Calibre 5.14 to work again). In my case that's not that bad as fortunately I only use Calibre to convert books, change the font-sizes, add covers etc. and not to organise my ebooks. But for Users who need the Calibre library function: be careful with trying out Version 6 and then possibly going back to 5.X!

However, thank you for this program and its' possibilities!

Greetings,
Momo

Kostas
07-27-2009, 09:18 AM
Thanks a lot to Kovid and all his team...:thanks:
Just made a donation to support your great job.:)

kovidgoyal
07-27-2009, 09:23 AM
@Momo_Germany: 2 is a regression (0.6 currently doesn't have support for page templates, while 0.5 did, you should open a ticket and attach a sample epub file). 3 is probably because your source epub file doesn't correctly identify the cover. Again open a ticket and I will see if it can be worked around.

@Kostas: Thanks!

Garfunkel
07-27-2009, 10:15 AM
Kovid, thanks so much for fixing the fb2 Input plugin auto created the ToC bug!

Angela
07-27-2009, 10:56 AM
Thank you Kovid I open a ticket.This is the number Ticket #2953 (new defect)

leebok21
07-28-2009, 02:51 PM
Excellent Job, Kovid.

Again, I still can not embed proper font in PDF conversion. Isn't this supported yet?

I used below code in extra CSS:


body{font-family:"Times";}

But, I don't see any font change. It seems that Calibre pick up font font automatically when it's conversion. If I delete that certain font from my Windows font folder, Calibre pick up different font for default.

Also, I have trouble to set line height in LRF conversion. In the Look & feel window, Line height does not respond to the request. Even I tried extra css as:

p {line-height: 5}

That doesn't work.

Seems like Line height function is lost in 0.6 version so far.

Any idea?

kovidgoyal
07-28-2009, 03:03 PM
Only LRF supports font embedding currently and you can only do that via the conversion options, not via CSS.

If you want to mess with CSS features like line-height, I suggest using the EPUB format.

leebok21
07-28-2009, 04:10 PM
So, there is no way to change the line height in LRF conversion, right?

For PDF, I can make it with ADOBE, so it doesn't hurt, anyway.

Thanks again,



Only LRF supports font embedding currently and you can only do that via the conversion options, not via CSS.

If you want to mess with CSS features like line-height, I suggest using the EPUB format.

GonzoGonzalez
07-28-2009, 05:27 PM
Great program, but with a fatal bug:

I have version 0.6.2 on Vista-64. When I try to import 136 books (most in PDF format) from hard drive, system slows down to a crawl (I have Quad-Core, 8 gig of ram, 20 Gig free space on HD), runs out of memory in about 5 minutes and becomes unresponsive. SEEMS LIKE SOME MEMORY IS NOT BEING PROPERLY RELEASED.

When computer stopped responding completely (about 10 minutes, 30% of books imported), I managed to terminate it. Then I checked hard-drive- 20 Gig of space was GONE! Just like that. The Calibre book directory was only 20 MB, so I went to check windows temp directory, and, voila- it was overfilled with thousands of files named "magick-something", each one about 4 meg long. So, also- temporary files are not properly released.

What is going on?

kovidgoyal
07-28-2009, 05:32 PM
You have discovered the joys of PDF. Go to preferences->plugins and disable the PDF metadata reader. And as a general note, when you terminate a program, temporary files will not be cleaned up.

johnwhelan
07-28-2009, 06:35 PM
I note that I can now add in paper books to the database.

OK I have a few thousand so how can I automate the process?

I assume there should be a way to input the ISBN into something which grabs the details such as author title etc? and outputs something Calibre can accept as input?

Or even a bar code reader which plugs into the USB port etc etc.

Thoughts?

Thanks John

kovidgoyal
07-28-2009, 10:53 PM
Adding an option that accepts ISBN and downloads metadata is on the TODO list. For the moment, you have to use the edit metadata dialog to manually input ISBNs and download metadata.

GonzoGonzalez
07-29-2009, 09:42 AM
when you terminate a program, temporary files will not be cleaned up

The problem is- the "magick-" temporary files seem to be NEVER removed, whether the program terminates abnormally or normally. Also, the files should really be removed and memory released AFTER EACH BOOK. Do you think it is normal that the system uses up 20GB of space to just import about 40 books?

Are you using regular expressions to read meta-data from PDF's? If yes- that's the worst way to go. Searching within huge binary files with reg ex is HORRIBLY slow and resource consuming. On my reasonably fast quad core with 8 GB ram it takes sometimes 5 (!) minutes per PDF to search for meta-data. And if the data is absent- in all likeliness regular expression algorithm will run our of resources, just like it happens in my case. Just a thought from reg ex specialist ;)

There are other much faster and less resource consuming possibilities to read pdf meta-data. For example, here is a very fast program that you can run from command line to get PDF meta data. Tested and works great- it even detects if PDF is password-protected:

http://www.becyhome.de/download_ger.htm#becypdfmetaedit

Let me know what you think. Thanks for a great program and keep up the good work!

Kostas
07-29-2009, 10:05 AM
Wellcome Gonzo,

Don't forget that you are criticizing a FREE program...:)

GonzoGonzalez
07-29-2009, 10:41 AM
I'm NOT criticizing it. I'm suggesting a way to IMPROVE it. If it's free it doesn't mean we have to ignore some important flaws. It is a great program, but can be made even better!

This program, becypdfmetaedit, retrieves PDF data in fraction of a second, as opposed to current Calibre plugin that sometimes takes a dozen minutes and runs out of resources. So why not use it? If can be executed from command line, it's output can be parsed and used with Calibre.

http://www.becyhome.de/download_ger.htm#becypdfmetaedit

Kostas
07-29-2009, 10:50 AM
I mean that becypadfmetaedit is a well known program to the members of this forum.
I thinks that Calibre team would have used its features if it could.

kovidgoyal
07-29-2009, 12:07 PM
calibre has over the months tried three different libraries to read PDF metadata, none of them work well. PDF is just a pain. As for your disk usage issues, that comes from rendering the PDF to try to extract the first page as an image.

slantybard
07-29-2009, 12:09 PM
I'm NOT criticizing it. I'm suggesting a way to IMPROVE it. If it's free it doesn't mean we have to ignore some important flaws. It is a great program, but can be made even better!

This program, becypdfmetaedit, retrieves PDF data in fraction of a second, as opposed to current Calibre plugin that sometimes takes a dozen minutes and runs out of resources. So why not use it? If can be executed from command line, it's output can be parsed and used with Calibre.

http://www.becyhome.de/download_ger.htm#becypdfmetaedit

The problem may be that becypdf appears to be win32, not cross platform, while calibre is OS independent.

GonzoGonzalez
07-29-2009, 05:42 PM
calibre has over the months tried three different libraries to read PDF metadata, none of them work well

I've been using "becypdfmetaedit" for HUNDREDS of files- it works quickly and flawlessly. The only minus is that it is windows only.

itimpi
07-29-2009, 06:37 PM
One of the big strengths of Calibre is its cross-platform support. Therefore Calibre will not include any components that do not run on the 3 platforms it supports (Mac, Windows and Linux).

I guess the answer is for someone to rewrite the PDF plugin to use the same algorithm's?

user_none
07-30-2009, 07:15 AM
One of the big strengths of Calibre is its cross-platform support. Therefore Calibre will not include any components that do not run on the 3 platforms it supports (Mac, Windows and Linux).

I guess the answer is for someone to rewrite the PDF plugin to use the same algorithm's?

Any code used by calibre must also be GPLv3 compatible.

richman
07-30-2009, 11:15 AM
version 6.3 doesn't work at all.
I downloaded it twice and when trying to install says no exe file or corrupted exe file .
I downloaded 6.2 and earlier versions no problems, you might want to check it and correct it. Thanks.

ddavtian
07-30-2009, 11:22 AM
I installed it on windows as usual, no problems.

JSWolf
07-30-2009, 11:34 AM
Great program, but with a fatal bug:

I have version 0.6.2 on Vista-64. When I try to import 136 books (most in PDF format) from hard drive, system slows down to a crawl (I have Quad-Core, 8 gig of ram, 20 Gig free space on HD), runs out of memory in about 5 minutes and becomes unresponsive. SEEMS LIKE SOME MEMORY IS NOT BEING PROPERLY RELEASED.

When computer stopped responding completely (about 10 minutes, 30% of books imported), I managed to terminate it. Then I checked hard-drive- 20 Gig of space was GONE! Just like that. The Calibre book directory was only 20 MB, so I went to check windows temp directory, and, voila- it was overfilled with thousands of files named "magick-something", each one about 4 meg long. So, also- temporary files are not properly released.

What is going on?
Actually, there's no way the program can delete the temp files if you've terminated it before it's done.

JSWolf
07-30-2009, 11:38 AM
version 6.3 doesn't work at all.
I downloaded it twice and when trying to install says no exe file or corrupted exe file .
I downloaded 6.2 and earlier versions no problems, you might want to check it and correct it. Thanks.
I didn't know we are up to version 6.3 yet.

But, I did install 0.6.3 with no problems on my Windows XP Pro system.

radamo
07-30-2009, 12:05 PM
Just wanted to request an update to the windows installer. When installing a new version the "installer" defaults to the "C" drive. Caliber 0.5.x as well as other windows apps actually show where an app is currently installed which may or may not be "C".
Thanks for a great product!!!
RA

kovidgoyal
07-30-2009, 12:10 PM
Open a ticket, or I will forget :)

Kostas
07-30-2009, 01:15 PM
I didn't know we are up to version 6.3 yet.
But, I did install 0.6.3 with no problems on my Windows XP Pro system.
:rofl: :rofl: :rofl:
Thanks Jon!

richman
07-30-2009, 01:51 PM
thanks too, I was troubleshooting the problem and wasn't sure if it was me or the program, and getting feedback helped me to cross off the program as being the problem. I did install tuneup utilities 2009 yesterday and that is what caused the problem, I rolled back my computer to right before I installed the program , and now the calibre program installs again. :)

DhuGall
07-30-2009, 02:27 PM
I am having trouble since updating from 0.5, since installing 0.6 I have not been able to upload to the Sony reader. It all worked perfectly in the earlier version. Any suggestions:blink:

itimpi
07-30-2009, 02:30 PM
What model of Sony Reader? I have a PRS-500 and I find it has to be plugged in before I start Calibre to be able to upload to it. In the 0.5.14 release I could plug it in at any time.

radamo
07-30-2009, 02:39 PM
Open a ticket, or I will forget :)

I created ticket #3003.

Thanks,
RA

AJ Starr
07-30-2009, 07:39 PM
Is there a file size limit for epubs in calibre 6.

I tried loading a 18 mb epub and I get error messages. But I was OK on a 2 mb file.

:thanks:

AJ

kovidgoyal
07-30-2009, 07:43 PM
Not hard coded, depends on the amount of memory your computer has. What error are you getting?

AJ Starr
07-30-2009, 10:41 PM
Since your 6.03 worked OK on a 2 meg book, it is possible it is the 18 meg book, however the messages under the download indicated it worked OK.

http://www.mobileread.com/forums/showthread.php?t=52321

---------------------------

When I tried opeing the above book in Calibre 6.03 I got the following:

When I hit View, it opens the window, acts like it's opening the book, then I get:

Error: Could not open ebook
(267, 'The directory name is invalid')

Traceback (most recent call last): File "C:\Program Files\calibre\library.zip\calibre\gui2\viewer\main .py", line 56, in run
File "threading.pyo", line 477, in run
File "calibre\ebooks\oeb\iterator.pyo", line 140, in __enter__
File "calibre\customize\conversion.pyo", line 217, in __call__
File "calibre\ebooks\epub\input.pyo", line 106, in convert
File "calibre\utils\zipfile.pyo", line 1013, in extractall
File "calibre\utils\zipfile.pyo", line 1001, in extract
File "calibre\utils\zipfile.pyo", line 1037, in _extract_member
File "os.pyo", line 157, in makedirs
WindowsError: [Error 267] The directory name is invalid: 'c:\\users\\sharon\\appdata\\local\\temp\\calibre_ 0.6.3_umezmf_ebook_iter\\OEBPS\\images\\aux'




When I hit "next page"(? the purple right arrow) I get:

ERROR: ERROR: Unhandled exception
AttributeError: "EbookViewer' object has no attribute "current_index'

Traceback (most recent call last):
File "C:\Program Files\calibre\library.zip\calibre\gui2\viewer\main .py", line 247, in <lambda>
File "calibre\gui2\viewer\documentview.pyo", line 549, in next_page
File "C:\Program Files\calibre\library.zip\calibre\gui2\viewer\main .py", line 607, in next_document
AttributeError: 'EbookViewer' object has no attribute 'current_index'


Hopes this helps you, I'm not anxious about this, just a book I thought I'd peruse.

Thanks for all your hard work.

AJ

kovidgoyal
07-31-2009, 12:58 AM
that's a very weird error message and it has nothing to do with file size. Indeed that book works fine for me (albeit in linux) Can someone else try it in windows please.

itimpi
07-31-2009, 01:32 AM
I tried it on Windows and got the same error message trying to view the file.

I then renamed the .epub file to a .zip file and tried to unzip it. I got an error message about being unable to create the 'aux' folder. I could not see any reason for this, but I guess it is at the root of the viewing problem. It was not anything obvious like path length as when I was trying to unzip I was using quite a short one as the root for the unzip.

Kostas
07-31-2009, 01:36 AM
Tested in Windows and got same error.
The file opens fine with ADE.

gwynevans
07-31-2009, 06:26 AM
I then renamed the .epub file to a .zip file and tried to unzip it. I got an error message about being unable to create the 'aux' folder. I could not see any reason for this, but I guess it is at the root of the viewing problem.

Well, AUX (as well as CON and PRN) are 'historic' device names in DOS, so I'd expect that for some reason or other, the unpacking code's failing for some reason involved with that - maybe it's something like trying to see if 'aux' exists, whereas it should be checking for something like './aux', but I'm just guessing, as I've not done any Win16/Win32 coding for many years.

DhuGall
07-31-2009, 10:20 AM
Have now tried 0.6.2 in windows (I normally use Linux). Sony 505 recognised if already connected but I although the icon for the book appears in Calibre I get the following error

unsupported operand type(s) for +: 'NoneType' and 'str'

Traceback (most recent call last):
File "calibre\gui2\device.pyo", line 57, in run
File "calibre\gui2\device.pyo", line 191, in _books
File "calibre\devices\prs505\driver.pyo", line 97, in books
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

In the previous version 0.5.xx I had no problems??

Jellby
07-31-2009, 10:56 AM
WindowsError: [Error 267] The directory name is invalid: 'c:\\users\\sharon\\appdata\\local\\temp\\calibre_ 0.6.3_umezmf_ebook_iter\\OEBPS\\images\\aux'

I got an error message about being unable to create the 'aux' folder.

Well, AUX (as well as CON and PRN) are 'historic' device names in DOS

There is indeed an "aux" directory in that book, I've renamed it to "auximg", it should work fine now if that was the problem (regardless of whether that's shomething fixable in Calibre or not).

Kirtai
07-31-2009, 11:21 AM
There is indeed an "aux" directory in that book, I've renamed it to "auximg", it should work fine now if that was the problem (regardless of whether that's shomething fixable in Calibre or not).
You cannot create a file called aux on windows. It (along with others) are special names that considered to already be in every folder due to backwards compatibility

AJ Starr
07-31-2009, 11:23 AM
I reloaded the fixed version and it works just fine now.

Thanks for all the trouble all of you went through for this.

:thanks:

AJ

kovidgoyal
07-31-2009, 12:39 PM
An amusing bug. I didn't realise there were reserved names in windows filesystems, reserved characters, yes, but names, no.

sapient
07-31-2009, 03:54 PM
I Just got back from the hospital, where I spent a few days recuperating from a nasty bug.
Congrats on the release of 0.6 stable. Coming back to my last complaint, calibre still has problems converting multi-page html books, like this one: http://www.freenetpages.co.uk/hp/alan.gauld/tutor.zip
I tried your suggestion of unzipping the book and pointing calibre to the contents file (in this case tutcont.htm), but this only generated new problems, without completely fixing the previous ones. So now:
1. The calibre generated zip file contains corrupted versions of some of the pages (why does it fiddle with them in the first place ?), e.g. tutseq1.htm
2. The order of the pages is still not quite right. Some sections still get mixed up, despite having pointed calibre to the contents page that has the correct order (e.g. the "getting started" and "simple sequences" chapters get reversed for some reason).
3. Despite pointing calibre right at the contents page, it does not recognize it as such and generates its own contents page, that, simply put, differs radically from the pre-existing (and obviously correct and desired) one.
-As a side note... what should the name of the table of contents page be for calibre to recognize it as such and not generate a new one?

kovidgoyal
07-31-2009, 04:23 PM
You need to open tickets for your issues.

GonzoGonzalez
07-31-2009, 04:59 PM
When converting from fb2 to lrf, is there a way to fine-tune styles? Is there a way to make sure each chapter begins on the new page? When I use fb2lrf, it property breaks on new chapter. Calibre conversion doesn't seem to do that...

kovidgoyal
07-31-2009, 05:05 PM
Works for me, but that's with the EPUB output. Try it with that.

sapient
07-31-2009, 05:10 PM
Erm... although your phrasing leads to different connotations... not MY issues... rather calibre's issues... 8-)
And I have no idea how to open tickets... only how to buy tickets at the local cinema... 8-P Not interested in learning either... I just thought to let you know about a bug I noticed. What you do about it is your problem... I have already converted the ebook to a format useful to me using isilo(x). Which, btw, is a useful, cross-platform and popular enough format to consider adding to calibre.

Valloric
08-01-2009, 07:56 AM
I'm a bit late to the party having just now realized the 0.6.0 branch got released and I can only say congratulations to Kovid and the other developers! This new release is very shiny. :)

johnwhelan
08-01-2009, 03:26 PM
Adding an option that accepts ISBN and downloads metadata is on the TODO list. For the moment, you have to use the edit metadata dialog to manually input ISBNs and download metadata.

Comment only for idiots such as myself who have difficulty remembering names having a list of titles in a single place that I have previously purchased would save me buying the same book three times. I have hard back copies stored differently to paperbacks and some books actually contain two titles by different authors. Add to which I have a list of books I've slung out because I didn't like them however others by the same author I enjoy means it makes it difficult for me to keep track sometimes.

Or basically it would add quite a bit of value given the cost of duplicate copies.

Cheerio John

jesscat
08-01-2009, 07:02 PM
When I add a new book, open Edit Meta Information, and then change the month in the Published field, after I click OK, the month is not being reflected correctly in the entry for the book in the main window - the month shown in the main window seems to be always one month behind. So if I change the published date to Mar 2008 in the Edit Meta Information dialogue, after I save, it shows as Feb 2008 in the main window. But it still shows as Mar 2008 if I open Edit Meta Information again. (And oddly, if I double click on the date in the main window entry and change it there, from then on the date in the main window entry matches the date in the Edit Meta Information dialogue, even if I edit it again using Edit Meta Information. But if I only ever use Edit Meta Information, the main window entry continues to be incorrect, no matter how many times I change it in Edit Meta Information.)

Anyone else experiencing this? I think this has only started happening for books I've added in 6.4 (though I'm not 100% certain).

JSWolf
08-03-2009, 11:51 AM
Trying to convert a Mobipocket format eBook to HTML in 0.6.4 blows up big time.

Parsing all content...
Parsing file 'Like_Warm_Su-Nekkid_Bottoms.html' as HTML
Stripping comments and meta tags from Like_Warm_Su-Nekkid_Bottoms.html
Failed to parse content in Like_Warm_Su-Nekkid_Bottoms.html
Spine item 'id1' not found
Traceback (most recent call last):
File "cli.py", line 254, in <module>
File "cli.py", line 246, in main
File "calibre\ebooks\conversion\plumber.pyo", line 654, in run
File "calibre\ebooks\conversion\plumber.pyo", line 758, in create_oebbook
File "calibre\ebooks\oeb\reader.pyo", line 72, in __call__
File "calibre\ebooks\oeb\reader.pyo", line 589, in _all_from_opf
File "calibre\ebooks\oeb\reader.pyo", line 289, in _spine_from_opf
calibre.ebooks.oeb.base.OEBError: Spine is empty

But using 0.5.14 works fine.

kovidgoyal
08-03-2009, 12:19 PM
Open a ticket and attach the file

starrigger
08-03-2009, 04:42 PM
I'm not sure if the following is a bug report or merely an observation:

When I used Calibre 6.4 to convert a .prc file to .mobi (for purposes of updating the metadata and cover), then renamed the resulting file back to .prc (because mobi reader on my old Pocket PC cannot read .mobi, but only .prc files), I got a file that froze the reader on my Pocket PC.

I realize that I'm using a legacy device, and I haven't a clue what the difference is between a .prc file and a .mobi file, so I merely offer the information in case it's useful or anyone else has a similar problem.

kovidgoyal
08-03-2009, 04:54 PM
In 0.6 calibre's MOBI output got a lot of work. For example, it now supports indexing so you can use the joystick to browse sections on the Kindle. Probably that indexing is causing the problem with your palm.

kiklop74
08-03-2009, 08:24 PM
I finally got some time to experiment with new calibre 0.6 and things still need work. For example EPUB with @font-face specification is incorrectly rendered on Sony reader. I see that recipe classes are changed too so some serious work will be needed to update everything.

As soon as I can I'll start working on this and hopefully with Kovid's help cleanup all of the issues thus giving back the users stabillity and quality of 0.5.1.4 version.

JSWolf
08-03-2009, 08:35 PM
I'm not sure if the following is a bug report or merely an observation:

When I used Calibre 6.4 to convert a .prc file to .mobi (for purposes of updating the metadata and cover), then renamed the resulting file back to .prc (because mobi reader on my old Pocket PC cannot read .mobi, but only .prc files), I got a file that froze the reader on my Pocket PC.

I realize that I'm using a legacy device, and I haven't a clue what the difference is between a .prc file and a .mobi file, so I merely offer the information in case it's useful or anyone else has a similar problem.
To update the metadata and cover, I suggest using mobi2mobi to do so. It does not change the content of the book at all.

gai-jin
08-03-2009, 09:39 PM
Kovid -- In a previous thread, you said that a search for "format:false" should show all books with no formats available. I've tried that in .64 and .65, but I get no results. Searching for other formats (such as "format:mobi") works as expected.

Any idea what I'm doing wrong?

Is there any info I can give you to help troubleshoot?

kovidgoyal
08-04-2009, 12:41 AM
If format:false is showing no books, then all your books have at least one available format.

gai-jin
08-04-2009, 06:55 AM
When I browse through the list of books, there are entries that show 'None' for formats. I'm sure these are likely books that were imported into calibre, but then the file was deleted from the library through windows explorer rather than from within calibre.

What would cause calibre to show 'None' for formats when I select a book, but still not list that book in a search for 'format:false' ?

itimpi
08-04-2009, 06:57 AM
If you delete books via Windows Explorer rather than via Calibre it could explain your symptoms. Calibre will be looking in the metadata.db file to see if it has specific formats - not directly at the hard disk itself.

You could use a tool like "Remove Empty Directories" (a useful piece of freeware) to scan for folders that are empty (except perhaps for the cover.jpg file). Just use the scan option and not do the actual directory remove unless you really want to.

gai-jin
08-04-2009, 07:57 AM
I can see how that could be an issue, but if that were the case, then wouldn't Calibre show the deleted formats still when I select a book? In these cases, I can select the book, choose edit metadata, and the 'formats' box is empty.

I didn't actually go through and manually delete these books with explorer, but rather used a dup finder app. (Essentially the same effect though.) Any files with matching md5 it deleted all but one of. Since I had imported from multiple ebook directories into calibre, there were a lot of duplicates.

kovidgoyal
08-04-2009, 11:36 AM
Deleting books directly from the file system is going to cause you problems.

gai-jin
08-04-2009, 05:37 PM
Deleting books directly from the file system is going to cause you problems.

Yeah, I got that some time ago. I was looking forward to the 'format:false' option as a quick and easy way to find all of the remnants of those books that were deleted directly, and remove them from calibre. Unfortunately, it seems that for some reason calibre knows the files are gone, but doesn't show them in format:false.

kovidgoyal
08-04-2009, 05:39 PM
Searching always queries the inmemory database, otherwise it would be too slow on large collections

gai-jin
08-04-2009, 05:59 PM
Searching always queries the inmemory database, otherwise it would be too slow on large collections

Is there a way to force Calibre to rescan all of the metadata and rebuild the in memory database?

kovidgoyal
08-04-2009, 06:05 PM
No there isn't

user_none
08-04-2009, 06:35 PM
Kovid -- In a previous thread, you said that a search for "format:false" should show all books with no formats available. I've tried that in .64 and .65, but I get no results. Searching for other formats (such as "format:mobi") works as expected.

Any idea what I'm doing wrong?

Is there any info I can give you to help troubleshoot?

format:false is working properly for me. Try adding an empty book (it's a sub option under add) and see if it filters with that one correctly.

gai-jin
08-04-2009, 07:14 PM
format:false is working properly for me. Try adding an empty book (it's a sub option under add) and see if it filters with that one correctly.

That does work, and I also tried deleting one format of a book that was only available in that one format, and the book does now show up in format false.

So right now, I've got a LOT of books that show no formats available when I am on the edit metadata screen, and also on the small details pane below the book list when I select a book. But when I search for format:false, None of those show up in the results. Clearly, the 'in memory' database is out of sync with whatever Calibre looks at to populate the details pane. How can I fix that?

Do I just need to uninstall calibre and re-install it? Or would it still see the old data files and end up with the same issue?

If I do re-install, is all the work I've done on correcting metadata for books going to be lost, or does calibre save the changes in the original ebook when I make changes?

Sydney's Mom
08-04-2009, 10:24 PM
For once, I hope I can help someone. I was trying to convert an epub book I had decrypted. I had used Calibre to convert such books to mobi format in the past. But this time I was getting an error message that it was an unknown format. I renamed the book "book.epub" (it had some extra stuff, book.xx.decrypted.epub),and it worked like a charm.

msr
08-04-2009, 10:49 PM
Noticed an odd alphabetization issue when ordering books by title (v0.6.5).
* Books that begin with "The " alphabetize by the second word (as they should).
* Books that begin with "Thexxx" (e.g., There, Theory, or Theme) alphabetize correctly by the first word, whatever it happens to be.
* Books that begin with "The Thexxx" alphabetize by the "xxx". The "The" is removed twice. For example, "The Theory of Atlantis" will alphabetize as "ory of Atlantis" rather than "Theory of Atlantis".

The same exact pattern/error occurs with titles beginning with "A Axxx" (which is improper English, but still) and with "An Anxxx".

msr
08-04-2009, 10:54 PM
I know this is not currently an option, but would it be possible to add the ability to export the meta-data list? Something simple like CSV or tab delimited would be fine. Even just author and title would be extremely useful.

kovidgoyal
08-04-2009, 11:09 PM
Noticed an odd alphabetization issue when ordering books by title (v0.6.5).
* Books that begin with "The " alphabetize by the second word (as they should).
* Books that begin with "Thexxx" (e.g., There, Theory, or Theme) alphabetize correctly by the first word, whatever it happens to be.
* Books that begin with "The Thexxx" alphabetize by the "xxx". The "The" is removed twice. For example, "The Theory of Atlantis" will alphabetize as "ory of Atlantis" rather than "Theory of Atlantis".

The same exact pattern/error occurs with titles beginning with "A Axxx" (which is improper English, but still) and with "An Anxxx".

Will be fixed in the next release. You can use the command

calibredb list

to generate a listing of entries in the database

slantybard
08-05-2009, 12:27 AM
Ticket opened: 3083:

When I generate an ePub file from txt documents that don't have a proper cover/title page, calibre now generates a xhtml file with the title (h1) and author (h2) and "produced by calibre" (h4). It actually looks nice :-) but the h1, h2 and h4 headings are not resized properly on the prs505 and they take up so much space that the title is often not even visible on the screen and goes beyond the edges. I tried remapping the font key to take care of this, but it seems that the font key mapping size is not applied to this xhtml.

ldolse
08-05-2009, 01:33 AM
So right now, I've got a LOT of books that show no formats available when I am on the edit metadata screen, and also on the small details pane below the book list when I select a book. But when I search for format:false, None of those show up in the results. Clearly, the 'in memory' database is out of sync with whatever Calibre looks at to populate the details pane. How can I fix that?

Do I just need to uninstall calibre and re-install it? Or would it still see the old data files and end up with the same issue?

If I do re-install, is all the work I've done on correcting metadata for books going to be lost, or does calibre save the changes in the original ebook when I make changes?

I noticed a bug during the .6 beta which I haven't had time to delve into in detail. Several of my books with no formats actually have formats in the actual book directory - use the 'Open Containing Folder' menu option to check this out. In my case these books also fail to match the format:false query. If you're seeing the same behavior as me then don't change the metadata for these books unless you have backups, as editing any of the data will delete the actual book Calibre doesn't see.

In my case I had no way to get anything to stick to these specific books, I could re-add formats, but they wouldn't save. I suspect completely deleting the book and re-adding will work. Since the query doesn't work I've resorted to clicking through the books in the list one-by-one to see which don't report having formats.

I took a glance at these books in a SQL database viewer. Nothing jumped out on the first check, but I'll look again.

Student1
08-05-2009, 02:22 PM
Hi Kovid,

hopefully this question hasn t been answered too many times already ;)! I'm still using 0.5.14 and was wondering if my current 40000+ database i have for it will survive the upgrade to 0.6.5 I m asking because it took me one month to insert all these books and would kill me to have to do it again if dbs are not compatible between versions :)!

anyway thanks for all these great calibre versions :)!

kovidgoyal
08-05-2009, 02:24 PM
It should :) That said, back it up before updating.

Student1
08-05-2009, 02:42 PM
It should :) That said, back it up before updating.

Thanks you are the greatest! Will do a backup for sure thanks :)!

user_none
08-06-2009, 07:39 AM
@ldolse, The available formats should be read from the metadata by the formts function in library.database2.

@gai-jin,
@ldolse, Can one of you create a bug for this and attach your metadata.db file?

ldolse
08-06-2009, 10:39 AM
I'll look at that code, though I'm probably not going to be much help for this. Note for these books it refuses to acknowledge any formats. They were originally put in the book directory by Calibre .5, so there's no issues with naming, etc there. Attempting to manually add a specific type of source file in the edit metadata dialog does nothing.

I'll go ahead and open a bug and attach my metadata.db.

edit:
bug is here: http://calibre.kovidgoyal.net/ticket/3092

pars_andy
08-08-2009, 07:35 AM
I'm having problems downloading the guardian news feed with the latest version. It gives me the following error.

Traceback (most recent call last):
File "worker.py", line 103, in <module>
File "worker.py", line 90, in main
File "calibre\gui2\convert\gui_conversion.pyo", line 17, in gui_convert
File "calibre\ebooks\conversion\plumber.pyo", line 657, in run
File "calibre\ebooks\conversion\plumber.pyo", line 761, in create_oebbook
File "calibre\ebooks\oeb\reader.pyo", line 72, in __call__
File "calibre\ebooks\oeb\reader.pyo", line 588, in _all_from_opf
File "calibre\ebooks\oeb\reader.pyo", line 243, in _manifest_from_opf
File "calibre\ebooks\oeb\reader.pyo", line 176, in _manifest_add_missing
File "calibre\ebooks\oeb\base.pyo", line 988, in fget
File "calibre\ebooks\oeb\base.pyo", line 917, in _parse_xhtml
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'



I didn't have any problems with previous versions of calibre.

jbambridge
08-08-2009, 10:26 AM
The Guardian feed is suffering from problems with empty <a></a> tags. Kovid hopes to fix this in the next version. In the meantime, adding:

remove_tags = [dict(name='a')]

to the recipe will avoid the problem, although I admit this is rather radical!

John

msr
08-08-2009, 09:12 PM
You can use the command

calibredb list

to generate a listing of entries in the database

Exactly what I wanted. Minor nitpick/bug. If you set the field separator to be something other than a space using the --separator option, it separates all of the fields perfectly fine *except* for the header line, for which it still uses spaces. Not a big deal to work around, but thought you should know.

icq70610
08-09-2009, 09:58 AM
Hi all, while 0.6 works good in most of the areas I have some trouble with working on EPUBS and most of the errors are look exactly the same, either converting HTML or fetching NEWS sources. Im using 0.6.5 Calibre

......
ECONOMIST DOWNLOAD
Traceback (most recent call last):
File "worker.py", line 103, in <module>
File "worker.py", line 90, in main
File "calibre\gui2\convert\gui_conversion.pyo", line 17, in gui_convert
File "calibre\ebooks\conversion\plumber.pyo", line 657, in run
File "calibre\ebooks\conversion\plumber.pyo", line 761, in create_oebbook
File "calibre\ebooks\oeb\reader.pyo", line 72, in __call__
File "calibre\ebooks\oeb\reader.pyo", line 588, in _all_from_opf
File "calibre\ebooks\oeb\reader.pyo", line 243, in _manifest_from_opf
File "calibre\ebooks\oeb\reader.pyo", line 176, in _manifest_add_missing
File "calibre\ebooks\oeb\base.pyo", line 988, in fget
File "calibre\ebooks\oeb\base.pyo", line 919, in _parse_xhtml



CONVERTING BOOK HTML
TypeError: unsupportedProperty: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [1:1: mso-spacerun]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [1:1: mso-spacerun]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [1:1: mso-spacerun]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [1:1: mso-spacerun]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [1:1: mso-spacerun]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [1:1: mso-spacerun]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:50: mso-ansi-language]
Property: Unknown Property name. [2:9: mso-pagination]
Property: Unknown Property name. [2:30: mso-layout-grid-align]
Property: Unknown Property name. [2:58: text-autospace]
Property: Unknown Property name. [1:59: mso-ansi-language]
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Property: Unknown Property name. [11:1: mso-bidi-font-family]
Property: Unknown Property name. [12:1: mso-fareast-font-family]
Property: Unknown Property name. [13:1: mso-layout-grid-align]
Property: Unknown Property name. [14:1: mso-pagination]
Property: Unknown Property name. [15:1: mso-style-parent]
Property: Unknown Property name. [16:1: text-autospace]
Property: Unknown Property name. [32:1: tab-interval]
Property: Unknown Property name. [34:1: text-justify-trim]
Property: Unknown Property name. [43:1: mso-spacerun]
Property: Unknown Property name. [49:1: mso-ansi-language]
Property: Unknown Property name. [73:1: mso-ansi-language]
Creating EPUB Output...
Looking for large trees in content/David%20Gibbins%20-%20%5bJack%20Howard%201%5d%20Atlantis2.xhtml...
Found large tree #0
Splitting...
Splitting...
Splitting...
Splitting...
Committed sub-tree #1 (213 KB)
Committed sub-tree #2 (174 KB)
Splitting...
Committed sub-tree #3 (168 KB)
Committed sub-tree #4 (165 KB)
Splitting...
Splitting...
Committed sub-tree #5 (175 KB)
Committed sub-tree #6 (182 KB)
Splitting...
Committed sub-tree #7 (219 KB)
Committed sub-tree #8 (181 KB)
Split into 8 parts
Traceback (most recent call last):
File "worker.py", line 103, in <module>
File "worker.py", line 90, in main
File "calibre\gui2\convert\gui_conversion.pyo", line 17, in gui_convert
File "calibre\ebooks\conversion\plumber.pyo", line 738, in run
File "calibre\ebooks\epub\output.pyo", line 158, in convert
File "calibre\ebooks\oeb\transforms\split.pyo", line 58, in __call__
File "calibre\ebooks\oeb\transforms\split.pyo", line 137, in fix_links
File "calibre\ebooks\oeb\base.pyo", line 178, in rewrite_links
File "calibre\ebooks\oeb\base.pyo", line 127, in iterlinks
File "lxml.etree.pyx", line 1924, in lxml.etree._Attrib.__iter__ (src/lxml/lxml.etree.c:19593)
File "apihelpers.pxi", line 472, in lxml.etree._collectAttributes (src/lxml/lxml.etree.c:32044)
File "apihelpers.pxi", line 1334, in lxml.etree._namespacedName (src/lxml/lxml.etree.c:38948)
File "apihelpers.pxi", line 1344, in lxml.etree._namespacedNameFromNsName (src/lxml/lxml.etree.c:39059)
File "encodings\utf_8.pyo", line 16, in decode
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3: invalid data operand type(s) for +=: 'NoneType' and 'str'

kovidgoyal
08-09-2009, 11:27 AM
The economist will be fixed in the next release. Open a ticket and attach your book.

Sonist
08-09-2009, 06:13 PM
Hm, after deleting all books from my Kindle DX, and trying to reupload them, in 6.5 running on a Mac latest OS X) after a while, I get an error about failure to communicate with my Kindle DX:

(5, 'Input/output error')

Traceback (most recent call last):
File "calibre/gui2/device.pyo", line 57, in run
File "calibre/gui2/device.pyo", line 220, in _upload_books
File "calibre/devices/usbms/driver.pyo", line 93, in upload_books
File "calibre/devices/usbms/device.pyo", line 738, in create_upload_path
File "os.pyo", line 150, in makedirs
File "os.pyo", line 157, in makedirs
OSError: [Errno 5] Input/output error: '/Volumes/Kindle/documents/Marshall, Logan'

Then Calibre shows the DX still empty, but when I restart Calibre, about 160 books have been uploaded, out of 233.

I tested uploading to my K2, and it's fine.

File is attached.

Weird....

Thanks.

Sonist
08-09-2009, 06:16 PM
Here is a thought:

Have you ever considered adding a Sync feature, so we can sync our devices with the library.

Then one wouldn't have to wonder if they remembered to upload Title X to their device Y....

kovidgoyal
08-09-2009, 06:58 PM
That error indicates a problem creating a directory on your Kindle. Could have been caused by a loose connection or errors on your Kindle flash drive. Doesn't look like a calibre bug.

Sonist
08-09-2009, 07:19 PM
That error indicates a problem creating a directory on your Kindle. Could have been caused by a loose connection or errors on your Kindle flash drive. Doesn't look like a calibre bug.

Hm, I reconnected, and it only does it with this file.

After I removed the file, it loaded everything fine.

I then went back and re-downloaded the PRC file from here, added the cover, then converted from PRC to MOBI (in Calibre).

When I try to load the newly converted MOBI, I still get the same error. Maybe it's the file, but then it loads on my K2.

Weird, weird....

kovidgoyal
08-09-2009, 08:00 PM
You get that error when you try to load just one file? Try changing the author name to test in calibre and then sending the file to the kindle

Sonist
08-09-2009, 09:28 PM
I am pretty sure it's the cover image.

But here is what I am getting now when I try to remove first image during the conversion from prc to mobi:

Convert book 1 of 1 (u'Myths and Legends of All Nations')
InputFormatPlugin: MOBI Input running on /Users/pnine/Desktop/Clibre Library/Marshall_ Logan/Myths and Legends of All Nations (363)/Myths and Legends of All Nations - Marshall_ Logan.prc
Unknown codepage 235802126. Assuming cp1252
Extracting text...
Adding anchors...
Extracting images...
Cleaning up HTML...
Parsing HTML...
Converting style information to CSS...
Creating OPF...
Parsing all content...
Parsing Authors_Myths%20and%20Legends%20of.html ...
Parsing styles.css ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 25 entries.
Removing first image images/00001.jpg
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating MOBI Output...
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "calibre/utils/ipc/worker.pyo", line 90, in main
File "calibre/gui2/convert/gui_conversion.pyo", line 17, in gui_convert
File "calibre/ebooks/conversion/plumber.pyo", line 738, in run
File "calibre/ebooks/mobi/output.pyo", line 164, in convert
File "calibre/ebooks/oeb/transforms/rasterize.pyo", line 51, in __call__
File "calibre/ebooks/oeb/transforms/rasterize.pyo", line 190, in rasterize_cover
KeyError: u'id3'

kovidgoyal
08-09-2009, 09:47 PM
You mean with the remove first image option?

Sonist
08-10-2009, 12:58 AM
Yes. I thing something may be screwed up with the file.

kovidgoyal
08-10-2009, 01:11 AM
remove first image works for me with the attached file

radamo
08-10-2009, 08:17 AM
Here is a thought:

Have you ever considered adding a Sync feature, so we can sync our devices with the library.

Then one wouldn't have to wonder if they remembered to upload Title X to their device Y....

I think that would be a great option.
RA

itimpi
08-10-2009, 09:36 AM
It would probably need to be compbined with some way of indicating what books from one's library one WANTS to be on the device. I suspect many people have more books than they can or want to store on their device.

FizzyWater
08-10-2009, 11:54 PM
It would probably need to be compbined with some way of indicating what books from one's library one WANTS to be on the device. I suspect many people have more books than they can or want to store on their device.

Definitely!

ctkierst
08-11-2009, 10:37 AM
Hi, I just downloaded calibre 0.6.6 for my Mac (Mac OS X 10.4.11, G3 iBook). The software hangs on the opening welcome wizard when it asks for the location of my ebooks i.e. I choose a folder, and the "Go Back" and "Continue" buttons remain greyed out. Any ideas?

kovidgoyal
08-11-2009, 12:47 PM
Hmm can you open Console.app and post any output you see there when it hangs.

ctkierst
08-11-2009, 01:15 PM
This is what I found from when I installed it yesterday, and tried running it again this morning:

Aug 10 15:21:16 caroline-kiersteads-ibook authexec: executing /Applications/calibre.app/Contents/MacOS/python
Creating link: /usr/bin/ebook-device -> /Applications/calibre.app/Contents/Resources/loaders/ebook-device
Creating link: /usr/bin/ebook-meta -> /Applications/calibre.app/Contents/Resources/loaders/ebook-meta
Creating link: /usr/bin/ebook-convert -> /Applications/calibre.app/Contents/Resources/loaders/ebook-convert
Creating link: /usr/bin/markdown-calibre -> /Applications/calibre.app/Contents/Resources/loaders/markdown-calibre
Creating link: /usr/bin/web2disk -> /Applications/calibre.app/Contents/Resources/loaders/web2disk
Creating link: /usr/bin/calibre-server -> /Applications/calibre.app/Contents/Resources/loaders/calibre-server
Creating link: /usr/bin/lrf2lrs -> /Applications/calibre.app/Contents/Resources/loaders/lrf2lrs
Creating link: /usr/bin/lrs2lrf -> /Applications/calibre.app/Contents/Resources/loaders/lrs2lrf
Creating link: /usr/bin/librarything -> /Applications/calibre.app/Contents/Resources/loaders/librarything
Creating link: /usr/bin/calibre-debug -> /Applications/calibre.app/Contents/Resources/loaders/calibre-debug
Creating link: /usr/bin/calibredb -> /Applications/calibre.app/Contents/Resources/loaders/calibredb
Creating link: /usr/bin/calibre-parallel -> /Applications/calibre.app/Contents/Resources/loaders/calibre-parallel
Creating link: /usr/bin/calibre-customize -> /Applications/calibre.app/Contents/Resources/loaders/calibre-customize
Creating link: /usr/bin/calibre-complete -> /Applications/calibre.app/Contents/Resources/loaders/calibre-complete
Creating link: /usr/bin/pdfmanipulate -> /Applications/calibre.app/Contents/Resources/loaders/pdfmanipulate
Creating link: /usr/bin/fetch-ebook-metadata -> /Applications/calibre.app/Contents/Resources/loaders/fetch-ebook-metadata
Creating link: /usr/bin/calibre-smtp -> /Applications/calibre.app/Contents/Resources/loaders/calibre-smtp
Creating link: /usr/bin/calibre -> /Applications/calibre.app/Contents/Resources/loaders/calibre
Creating link: /usr/bin/lrfviewer -> /Applications/calibre.app/Contents/Resources/loaders/lrfviewer
Creating link: /usr/bin/ebook-viewer -> /Applications/calibre.app/Contents/Resources/loaders/ebook-viewer
Aug 11 10:27:11 caroline-kiersteads-ibook mDNSResponder: Repeated transitions for interface en1 (129.97.136.233); delaying packets by 5 seconds

I'm not sure if this helps

cutterjohn42
08-11-2009, 01:29 PM
Just installed 0.6.6 under Ubuntu 9.04 x86-64 & noticed that the progress & runtime of recipe fetching is no longer displayed. Just the recipe "title" and the gear, check, or X icon.


NM, just went back and looked again and all the usual fields were back and displaying...

WTH?! They weren't there a minute ago...

kovidgoyal
08-11-2009, 01:48 PM
@ckierst: Hmm nothing useful there, can you also post a screenshot of the welcome wizard where it's stuck

spikebrennan
08-11-2009, 02:19 PM
Definitely!
I could see it as a "check the box" for each ebook.

Probably the best way to effect this would be to combine the views of the ebook library on the computer and the library on the reading device-- that way, when the user is viewing the list of books on the library there would be some indication with respect to each ebook of whether that ebook is or is not on the reading device (a green (+) contrasted with a red (-), for example). Next to that indicator for each ebook, there would be a checkbox where the user could indicate whether or not he wants that ebook to be on the reading device.

Thus, if the ebook is in the library but not on the device and the user wants the ebook to be copied to the device, the user checks the box.

If the ebook is in the library and on the device, then the checkbox is already shown as checked, and the user can uncheck the box to remove the ebook from the device. (If the box is checked and the user doesn't change that, then naturally the book would not be re-copied to the device.)

If the ebook is on the device but not in the desktop computer's library, then perhaps there can be an option to copy the ebook from the device back to the computer's library.

ctkierst
08-11-2009, 04:47 PM
@ckierst: Hmm nothing useful there, can you also post a screenshot of the welcome wizard where it's stuck


Ok, here's the window snapshot.

talaivan
08-11-2009, 06:15 PM
I have a SmartQ 7 and a Nokia N800. Calibre 6 doesn't recognize either -- there is no Device Interface Plugin for these standard Linux devices. Of course, once the device is mounted, files can be saved wherever one wishes -- but it doesn't save just one kind of file, but a whole bunch of different formats. Why not implement a way of saving just the chosen output format when you save to disk? Thanks. George

user_none
08-11-2009, 09:33 PM
I have a SmartQ 7 and a Nokia N800. Calibre 6 doesn't recognize either -- there is no Device Interface Plugin for these standard Linux devices. Of course, once the device is mounted, files can be saved wherever one wishes -- but it doesn't save just one kind of file, but a whole bunch of different formats. Why not implement a way of saving just the chosen output format when you save to disk? Thanks. George

Click the Down arrow next to (to the right) of save to disk. You can either save as your preferred format or select the format you would like to save as.

kovidgoyal
08-11-2009, 10:05 PM
Ok, here's the window snapshot.

Hmm odd, does the folder you've chosen exist?

ctkierst
08-12-2009, 08:52 AM
Hmm odd, does the folder you've chosen exist?

Yup, made sure to change it to an existing folder.

kovidgoyal
08-12-2009, 01:21 PM
OK try the following:

delete (if it exists) the folder /Users/ctkierst/Library/Preferences/calibre

and then try to run calibre

ctkierst
08-12-2009, 03:09 PM
OK try the following:

delete (if it exists) the folder /Users/ctkierst/Library/Preferences/calibre

and then try to run calibre

That did it. Thanks!

melanti
08-13-2009, 05:31 PM
Hopefully this is fixable since I like this program.

It started when I upgraded to version 0.6.6 for Linux. I don't recall specifically what version I had before this, but it'd been a few months since I updated versions.

My regular expression for parsing the author/title is:
(?P<author>[^-]+) - (?P<title>.+)

When I put in a file name and click the "test" button, it works fine. It detects the authors and titles as it should.
But... when I try to add books to the database, the Author shows up fine, but the title is the full file name minus the extension. In other words, it's the author - title.
I tried changing the expression and change it back, but it didn't help.

This worked just fine until I upgraded. I even tried readding things that worked before the upgrade, but it doesn't work now.
Any ideas?

If it makes any difference, my distribution is the Hardy heron, so it's not available in the repositories; I have to install it manually.
Thanks!

update: Just uninstalled/reinstalled, and got the same thing. Even leaving it at the default regular expression, it detects the title as the entire string.

gai-jin
08-13-2009, 07:21 PM
Kovid -- I see you added a database check in the new version, thank you! That is exactly what I needed to address my problem.

THANKS!

artbatista
08-13-2009, 09:47 PM
EDIT: I ran the html thru a cleaner and now it converts fine. Must have been some crud in there somewhere.

Art


Kovid, I seem to not be able to post new tickets. I get this when I log on:

http://tradewars.dnsdojo.org/images/error.PNG

I get this error converting a html file to epub:

ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (u"Kushiel's Scion")

Convert book 1 of 1 (u"Kushiel's Scion")
Processing archive...
InputFormatPlugin: HTML Input running on c:\users\arturo\appdata\local\temp\calibre_0.6.6_a nrplh_plumber\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing Jacqueline%20Carey%20-%20%5bKushiel%2004%5d%20-%20Kushiel%27s%20Scion%20%28v1.0%29.html ...
Parsing style.css ...
Property: Unknown Property name. [155:5: backround]
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Detected chapter: KUSHIEL'S SCION
Detected chapter: Jacqueline Carey
Detected chapter: Contents
Detected chapter:
Detected chapter:
Detected chapter: DRAMATIS PERSONAE
Detected chapter:
Detected chapter: Prologue
Detected chapter: Chapter One
Detected chapter: Chapter Two
Detected chapter: Chapter Three
Detected chapter: Chapter Four
Detected chapter: Chapter Five
Detected chapter: Chapter Six
Detected chapter: Chapter Seven
Detected chapter: Chapter Eight
Detected chapter: Chapter Nine
Detected chapter: Chapter Ten
Detected chapter: Chapter Eleven
Detected chapter: Chapter Twelve
Detected chapter: Chapter Thirteen
Detected chapter: Chapter Fourteen
Detected chapter: Chapter Fifteen
Detected chapter: Chapter Sixteen
Detected chapter: Chapter Seventeen
Detected chapter: Chapter Eighteen
Detected chapter: Chapter Nineteen
Detected chapter: Chapter Twenty
Detected chapter: Chapter Twenty-One
Detected chapter: Chapter Twenty-Two
Detected chapter: Chapter Twenty-Three
Detected chapter: Chapter Twenty-Four
Detected chapter: Chapter Twenty-Five
Detected chapter: Chapter Twenty-Six
Detected chapter: Chapter Twenty-Seven
Detected chapter: Chapter Twenty-Eight
Detected chapter: Chapter Twenty-Nine
Detected chapter: Chapter Thirty
Detected chapter: Chapter Thirty-One
Detected chapter: Chapter Thirty-Two
Detected chapter: Chapter Thirty-Three
Detected chapter: Chapter Thirty-Four
Detected chapter: Chapter Thirty-Five
Detected chapter: Chapter Thirty-Six
Detected chapter: Chapter Thirty-Seven
Detected chapter: Chapter Thirty-Eight
Detected chapter: Chapter Thirty-Nine
Detected chapter: Chapter Forty
Detected chapter: Chapter Forty-One
Detected chapter: Chapter Forty-Two
Detected chapter: Chapter Forty-Three
Detected chapter: Chapter Forty-Four
Detected chapter: Chapter Forty-Five
Detected chapter: Chapter Forty-Six
Detected chapter: Chapter Forty-Seven
Detected chapter: Chapter Forty-Eight
Detected chapter: Chapter Forty-Nine
Detected chapter: Chapter Fifty
Detected chapter: Chapter Fifty-One
Detected chapter: Chapter Fifty-Two
Detected chapter: Chapter Fifty-Three
Detected chapter: Chapter Fifty-Four
Detected chapter: Chapter Fifty-Five
Detected chapter: Chapter Fifty-Six
Detected chapter: Chapter Fifty-Seven
Detected chapter: Chapter Fifty-Eight
Detected chapter: Chapter Fifty-Nine
Detected chapter: Chapter Sixty
Detected chapter: Chapter Sixty-One
Detected chapter: Chapter Sixty-Two
Detected chapter: Chapter Sixty-Three
Detected chapter: Chapter Sixty-Four
Detected chapter: Chapter Sixty-Five
Detected chapter: Chapter Sixty-Six
Detected chapter: Chapter Sixty-Seven
Detected chapter: Chapter Sixty-Eight
Detected chapter: Chapter Sixty-Nine
Detected chapter: Chapter Seventy
Detected chapter: Chapter Seventy-One
Auto generated TOC with 79 entries.
Flattening CSS and remapping font sizes...
Traceback (most recent call last):
File "worker.py", line 103, in <module>
File "worker.py", line 90, in main
File "calibre\gui2\convert\gui_conversion.pyo", line 17, in gui_convert
File "calibre\ebooks\conversion\plumber.pyo", line 719, in run
File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 123, in __call__
File "calibre\ebooks\oeb\transforms\flatcss.pyo", line 167, in baseline_spine
ValueError: max() arg is an empty sequence

Here is the html book in question:

http://tradewars.dnsdojo.org/files/Kushiel's Scion - Jacqueline Carey.zip

Thank you for your help.

Art

artbatista
08-13-2009, 10:03 PM
Got an email to verify my email. I can enter new tickets now.

Thank you.

Art

titanliu
08-14-2009, 01:16 AM
ths, I had download the latest vision, but not good for Chinese Language.

Yosa
08-14-2009, 05:20 AM
When I edit metadata and press the button at the bottom to "Fetch Metadata from Server" the new box that opens up and says "No Metadata found, try adjusting the title and author or the ISBN key." now only has a "copy" button and no "cancel" or anything so it hangs on that dialog and you're stuck until you force quit the program.

Running under Mac OSX

itimpi
08-14-2009, 07:07 AM
Are you sure there is not a close-dialog checkbox at the top? There is on Windows so you can close the dialog that way. However I agree that an OK (or Cancel) button should be put back to give a tidy way close it.

cutterjohn42
08-14-2009, 09:08 AM
Ok Kovid, I've got a real bug this time, but I don't have time to double check it:
Ubuntu 9.04 x86-64 Calibre 0.6.6
Could not unmount Sony Reader Main Memory from desktop, complained about root privileges.
(Gnome desktop standard install)

Unmounting memory card from desktop worked OK though. (I did that one first. Main memory still showed a smounted in a CLI check, memory card unmounted)

Manually unmounted by CLI.

Might be a permissions problem with the mount helper...

kovidgoyal
08-14-2009, 11:58 AM
When I edit metadata and press the button at the bottom to "Fetch Metadata from Server" the new box that opens up and says "No Metadata found, try adjusting the title and author or the ISBN key." now only has a "copy" button and no "cancel" or anything so it hangs on that dialog and you're stuck until you force quit the program.

Running under Mac OSX

Known bug, will be fixed in next release.

kovidgoyal
08-14-2009, 11:58 AM
Post the result of

ls -l calibre-mount-helper

cutterjohn42
08-14-2009, 12:13 PM
-rws--s--x 1 root root 12158 2009-08-10 21:22 /opt/calibre/calibre-mount-helperHmm looks OK(I think). Let me try mounting the the PRS505(what I have) again and I'll update this post.

This time:
Dialog
Cannot unmount the volume 'Sony Reader Storage Card'.
details
umount: /dev/sdd1: not mounted
(First time complained about mtab entry)

a second dialog pops up:
Unable to unmount Sony Reader Storage Card

DBus error org.freedesktop.DBus.Error.NoReply: Did not receive reply.
Possible causes include: the remote application did not send a reply,
the message bus security policy blocked the reply, the reply
timeout expired, or the network connection was broken.

mtab
/dev/sda7 / ext3 rw,relatime,errors=remount-ro,commit=600 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,nosuid,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0

mount
/dev/sda7 on / type ext3 (rw,relatime,errors=remount-ro,commit=600)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)

I've got an old Sony Main memory directory in media which wasn't removed before(have to clean that up), and a new one with an appended <space> and (1)

Trying to un mount main memory dialog:
Unable to unmount Sony Reader Main Memory (1)
umount: /media/Sony Reader Main Memory (1) is not mounted (according to mtab)

ls from CLI shows contents of both, so they're mounted.

Interesting:
/proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,mode=755 0 0
/dev/disk/by-uuid/d08275b0-f5c1-4e7f-b128-caa93354ef3f / ext3 rw,relatime,errors=remount-ro,commit=600,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=755 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
varrun /var/run tmpfs rw,nosuid,mode=755 0 0
varlock /var/lock tmpfs rw,nosuid,nodev,noexec 0 0
tmpfs /lib/modules/2.6.28-14-generic/volatile tmpfs rw,mode=755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,gid=5,mode=620 0 0
/dev/sda4 /media/New_Volume fuseblk rw,nosuid,nodev,user_id=0,group_id=0,allow_other,b lksize=4096 0 0
/dev/sda2 /media/windows fuseblk rw,nosuid,nodev,user_id=0,group_id=0,allow_other,b lksize=4096 0 0
/dev/sda5 /media/misc2 fuseblk rw,nosuid,nodev,user_id=0,group_id=0,allow_other,b lksize=4096 0 0
securityfs /sys/kernel/security securityfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec 0 0
gvfs-fuse-daemon /home/moylan/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user_id=1000,group_id=1000 0 0
/dev/sdd1 /media/Sony\040Reader\040Storage\040Card vfat rw,nosuid,nodev,uid=1000,fmask=0077,dmask=0077,cod epage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,flush 0 0
/dev/sdb /media/Sony\040Reader\040Main\040Memory\040(1) vfat rw,sync,nosuid,nodev,noexec,uid=1000,gid=1000,fmas k=0177,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,quiet,utf8 0 0

So it looks like /etc/mtab is NOT being properly updated now, typo? Or actually it looks like fuse doesn't update mtab either, so maybe you're relying on mtab when it appears that /proc/mount should be the source?

kovidgoyal
08-14-2009, 12:36 PM
calibre's mount helper simply calls mount to do the mounting. One think to check is if the device is being mounted by calibre or bysomething else on your system?

Dont start claibre and plugin the deivce is it automounted? In which case whatever is doing the automounting is causing the problem.

cutterjohn42
08-14-2009, 12:47 PM
Yes. It's always been automounted for me, and worked fine that way up to the 0.6.6 release.

I always plug it in before starting calibre, and the just unmount it from the desktop(after quitting calibre). I never use the unmount option inside of calibre, which is new for 0.6.x series I think anyways.

I'd prefer to keep the auto-mounting as shipped with Ubuntu. No idea what they do now as I haven't bothered digging into those details for years since most linux distros appear to be able to manage mounting fairly well nowadays... (although when installing 8.10 on this notebook I had to dredge up some rusty old skills as I had to use the alternate text installer since the video drivers didn't work. I thought that I had left those days behind forever... at least I didn't have to bootstrap gcc and build X...)


Started digging a little, dmesg turns up
[132764.420800] usb 2-4: new high speed USB device using ehci_hcd and address 3
[132764.553933] usb 2-4: configuration #1 chosen from 2 choices
[132764.565342] scsi7 : SCSI emulation for USB Mass Storage devices
[132764.566083] usb-storage: device found at 3
[132764.566085] usb-storage: waiting for device to settle before scanning
[132769.564466] usb-storage: device scan complete
[132769.565064] scsi 7:0:0:0: Direct-Access Sony PRS-505/UC 1000 PQ: 0 ANSI: 2
[132769.565505] scsi 7:0:0:1: Direct-Access Sony PRS-505/UC:MS 1000 PQ: 0 ANSI: 2
[132769.566689] scsi 7:0:0:2: Direct-Access Sony PRS-505/UC:SD 1000 PQ: 0 ANSI: 2
[132769.577360] sd 7:0:0:0: [sdb] 430848 512-byte hardware sectors: (220 MB/210 MiB)
[132769.578106] sd 7:0:0:0: [sdb] Write Protect is off
[132769.578108] sd 7:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[132769.578110] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[132769.579731] sd 7:0:0:0: [sdb] 430848 512-byte hardware sectors: (220 MB/210 MiB)
[132769.580480] sd 7:0:0:0: [sdb] Write Protect is off
[132769.580481] sd 7:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[132769.580483] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[132769.580485] sdb:
[132769.588982] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[132769.589046] sd 7:0:0:0: Attached scsi generic sg2 type 0
[132769.591316] sd 7:0:0:1: [sdc] Attached SCSI removable disk
[132769.591368] sd 7:0:0:1: Attached scsi generic sg3 type 0
[132769.594869] sd 7:0:0:2: [sdd] 249344 512-byte hardware sectors: (127 MB/121 MiB)
[132769.687881] sd 7:0:0:2: [sdd] Write Protect is off
[132769.687885] sd 7:0:0:2: [sdd] Mode Sense: 0f 00 00 00
[132769.687887] sd 7:0:0:2: [sdd] Assuming drive cache: write through
[132769.716237] sd 7:0:0:2: [sdd] 249344 512-byte hardware sectors: (127 MB/121 MiB)
[132769.807869] sd 7:0:0:2: [sdd] Write Protect is off
[132769.807871] sd 7:0:0:2: [sdd] Mode Sense: 0f 00 00 00
[132769.807873] sd 7:0:0:2: [sdd] Assuming drive cache: write through
[132769.807878] sdd: sdd1
[132769.814784] sd 7:0:0:2: [sdd] Attached SCSI removable disk
[132769.814845] sd 7:0:0:2: Attached scsi generic sg4 type 0which would be the automounting, still looking around to see what they're actually doing though. If it's a userspace daemon, kernel module, or some sort of combination of the two.

kovidgoyal
08-14-2009, 12:52 PM
I suggest you continue to use it that way then. Don't use the eject functionality in calibre.

On linux setting up automounting is often difficult for users, so I've decided to provide this facility in calibre (it should really be handled at the OS, not the application level). Because of the large variability on existing automount solutions/kernels, it's very hard to come up with a system that will work for everybody, so if you have a system that works, stick to it.

EDIT: I should also say that whatever automounting system you're using is broken if it is not creating entries in mtab

cutterjohn42
08-14-2009, 01:14 PM
Thanks Kovid, might want to make the mount helper optional maybe by a text config file (or settings entry in the GUI) for now.

So far I've found the obvious, usb_storage kernel module, but am still looking for the details of how they do the automounting. The Ubuntu forums are a mess to search as they are so highly trafficked, may just risk annoying someone and see if someone in IRC know much about the desktop architecture. I hope that this doesn't turn into a day(s) wasting crusade though... I just get sidetracked into these things far too easily, but at leats they don't happen as often as they used to...

myle00
08-15-2009, 12:35 AM
I have been using ebook-meta for the first time now and I seem to have run into problems. I tried changing metadata on pdf and pdb, here is the result.
C:\Users\Matthew Einhorn>ebook-meta "C:\testing.pdf" -t "NewTesting"
Original metadata::
Title : TestingTitile
Author(s) : Matt
Failed to set metadata: took too long

Changed metadata::
Title : TestingTitile
Author(s) : Matt

C:\Users\Matthew Einhorn>ebook-meta "C:\testing.pdf" -a "NewMatt"
Original metadata::
Title : TestingTitile
Author(s) : Matt
Failed to set metadata: took too long

Changed metadata::
Title : TestingTitile
Author(s) : Matt


C:\Users\Matthew Einhorn>ebook-meta "C:\tester.pdb" -t "NewTester"
Original metadata::
Title : NewTitle
Author(s) : Unknown

Changed metadata::
Title : NewTester
Author(s) : Unknown

C:\Users\Matthew Einhorn>ebook-meta "C:\tester.pdb" -a "NewAuthor"
Original metadata::
Title : NewTester
Author(s) : Unknown

Changed metadata::
Title : NewTester
Author(s) : Unknown



pdf metadata couldn't be set, while in pdb only title but not author can be set.

Dunno if this is an addressed issue or not :chinscratch: I did make sure that set metadata is checked and enabled all the metadata plugins. I'm on 0.6.6

Thanks,
Matt

kovidgoyal
08-15-2009, 12:46 AM
PDF metadata setting is dicey. To set PDF metadata, basically the whole PDF has to be re-created. This process often fails. Open bug for the PDB metadata

myle00
08-15-2009, 01:40 AM
Opened http://calibre.kovidgoyal.net/ticket/3158

komugi
08-15-2009, 02:15 AM
My PRS-700 isn't getting detected in 0.6.7

hashmark
08-15-2009, 03:30 AM
My PRS-700 isn't getting detected in 0.6.7

Me too. :(

Elnino
08-15-2009, 04:32 AM
My PRS-700 isn't getting detected in 0.6.7

I just upgraded to 0.6.7 and my PRS-505 is no longer being detected.

This is the debug file:

USB devices on system: [u'usb\\root_hub&vid10de&pid005a&rev00a2', u'usb\\root_hub&vid1033&pid0035&rev0041', u'usb\\root_hub&vid1033&pid0035&rev0041', u'usb\\root_hub20&vid10de&pid005b&rev00a3', u'usb\\root_hub20&vid1033&pid00e0&rev0002', u'usb\\vid_046d&pid_0b02&rev_4007', u'usb\\vid_046d&pid_c709&rev_4007', u'usb\\vid_046d&pid_c70a&rev_4007', u'usb\\vid_046d&pid_c70e&rev_4007', u'usb\\vid_054c&pid_031e&rev_0229', u'usb\\vid_05ac&pid_1294&rev_0001', u'usb\\vid_05e3&pid_0608&rev_0702', u'usb\\vid_05e3&pid_0608&rev_0702', u'usb\\vid_067b&pid_2303&rev_0300', u'usb\\vid_1058&pid_1100&rev_0165', u'usb\\vid_413c&pid_3016&rev_0009']
Drives detected:
(ID, Partitions, Drive letter)
('IDE\\DISKMAXTOR_6B300R0_________________________ _BAH41B10\\364247304251483420202020202020202020202 0', 0, u'C:\\')
('IDE\\DISKMAXTOR_6B300R0_________________________ _BAH41B10\\364247305756484B20202020202020202020202 0', 1, u'D:\\')
('SCSI\\DISK&VEN_WDC_WD50&PROD_00AAKS-00TMA0&REV_12.0\\5&19C77684&0&200', 2, u'M:\\')
('USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/UC&REV_1000\\0800461000430CF9&0', 4, u'L:\\')
('USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/UC:MS&REV_1000\\0800461000430CF9&1', 'No mount points found')
('USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/UC:SD&REV_1000\\0800461000430CF9&2', 'No mount points found')
('USBSTOR\\DISK&VEN_WD&PROD_10EACS_EXTERNAL&REV_1.65\\57442D574341534A30363131373934&0', 3, u'G:\\')
Looking for BEBOOK
Looking for BEBOOK_MINI
Looking for BLACKBERRY
Looking for CYBOOKG3
Looking for EB600
Looking for ILIAD
Looking for IREXDR1000
Looking for JETBOOK
Looking for KINDLE
Looking for KINDLE2
Looking for KINDLE_DX
Looking for PRS500
Looking for PRS505
Looking for PRS700
Looking for ANDROID
Looking for CYBOOK_OPUS
Looking for COOL_ER
Device possibly connected: <calibre.devices.prs505.driver.PRS505 object at 0x02C2B730>
Trying to open device... failed
Opening of the following devices failed
<calibre.devices.prs505.driver.PRS505 object at 0x02C2B730>
Traceback (most recent call last):
File "debug.py", line 130, in debug_device_driver
File "calibre\devices\prs505\driver.pyo", line 57, in open
File "calibre\devices\usbms\device.pyo", line 564, in open
File "calibre\devices\usbms\device.pyo", line 271, in open_windows
DeviceError: Failed to find the drive corresponding to the main memory

niche99
08-15-2009, 06:16 AM
Same here. I just upgraded to 0.6.7 and my PRS-505 is no longer being detected. Moving back to 0.6.6.

This is the debug file:

USB devices on system: [u'usb\\root_hub&vid8086&pid2835&rev0003', u'usb\\root_hub&vid8086&pid2830&rev0003', u'usb\\root_hub&vid8086&pid2834&rev0003', u'usb\\root_hub&vid8086&pid2831&rev0003', u'usb\\root_hub&vid8086&pid2832&rev0003', u'usb\\root_hub20&vid8086&pid2836&rev0003', u'usb\\root_hub20&vid8086&pid283a&rev0003', u'usb\\vid_045e&pid_0033&rev_0051', u'usb\\vid_046d&pid_c00e&rev_1110', u'usb\\vid_0483&pid_2016&rev_0001', u'usb\\vid_050d&pid_0234&rev_0000', u'usb\\vid_054c&pid_031e&rev_0229', u'usb\\vid_0c45&pid_63e0&rev_8304', u'usb\\vid_0c45&pid_63e0&rev_8304&mi_00', u'usb\\vid_0d49&pid_7410&rev_0122', u'usb\\vid_0d49&pid_7410&rev_0122', u'usb\\vid_0d49&pid_7450&rev_0122']
Drives detected:
(ID, Partitions, Drive letter)
('IDE\\DISKWDC_WD2500BEVS-75UST0___________________01.01A01\\4&159EB013&0&0.0.0', 0, u'B:\\')
('USBSTOR\\DISK&VEN_MAXTOR&PROD_BASICS_DESKTOP&REV_0122\\2HBEQ7EE____&0', 3, u'G:\\')
('USBSTOR\\DISK&VEN_MAXTOR&PROD_BASICS_DESKTOP&REV_0122\\2HBEXDRS____&0', 2, u'I:\\')
('USBSTOR\\DISK&VEN_MAXTOR&PROD_BASICS_PORTABLE&REV_0122\\2HB1C453____&0', 1, u'J:\\')
('USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/CE&REV_1000\\0800461000A2E5F6&0', 4, u'K:\\')
('USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/CE:MS&REV_1000\\0800461000A2E5F6&1', 'No mount points found')
('USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/CE:SD&REV_1000\\0800461000A2E5F6&2', 'No mount points found')
Looking for BEBOOK
Looking for BEBOOK_MINI
Looking for BLACKBERRY
Looking for CYBOOKG3
Looking for EB600
Looking for ILIAD
Looking for IREXDR1000
Looking for JETBOOK
Looking for KINDLE
Looking for KINDLE2
Looking for KINDLE_DX
Looking for PRS500
Looking for PRS505
Looking for PRS700
Looking for ANDROID
Looking for CYBOOK_OPUS
Looking for COOL_ER
Device possibly connected: <calibre.devices.prs505.driver.PRS505 object at 0x043576F0>
Trying to open device... failed
Opening of the following devices failed
<calibre.devices.prs505.driver.PRS505 object at 0x043576F0>
Traceback (most recent call last):
File "debug.py", line 130, in debug_device_driver
File "calibre\devices\prs505\driver.pyo", line 57, in open
File "calibre\devices\usbms\device.pyo", line 564, in open
File "calibre\devices\usbms\device.pyo", line 271, in open_windows
DeviceError: Failed to find the drive corresponding to the main memory

pars_andy
08-15-2009, 06:53 AM
Same here.....no 505 detection. Can we still get 6.6 anywhere?

JSWolf
08-15-2009, 07:03 AM
Here is Calibre 0.6.6 in split RAR format.

pars_andy
08-15-2009, 08:39 AM
Many thanks. :)

kovidgoyal
08-15-2009, 12:40 PM
Uploaded a fixed 0.6.7 windows build, re-download and you should be fine

Elnino
08-15-2009, 01:11 PM
Uploaded a fixed 0.6.7 windows build, re-download and you should be fine

Thanks mate. It is working perfectly now :)

daedalus13
08-15-2009, 04:43 PM
I am trying to open an ereader pdb file on eReader on my blackberry storm.

I tried converting an html file to eReader .pbd format.

It looked like the conversion went well, however, when I tried to open the pdb in ereader, I get a screen that says:

Unlock
Purchaser Name:
Unlock Code (credit card number):


When I click on "unlock", I get the following message:
Unlocking Failed:Unrecognized eBook file format. Version 2 is not supported.


Any idea how to convert to an ebook that eReader will read?

user_none
08-15-2009, 05:34 PM
I am trying to open an ereader pdb file on eReader on my blackberry storm.

I tried converting an html file to eReader .pbd format.

It looked like the conversion went well, however, when I tried to open the pdb in ereader, I get a screen that says:

Unlock
Purchaser Name:
Unlock Code (credit card number):


When I click on "unlock", I get the following message:
Unlocking Failed:Unrecognized eBook file format. Version 2 is not supported.


Any idea how to convert to an ebook that eReader will read?

Very strange. eReader output produces Version 10 files... Can you send me the file, john at nachtimwald.com, so I can take a look at it?

stilliremain
08-17-2009, 08:57 AM
And now my 505 isn't being detected with 0.6.7. :(

kovidgoyal
08-17-2009, 10:46 AM
And now my 505 isn't being detected with 0.6.7. :(

Post the output of running

calibre-debug -d

in a terminal with your 505 attached

stilliremain
08-17-2009, 11:07 AM
USB devices on system: [(7531, 1, 518), (7531, 1, 518), (7531, 2, 518), (1118, 149, 1060), (7531, 1, 518), (7531, 1, 518), (1060, 8744, 1092), (1060, 9730, 0), (1356, 798, 553), (1060, 9474, 1), (7531, 2, 518), (7531, 1, 518), (16700, 8208, 512), (16700, 4099, 512), (7531, 1, 518)]
Looking for BEBOOK
Looking for BEBOOK_MINI
Looking for BLACKBERRY
Looking for CYBOOKG3
Looking for EB600
Looking for ILIAD
Looking for IREXDR1000
Looking for JETBOOK
Looking for KINDLE
Looking for KINDLE2
Looking for KINDLE_DX
Looking for PRS500
Looking for PRS505
Looking for PRS700
Looking for ANDROID
Looking for CYBOOK_OPUS
Looking for COOL_ER
Device possibly connected: <calibre.devices.prs505.driver.PRS505 object at 0xa2df40c>
Trying to open device... failed
Opening of the following devices failed
<calibre.devices.prs505.driver.PRS505 object at 0xa2df40c>
Traceback (most recent call last):
File "/home/kovid/work/calibre/src/calibre/debug.py", line 130, in debug_device_driver
File "/home/kovid/work/calibre/src/calibre/devices/prs505/driver.py", line 57, in open
File "/home/kovid/work/calibre/src/calibre/devices/usbms/device.py", line 558, in open
File "/home/kovid/work/calibre/src/calibre/devices/usbms/device.py", line 528, in open_linux
DeviceError: Unable to detect the PRS505 disk drive.

I gather from the previous comments that I may need a kernel upgrade. IMO it would be great if I could mount it manually and just specify the path in calibre.

kovidgoyal
08-17-2009, 11:30 AM
Yes, you need a kernel upgrade.

voda
08-19-2009, 07:29 AM
Adobe digital Editions doesn't show the cover of epub files I created using calibre. Is this a known issue, or is it a bug of Adobe? It's not that I use Adobe, but a client of mine does. It works in the calibre viewer.

Another question. Is there a way to create directories in the epub file? It looks a little bit messy to me.

kovidgoyal
08-19-2009, 11:10 AM
EPUB files have no cover, in EPUB the first page is the cover. Are you saying that the contents of the frist page are not shown?

No there's no way to create directories.

myle00
08-20-2009, 03:01 PM
I think I have seen this in some thread but I cannot seem to find it. When adding books calibre crashes. I'm adding about 500 books and now for the third time calibre crashes in the midddle. After each crash, I end up with about 50 books added and one book - probably the last book added, is only a record. I.e. it doesn't contain the book file, but just the calibre entry for the book. I'm on .6.7 and I disabled the read metadata option.
On the last two times, I ran it through calibre-debug -g and here is the last log attached. It basically doesn't show a thing about the crash. Though I'm wondering why it says
..................
..................
Job: 15 Read metadata (13 of 17) finished
Read metadata (13 of 17)
..................
..................
even though I unchecked to read metadata. I'm going to try again with the metadata plugins themselves disabled. I'm adding pdf and chm files.
Thanks,
M

myle00
08-20-2009, 04:26 PM
I'm pretty sure now that it was the metadata reading that crashed calibre, even though I unchecked "read metadata". I'm adding the books again with the matadata plugins themselves disabled and so far it's added about 80 books without crashing.

Edit: Oh well, it crashed after adding 220 books...

GonzoGonzalez
08-21-2009, 08:58 AM
First and foremost- thanks for this great program and for making it better and better! Pretty soon it'll overtake all the high-priced book-management systems in both functionality and popularity! :)

Couple of issues still standing:

1. If the author name is long, or there is a lot of authors listed for a book, i.e. author name string exceeds certain length- then you get communication error while trying to send to PRS-505 device:

(2, 'No such file or directory')

Traceback (most recent call last):
File "calibre\gui2\device.pyo", line 57, in run
File "calibre\gui2\device.pyo", line 220, in _upload_books
File "calibre\devices\prs505\driver.pyo", line 125, in upload_books
File "calibre\devices\usbms\cli.pyo", line 53, in put_file
IOError: [Errno 2] No such file or directory: u'L:\\database\\media\\books\\Alieksandr Bieliaiev & Anatolii Biezughlov & Alieksandr Abramov & Alieksandr Kazantsiev & Nikolai Samvielian & Ia. Zimin & Ieriemiei Parnov & Vladimir Gakov & Rei Bredbier\\M\\Mir prikliuchienii, 1983 - Alieksandr Bieliaiev & Anatolii Biezughlov & Alieksandr Abramov & Alieksandr Kazantsiev & Nikolai Samvielian & Ia. Zimin & Ieriemiei Parnov & Vladimir Gakov & Rei Bredbieri & .lrf'



Seems like the path name is too long for PRS-505 to handle. Must be truncated to a certain value to succeed.

2. When converting FB2 to LRF, there is no option to insert line breaks before each chapter. This REALLY screws up the book formatting, sometimes even splitting chapter headings across pages. I believe this to be a VERY important issue to fix. All in all, I think there should be some sort of style sheet for conversion from FB2, which could be user modifiable.

Thanks a lot and keep up the good work!

Michael

kovidgoyal
08-21-2009, 10:17 AM
Long names should be handled correctly in the next release. Since calibre inserts page breaks before chapter headings,I'm not sure what you mean about FB2 conversion.

GonzoGonzalez
08-21-2009, 05:47 PM
Long names should be handled correctly in the next release. Since calibre inserts page breaks before chapter headings,I'm not sure what you mean about FB2 conversion.

Calibre doen't seem to insert page breaks correctly in case of FB2. In FB2 format (which is very similar to HTML), there is a "<section>" tag that signifies beginning of a new chapter. Calibre seems to completely ignore these and no pagebreaks are inserted.

How does conversion if Calibre actually happen? Does it convert to HTML first, then apply XPath expressions to put pagebreaks, then save as LRF? If yes, how can I view this intermediate format? Should I read up on this somewhere, where it is already explained?

P.S.: FB2 format doesn't contain any styles information- it is all decided by FB2 viewer. Is there a way to modify styles used by Calibre for FB2 conversion?

kovidgoyal
08-21-2009, 06:36 PM
calibre inserts page breaks for FB2 just fine for me. Make sure you haven't overriden the page break option in your conversion settings.

GonzoGonzalez
08-21-2009, 11:17 PM
calibre inserts page breaks for FB2 just fine for me. Make sure you haven't overriden the page break option in your conversion settings.

Here is a screenshot of my settings:

http://lh3.ggpht.com/_9laHpGy-D5k/So9i4_3MfKI/AAAAAAAAEcA/CBwbgNWxn-Y/s720/Preferences%208212009%20111508%20PM.jpg

Is something wrong? I left all the defaults on. Calibre DOESN'T insert page breaks at <section> tag of FB2 for me... What could be the difference? Thanks.

kovidgoyal
08-21-2009, 11:23 PM
Change Insert page breaks before to //*[name()='h1' or name()='h2']

GonzoGonzalez
08-21-2009, 11:32 PM
Change Insert page breaks before to //*[name()='h1' or name()='h2']

I tried. The weird thing is that when I click OK to save settings- it doesn't remember the string! When I open settings again, there is only that "/" single slash in the field "Insert Page Breaks Before". It doesn't save the value for some reason.

kovidgoyal
08-21-2009, 11:35 PM
When you are re-converting a previously converted file, calibre will use the settings from the previous conversion over the defaults, so you have to change it in the conversion settings for that book.

GonzoGonzalez
08-22-2009, 12:01 AM
That worked, thanks!

GonzoGonzalez
08-23-2009, 01:10 AM
(2, 'No such file or directory')

Traceback (most recent call last):
File "calibre\gui2\device.pyo", line 57, in run
File "calibre\gui2\device.pyo", line 220, in _upload_books
File "calibre\devices\prs505\driver.pyo", line 125, in upload_books
File "calibre\devices\usbms\cli.pyo", line 53, in put_file
IOError: [Errno 2] No such file or directory: u'L:\\database\\media\\books\\Ivan Iefriemov & Kobo Abe & Rei Bredbieri & Stanislav Liem & Artur Klark & Dzhon Uindiem & Arkadii Strughatskii & Boris Strughatskii & Aiziek Azimov & Kurt Vonn\\Antologhiia - Ivan Iefriemov & Kobo Abe & Rei Bredbieri & Stanislav Liem & Artur Klark & Dzhon Uindiem & Arkadii Strughatskii & Boris Strughatskii & Aiziek Azimov & Kurt Vonniegh.lrf'

Error still happens in version 0.6.8.

Thanks,

Michael

kovidgoyal
08-23-2009, 01:58 AM
Odd, works for me. You have any nonstandard preferences that might affect this?

GonzoGonzalez
08-23-2009, 09:35 AM
Odd, works for me. You have any nonstandard preferences that might affect this?

I haven't really changed any default settings since I first installed 0.6.4. I tried deleting book from the library, then re-inserting it. Still the same error. What's interesting- on the local computer the book is stored under the path

"C:\Users\Michael K\Books\Al'fried Van Voght\FATA-MORGANA 2 (Fantastichieskiie rasskazy (575)\FATA-MORGANA 2 (Fantastichieskiie rasskazy - Al'fried Van Voght.lrf"

Which is well under 256 characters, while it attempts to save the book to PRS-505 using this path:

"M:\\Al'fried Van Voght & Miurriei Lieinstier & M. Dzhiemison & Kordvieinier Smit & Ketrin Mur & Andre Norton & Siril Kornblat & Devid Kiellier & Dzhiek Finniei & O. Liesli & Lino Al'd\\FATA-MORGANA 2 (Fantastichieskiie rasskazy i poviesti) - Al'fried Van Voght & Miurriei Lieinstier & M. Dzhiemison & Kordvieinier Smit & Ketrin Mur & Andre Norton & Siril Kornblat & Devid Kiellier & Dzhiek Finniei & O. Liesli & Lino Al'dani .lrf"

Which is well over 400. So, for local computer it only uses the first author for the path, while for the device it uses ALL authors listed. But in any case- the program should truncate the path it tries to use to the maximum allowable length for the device's file path, which is probably 256-260 characters, which is the standard on the old versions of windows...


By the way, I still can't change "insert pagebreaks before (XPath)" field in the global (default?) Preferences -> Conversion -> Page Structure. It gets reset to "/" after I click OK. I have to set it for each conversion. It remembers it for each book correctly, but the default cannot be set.

Thanks, Michael

kovidgoyal
08-23-2009, 11:41 AM
Which is well over 400. So, for local computer it only uses the first author for the path, while for the device it uses ALL authors listed. But in any case- the program should truncate the path it tries to use to the maximum allowable length for the device's file path, which is probably 256-260 characters, which is the standard on the old versions of windows...


It does. The preference not being set is likely a bug, I'll look into that later.

cutterjohn42
08-23-2009, 09:07 PM
Kovid, is there any way to turn OFF the automoatic fetching of recipes, or make it optional? If not is there any possible way that you could make crouping of etchable recipes separate from auto-magical downloading easily?

BTW you're automagical mounting that broke my distro mounting, but seems to be working OK from w/in calibre... Sorry, but your mount helper has broken mounting, not my distro which is pretty much THE distro today...

i.e. you've managed to break my normal way of mounting ephemeral devices under Ubuntu which works for everything but Calibre, so saying to continue doing what I doo when it's broken doesn't work...

(auto mounting is handled by kernel devices plus gnome desktop, nothing unusual here that I've found...)

kovidgoyal
08-23-2009, 09:37 PM
Too many automagical's in that. I have no idea what you're trying to say.

cutterjohn42
08-24-2009, 09:47 AM
Give me a chance to see what happen with 0.6.8 as it appears that you've made some changes to the mounting code that affects Sony readers(others too?).

As far as automounting in Ubuntu goes it appears to be handled by the kernel(and modules) which nautilus(if using the base distro) pick up and react to by displaying a device icon, etc. I still don't know if the non-updated mtab was a fluke or not, but I wouldn't be surprised if it's been decided to not update mtab for USB devices as they tend to be plugged in/unplugged fairly frequently, or at least if you look at in the case of camera, phones, etc.

kovidgoyal
08-24-2009, 10:40 AM
calibre uses the following sequence to mount and mount.

1. Detect device
2. Wait a few seconds to give the OS the chance to mount
3. If still unmounted, mount it under meda using the OS supplied mount command
4. When the user asks for an eject,use the OS supplied eject command. On linux, if the device is mounted without an entry in mtab, then the eject command fails.

kazbates
08-26-2009, 09:39 PM
Kovid, I really liked the look of my ebooks when converting from lit to lrf with the older version of Calibre. For some reason, the newer version is including extra page breaks between chapters in some ebooks and in others a smaller font size for the different sizes available on my 700. Can you tell me or is there a source somewhere (ie., User's Guide) of what settings where used for conversions in the older version? I know Epub is the way of the future, but the paging gives me a headache. :p Thanks.

kovidgoyal
08-27-2009, 01:43 AM
LRF conversion is somewhat inferior in the 0.6 series (it got the least work under the new conversion engine). Page breaks are controlled by the page breaks before and chapter options. Font sizes will not be simple to fix, I'm afraid.

Kostas
08-27-2009, 07:18 AM
LRF conversion is somewhat inferior in the 0.6 series.
Maybe a silly question with a probable negative answer: is there a way to install different versions of Calibre on the same computer (Windows XP)? I mean without partitions, dual-boots...
I still prefer lrf's full justification and I'm not willing yet to fully shift to epub.
I don't remember if during installation I was asked to install Calibre for a single user or all users. Could it be possible to install different versions of Calibre for different users?

kazbates
08-27-2009, 09:26 AM
Thanks Kovid. I guess I'll just go back to the earlier version of Calibre which worked fine for me. Maybe one day they'll fix the page numbering in Epub and I'll be able to move on from LRF. ;)

kovidgoyal
08-27-2009, 11:03 AM
It is possible to have multiple installs of calibre as long as they dont share the same library. Search this forum for portable calibre where there are instructions on how to run calibre of a USB disk.

Kostas
08-27-2009, 11:47 AM
Great! Thanks a lot Kovid!

pars_andy
08-27-2009, 03:43 PM
LRF conversion is somewhat inferior in the 0.6 series (it got the least work under the new conversion engine). Page breaks are controlled by the page breaks before and chapter options. Font sizes will not be simple to fix, I'm afraid.

That's a bit disappointing to hear. Is there any hope for any work being done in the medium to long term in order to bring lrf conversion up to previous levels? If not...are there any links for the .5 versions on the net. I could then use .6 for news downloads and .5 for all my conversions.

kovidgoyal
08-27-2009, 04:55 PM
There's a sticky thread in this forum with links to old versions of calibre.

MelC
08-27-2009, 10:01 PM
Just installed the latest version and now all my books are unreadable...

'OptionValues' object has no attribute 'debut_input' is what comes up when I ask it to view anything and nothing will convert formats either..similar errors. These same books were viewable yesterday on one of the older versions which i have regrettably deleted already from my machine. Going to try to load up an older version now from the sticky thread.

Any thoughts on why the new version is so hinky on my machine? Running Mac OS.

Mel

kovidgoyal
08-27-2009, 10:05 PM
It's a bug (an oversight on my part) I'll be releasing 0.6.10 in a little bit with the bug fixed.

Timoleon
08-27-2009, 10:28 PM
Getting a bug on conversion of lit to lrf with 0.6.9. I've attached a jpeg of the error messages.

kovidgoyal
08-27-2009, 10:45 PM
Hmm can you also post the output from Console.app

Timoleon
08-28-2009, 12:46 AM
Hmm can you also post the output from Console.app

Hi Kovid,

The conversion from lit to lrf fails on both 0.6.9 and 0.6.10. I reinstalled 0.6.8 and it works fine on that. The two lits I made were with Book Designer; nothing particularly unusual about them.

At the risk of revealing my ignorance :smack:, when you talk about posting the output from Console.app, are you looking for what shows up in the DOS box after I do an "ebook-convert" from the command line? A search of my machine did not find a file named "console.app."

:thanks:

kovidgoyal
08-28-2009, 08:38 AM
If I remember right Console.app is in /Applications/Utilities (it should show a detailed crash log that will help me figure out where the problem is)

Timoleon
08-28-2009, 10:59 AM
If I remember right Console.app is in /Applications/Utilities (it should show a detailed crash log that will help me figure out where the problem is)

Alas, now I get it :bulb2: --- I've got Calibre loaded up on Windows XP SP3, rather than Fedora 12 Alpha which I dual boot to. :(

0.6.8 is running very nicely, though! :)

kovidgoyal
08-28-2009, 11:03 AM
Oops my mistake, for some reason I thought you were having the problem in OS X. Just re-download 0.6.10 on windows and you should be fine.