Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-08-2015, 11:21 AM   #61
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by laji View Post
Sorry, I can not agree with you. The principle of strictly dividing datas and temp values (primary, real; and secondary, derived and technical only values, needed only for managing DB) is not my idea, and not accidentaly is so strict, so principle. Cosmetic clearing of a principially erronously structured behavior is not a way to happiness. First, it is not nice, not exact, not real-clear solution, only forced - it is the barrier in the way of developing. Second, if to mix temp values into DB, DB will grew up with extrem speed - without real needs. As I will develop the DB shower interface, so will more and more impracticable the DB's size. By the way: THIS was the cause, why I leaved that second, hierarchical-able book-organizer, that I wrote earlier. The size of the DB was 10× more, then real data's of books. Calibre is going on this, principially erronous way, too.
I'm pretty sure Kovid does whatever increases responsiveness in the library, regardless.
There is no "erroneous", there is merely a values dissonance.

Quote:
Originally Posted by laji View Post
https://www.mobileread.com/forums/sho...4&postcount=24


Sorry, it does not work, too. I tried:
Code:
<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid_id" version="2.0">
    <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
        <dc:contributor opf:file-as="calibre" opf:role="bkp">calibre (2.37.1) [http://calibre-ebook.com]</dc:contributor>
    </metadata>
    <guide>
        <reference href="cover.jpg" title="Borító" type="cover"/>
    </guide>
</package>
...and tried
Code:
<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" unique-identifier="uuid_id" version="2.0">
    <guide>
        <reference href="cover.jpg" title="Borító" type="cover"/>
    </guide>
</package>
The folder were named, as my import naming preferences (author - title). In the folder were an author-title named pdf, a cover.jpg, and the above metadata.opf. Calibre imported the PDF into the existing entry (correctly), but did not import cover. I tried it without PDF (JPG + OPF only): Calibre imported the OPF, as a new book file (like EPUB or any else), with title "metadata", and ignored the cover.
That is because both have been voided of metadata. The minimum required metadata in order for calibre too recognize it as a calibre OPF is:
Code:
        <dc:identifier opf:scheme="calibre" id="calibre_id">1</dc:identifier>

This will trigger calibre to read metadata from the OPF instead of the ebook file. One of the pieces of metadata it will read is the cover reference.
At that point, you should have the other DC roles filled out as well, or they will default to unknown.


Alternatively, you could embed the covers in the ebooks -- assuming they are EPUBs, at least.

Run this batch file in the topmost folder.
Code:
setlocal enabledelayedexpansion
for /d %%e in (*) do (
    cd %%e
    ebook-meta --cover=cover.jpg some-ebook.epub
)

Last edited by eschwartz; 09-08-2015 at 11:29 AM.
eschwartz is offline  
Old 09-09-2015, 06:11 AM   #62
laji
Banned
laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.
 
Posts: 74
Karma: 20416
Join Date: Nov 2010
Location: Hungary, Budapest
Device: monitor
Quote:
Originally Posted by eschwartz View Post
At that point, you should have the other DC roles filled out as well, or they will default to unknown.
Sorry, this does not meet, what I want: batch import of covers. I have already all books in DB of Calibre, with (nearly) all datas. I want to add to them a cover. I can do single folders for all files, rename them according to my import settings (author - title), take into them a JPG and rename them to "cover"; all in batch, using Total commander; but can not in batch create OPF files with various content, because authors and titles must to be in the OPF. Your tip results, that Calibre will not read file names, and imports all covers (yes, in this case it imports them) into the new file, titled "metadata".

I wrote originally:
Quote:
Autoimport cover by file name
I have (yet) 2,000 books, not imported into calibre. Most of them has cover in the same folder and with the same file name (author[s] - title.ext), as book, with extension JPG or PNG.

Is there a way to automate the import of covers into books' metadata?

Last edited by laji; 09-09-2015 at 06:14 AM.
laji is offline  
Old 09-09-2015, 10:01 AM   #63
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You want to add covers for books already in calibre?...


If you are willing to do an end-run around calibre's management routines, simply close calibre and move the JPGs into the ebook folders.

Loop through all folders in the library, extract the author and title from the pathname, and copy the right cover in.
calibre should pick up the change.

I'd try to work out a batch script for you but I typed this on my Kindle.
eschwartz is offline  
Old 09-09-2015, 10:17 AM   #64
laji
Banned
laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.laji can self-interpret dreams as they happen.
 
Posts: 74
Karma: 20416
Join Date: Nov 2010
Location: Hungary, Budapest
Device: monitor
Quote:
Originally Posted by eschwartz View Post
You want to add covers for books already in calibre?...


If you are willing to do an end-run around calibre's management routines, simply close calibre and move the JPGs into the ebook folders.

Loop through all folders in the library, extract the author and title from the pathname, and copy the right cover in.
calibre should pick up the change.

I'd try to work out a batch script for you but I typed this on my Kindle.
eschwartz, thank you for your quick reply. Sorry, the attempt is again without success. I thought about it, too, but: 90 % of my books has, of course, hungarian title (áéíóöőúüű), 9% russian (cyrill). Plus, when Calibre thinks, it shortens the filenames; cuts out some characters (dots,...). While I try and understood all Calbre's renaming nuances, will quicker to add all covers manually.

Please, do not hurry! I do not ask from you to work on Kindle. I can wait, till you will at a PC.

Last edited by laji; 09-09-2015 at 10:20 AM.
laji is offline  
Old 09-09-2015, 11:14 AM   #65
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,533
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
A little suggestion for the original poster; please don't edit your posts to remove items; maybe if you have to just mark sections that you feel are no longer relevant as such, or mark them up with [strike] .... [/strike] so things look like this


this was just an idea...


This would ensure that the thread could easily be understood at any time.
PeterT is offline  
Old 09-09-2015, 03:44 PM   #66
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,735
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Moderator Notice
Thread closed - to prevent anyone from inadvertently responding to the banned OP
BetterRed is online now  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paperwhite 3 (PW3) features list speculation/wish list markbot Amazon Kindle 115 09-09-2014 10:59 AM
Tip: Use Bookmark List to simulate a "Currently Reading" list Ntsimp iRiver Story 11 02-03-2013 04:45 PM
Error: "can only concatenate list (not "unicode") to list" bmuesse Library Management 2 01-11-2013 03:50 PM
the where is? list... kindlekitten Lounge 14 03-06-2010 08:04 PM


All times are GMT -4. The time now is 07:50 PM.


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