Quantcast
Channel: MobileRead Forums - Calibre
Viewing all 31520 articles
Browse latest View live

Copy file path issue: \ /

$
0
0
Dear @kovidgoyal,

The "copy file path" feature returns both \ and / in the path (Windows 8.1, 64bit).

Can't add books!

$
0
0
This just happened suddenly, I am not able to add books. Calibre just hangs everytime I try to add a book. Have to terminate the process and restart Caibre.

Have tried with all formats, obviously it has nothing to do with format.

I'm on 2.29 on a Kubuntu 15.04.

Composite column template question

$
0
0
Hi,

First of all: Hope my english is correct enough for you to understand what I mean ;)

I've been reorganising my Calibre and added an extra series-column for secundairy series (ex: Preston & Child's Pendergast novels have a couple of subseries)
Afterwards i've composed a column which uses the value of other columns. In this case it uses the data from the original series-column and my custom series-column. This works fine but now i'm a bit stuck on the detailing as you can see on the screenshot i've made.

I can't get rid of the comma or the slash if i've only got one column filled. Where 2 columns are filled (so in a case where a book has multiple serie-titles) everything's fine, but just one series-column goes wrong.

My 'strings' for these colums are:
Code:

{series:||,} {#secreeks:||,}
This is the column that I use in my labelbrowser and hold just the serietitles and not the index.

Code:

{series} {series_index:|| / }{#secreeks} {#secreeks_index}
The column I use in my mainscreen so I can see in one column if a book has one or more series.

I hope someone understands what i'm trying to accomplish here and has an answer to it.

Attached Thumbnails
Click image for larger version

Name:	ex1.jpg
Views:	N/A
Size:	136.6 KB
ID:	138924  

Compiling fails wiht not finding qt

$
0
0
I am trying to build calibre from source (impatient to try a fix for my problem: http://www.mobileread.com/forums/sho....php?p=3111149) on Ubuntu 15.04 but fail:

Code:

####### Building extension pictureflow #######
sip -w -c /home/drew/Zdroje_a_programy/Sources/calibre/build/pyqt/pictureflow -b /home/drew/Zdroje_a_programy/Sources/calibre/build/pyqt/pictureflow/pictureflow.sip.sbf -I/usr/share/sip/PyQt5 -x VendorID -t WS_X11 -t Qt_5_4_1 -x Py_v3 /home/drew/Zdroje_a_programy/Sources/calibre/src/calibre/gui2/pictureflow/pictureflow.sip

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. -o pictureflow.o ../../../src/calibre/gui2/pictureflow/pictureflow.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. -o sippictureflowcmodule.o sippictureflowcmodule.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. -o sippictureflowPictureFlow.o sippictureflowPictureFlow.cpp
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. -o sippictureflowFlowImages.o sippictureflowFlowImages.cpp
/usr/lib/x86_64-linux-gnu/qt4/bin/moc -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/local/include/python2.7 -I/usr/include/python2.7 -I../../../src/calibre/gui2/pictureflow -I. ../../../src/calibre/gui2/pictureflow/pictureflow.h -o moc_pictureflow.cpp
make: /usr/lib/x86_64-linux-gnu/qt4/bin/moc: Command not found
Makefile:197: recipe for target 'moc_pictureflow.cpp' failed
make: *** [moc_pictureflow.cpp] Error 127
make: *** Waiting for unfinished jobs....
In file included from ../../../src/calibre/gui2/pictureflow/pictureflow.cpp:59:0:
../../../src/calibre/gui2/pictureflow/pictureflow.h:60:19: fatal error: QWidget: No such file or directory
 #include <QWidget>
                  ^
compilation terminated.
Makefile:219: recipe for target 'pictureflow.o' failed
make: *** [pictureflow.o] Error 1
In file included from sippictureflowPictureFlow.cpp:7:0:
sipAPIpictureflow.h:13:21: fatal error: QMetaType: No such file or directory
 #include <QMetaType>
                    ^
compilation terminated.
In file included from sippictureflowFlowImages.cpp:7:0:
sipAPIpictureflow.h:13:21: fatal error: QMetaType: No such file or directory
 #include <QMetaType>
                    ^
In file included from sippictureflowcmodule.cpp:7:0:
sipAPIpictureflow.h:13:21: fatal error: QMetaType: No such file or directory
 #include <QMetaType>
                    ^
compilation terminated.
compilation terminated.
Makefile:225: recipe for target 'sippictureflowPictureFlow.o' failed
make: *** [sippictureflowPictureFlow.o] Error 1
Makefile:222: recipe for target 'sippictureflowcmodule.o' failed
make: *** [sippictureflowcmodule.o] Error 1
Makefile:228: recipe for target 'sippictureflowFlowImages.o' failed
make: *** [sippictureflowFlowImages.o] Error 1
Error while executing: make -j8

Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/__init__.py", line 181, in run_all
    self.run_cmd(self, opts)
  File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/__init__.py", line 175, in run_cmd
    self.run_cmd(scmd, opts)
  File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/__init__.py", line 178, in run_cmd
    cmd.run(opts)
  File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/extensions.py", line 422, in run
    self.build(ext, dest)
  File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/extensions.py", line 444, in build
    return self.build_pyqt_extension(ext, dest)
  File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/extensions.py", line 634, in build_pyqt_extension
    self.check_call([make]+([] if iswindows else ['-j%d'%(cpu_count or 1)]))
  File "/home/drew/Zdroje_a_programy/Sources/calibre/setup/extensions.py", line 496, in check_call
    subprocess.check_call(*args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j8']' returned non-zero exit status 2

I think I have all qt5 dev files installed:
Code:

dpkg --get-selections | grep qt |grep  dev                                                                                                                   
pyqt5-dev                                      install
pyqt5-dev-tools                                install
pyqt5.qsci-dev                                  install
qtbase5-dev:amd64                              install
qtbase5-dev-tools                              install
qtbase5-private-dev:amd64                      install

Any idea?

How to copy a Calibre libray

$
0
0
Hello,

I am new here.
Since some time now I am using Calibre in combination with my Kobo Aura.
Calibre is installed on my home PC. Now I have installed Calibre portable on an external Hard disk because I want to take it with me when I"m away from home.So that I can use Calibre in combination with my small notebook.
Therefore I would like to copy my existing Calibre library to the external Harddisk. The original library should of course remain on the home PC.
How do I do that?
I have tried all sorts of things but it doest work.

Philip

The {title_sort} replace the {title} value when doing save to disk job

$
0
0
Click Preference -> Saving books to disk(Import/Export section) and then set the template to {title} - {authors}. When I am saving the book to disk, the book name is {title_sort} - {authors} instead of {title} - {authors}.

Question re: AZW3 covers on Kindle Fire...

$
0
0
Hello fellow ebookers,

I've been tinkering with calibre conversions for my first time today and I've come across a question. I'm not certain whether this should go here or in the Kindle forum but here goes....

I've taken a public domain document, copied it into Libreoffice Writer to do some clean up and generated a field based TOC. Then using Gimp, I created a *.png graphic to use as a cover. I found that calibre will import ODT files (the format used by Libreoffice). Using calibre, I then edited the metadata and imported the graphic to use as a cover, then converted the book to AZW3, and finally Send to Device | Send specific format to | Main Memory to send the AZW3 file to the Kindle Fire which is connected to the computer via its USB cord. Oh, I'm using OpenSuse Linux on the computer, though I doubt that would have any affect on anything.

Here's what has me puzzled: The custom cover I created shows up when I go to Books on the Kindle, but it does not show up on the Carousel with other recently viewed books. Instead of my custom cover, I see a smaller generic cover which simply says "kindle" and has the percentage read on it. But if I use the generic cover generated in calibre, it appropriately shows up in the Carousel and in Books. Am I missing something in the metadata or in the conversion?

Any suggestions would be apprciated.

--jeff

Strange first line in Mobi file - everything else fine

$
0
0
Hi all,

My source document is created in OpenOffice as an ODT file. I then convert in Calibre to a Mobi.

I've used style sheets throughout. The first page is a dedication page, so that particular style ash a large margin above it (I used a similar technique with other styles).

The first page ignores the style command (though it looks fine in the ODT file), and just puts the text at the top of the page.

Subsequent styles (chapter beginnings, etc) work fine, and have a gap above them - it's just the first page that doesn't do what I want. Any ideas what it might be?

Cheers

China FEED Information

Making a folder for better organizing?

$
0
0
I really want to make some sort of folder within calibre to put books that I would like to read later on. So that it is easier to locate and manage all my books (in the thousands)
I just can't understand if you can't do this, why it is not a thing. It would just make so much sense in terms of organizing.

EDIT: Solved for the most part

Accurate book length

$
0
0
What would be the best way to calculate the accurate book length?

Word Count? Page Count? Or yet another option?

regarding "Guessing metadata from file names" function

$
0
0
Uncheck the Preferences->Adding Books->Read metadata from file contents rather than file name, and then add the books to calibre. All the metadata except title and the authors can't be read into the books.

It is by design? From my perspective, all the metadata should be read into the books, while the title and the authors metadata should be read according to the file name. Please feel free to correct me if I am wrong. Thanks in advance.

automatic TOC generation

$
0
0
Hi,

I've been using Calibre to convert pdf files to htmlz. Almost all the time, it generates a section called document outline at the bottom of the document, that accurately lists the sections of the documents. However, clicking on the links don't actually bring me to the appropriate section of the book, and the title of that section is not marked up with headings. These are my current command-line options.

ebook-convert input_file output_file --unsmarten-punctuation --enable-heuristics --duplicate-links-in-toc --max-toc-links 10000 --toc-threshold 10000 --remove-paragraph-spacing --disable-italicize-common-cases

I also tried appending the --new-pdf-engine option hoping that it would help, but it usually generates an exception during conversion and crashes.

What am I doing wrong?

Problem saving file and making indent?

$
0
0
I am quite new to Calibre, but so far I am liking it very much, thank you Kovid!

My problems are probably related to my ignorance but here goes:

1st problem-I import a new file into a book I'm finishing, edit it a little, then save it, but the imported file does not export with the book and it seems to disappear, what am I missing?

2nd problem: I wrote my book in Word, and formatted it in InDesign. I wanted to indent my speech text so I originally used white/paper colored periods, as it was something I did many years go for a PDF file, and it worked ok, but not for this. They show up so I have been trying to indent the text using <span style="text-indent:25px"></span> and nothing happens?

Help, anyone, please.....:blink:

Reserved words in Calibre??

$
0
0
hi,

just found something strange so I had to ask are there reserved words in Calibre, something we can't use/should avoid in XHTML and CSS ???

for now I have positive answer on "chapter" - if a CSS class is named "chapter" Calibre makes a new chapter during conversion in each occurence of using class="chapter" in XHTML code.

my search didn't reveal me any reserved word

btw Kindlegen inside Kindle Previewer converts correctly - without chapter splitting



conversion is epub to azw3
Win7 x64
Calibre 2.29 64bit

here is XHTML snippet:

Quote:

<p class="chapter">This is a first paragraph</p>
<p class="chapter">This is a second paragraph</p>
<p class="chapter">This is a third paragraph</p>
<p class="chapter">This is a fourth paragraph</p>
CSS:

Quote:

.chapter {
text-indent: 0.5em
}
and part of conversion job log :
Quote:

Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: This is a first paragraph
Detected chapter: This is a second paragraph
Detected chapter: This is a third paragraph
Detected chapter: This is a fourth paragraph
Flattening CSS and remapping font sizes...
Source base font size is 16.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating AZW3 Output...
Serializing resources...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=calibre_pb_0
Splitting on page-break at id=calibre_pb_1
Splitting on page-break at id=calibre_pb_2
Split into 4 parts
Creating KF8 output

Recipes for Academic Journals

$
0
0
I have created some basic recipe templates for a few academic journal sites---Oxford, Wiley, Springer, and Taylor and Francis---and several recipes based on those templates, for some philosophy journals---Analysis, Phil Studies, PPR, Australasian Journal of Philosophy, Mind, etc.

The recipes and templates are here:

https://github.com/dsanson/calibre-r...demic-journals

Creating a virtual library according how many books by author

$
0
0
Hi, it's me again. In this opportunity I have 2 questions. The first one is about the title of this post. I want to create a virtual library (or category) only with authors, by example, with at least 10 books. How can i do that?

And the second question is about part of the first one. Where I can learn about the commands, functions, variables, etc.? So, by this way, not only I can learn, but also I can develop my own solutions and, maybe, could help others.

Please, sorry my grammar (if I made mistakes, please correct me to learn)
Regards from Lima, Perú

Calibre takes F-O-R-E-V-E-R T-O L-O-A-D

$
0
0
Hey,

I have been using Calibre for years and enjoy using it very much. I run my copy of Calibre on a Flash Drive (San Disk 64 GB USB 3.0) which I misplaced around December. I updated to the Newest version of Calibre portable when I found it yesterday. To my dismay, when I tried to launch the Calibre portable app it didn't seem to load. I forgot about it but when I brought up task manager I found that the calibre task was running. I ended it and tried again with the same result.

I deleted the Calibre portable app, installed & tried to run it again. No Dice. I poked around on this forum for a while and found that if I wanted help I should probably run the Calibre-debug -g script (forgive me if that's not the right word). Below I've pasted the Debug log. Time stamps were added by me.

9:17
D:\PortableApps\Calibre Portable\Calibre>calibre-debug -g

10:15 (Aprox)
calibre 2.29 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')

11:23 (Aprox)
Starting up…

1:15
Started up in 3618.50 seconds with 409 books
(Gui Launched)


Before anyone asks, here's a few points:
1.) Although this is a flash drive, other portable apps run just fine without difficulty.
2.) While I was running this debug session no other portable app was running and I did not access the Flash Drive
3.) Although this is a corporate computer and as such I can not disable the anti-virus, I have run older versions of Calibre using this Flash drive on this very same computer without difficulty.

I did spend several hours reading through various forums on the internet, if this is a known issue with an easy solution, I apologize, but I didn't see it. :bookworm:

Thank you for your help :)

Calibre Viewer - Suggestion re Notes

$
0
0
I am wondering if the Viewer could be enhanced to have Previous and Next note buttons added - something like this

Attachment 138975

In that screen shot, I just clicked on the 8, now I'd like to get at note 9 by clicking a calibre Green Down arrow in the footnote window. I could then flip between what Blankfein and Greenspan were reported as saying in notes 8 and 9, perhaps to ensure they were indeed chanting the same mantra.

The Blue Right arrow isn't a good solution as it takes away visibility of the actual text - one has to click a note number to get back to it.

Maybe someone knows of an EPUB viewer for Windows that has 'scrollable' notes, I'd also like something for Android.

Pop-up notes may be OK for lightly footnoted text, but for heavily footnoted text it's very irritating - makes me want to rush out and buy the paper edition ;)

BR

Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	N/A
Size:	149.6 KB
ID:	138975  

Calibre to Kobo via MicroSD (Duplicates)

$
0
0
I just purchased a Kobo last night and I put a MicroSD into my iMac and copied my Calibre library into it, I then put it into my Kobo, but when I opened the library this morning on my Kobo there were duplicates of ALL the ebooks, I noticed that it had a .jpg file, a .pdf and an epub all for one book.

Now as I understand the jpg is the cover's file, the pdf was probably the original format and the epub is the converted file, but how do I go about keeping the book cover without it showing up as two different files on my Kobo library?

I couldn't find a help section on the Calibre site so that's why I'm asking on here. :help:
Viewing all 31520 articles
Browse latest View live