Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-19-2020, 11:24 AM   #1
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
CLI catalog bib -> Values instance has no attribute 'bibfile_enc'

Hello

Where is the syntax for the options of the BIB format when I use CLI?


>calibredb catalog list.bib

I want, for example, to restrict the fields used in the output.

The doc and the online help only list the EPUB options.

Also:
if calibre is running, calibre says I need to use remote library, but 'catalog' is not compatible with remote library. Any suggestion?
tycho is offline   Reply With Quote
Old 09-19-2020, 10:46 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,159
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibredb catalog t.bib --help
kovidgoyal is offline   Reply With Quote
Old 09-25-2020, 03:37 AM   #3
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
yes, it works. Thanks

This is not explained anywhere, is it?

You should upgrade the doc to give this command, shouldn't you?
tycho is offline   Reply With Quote
Old 09-25-2020, 03:48 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,159
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The --help flag is standard for the vast majority of command line tools and is documented in calibre's user manual as well.
kovidgoyal is offline   Reply With Quote
Old 10-02-2020, 09:51 AM   #5
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
yes, thanks, I know this, but how are we suppose to know to give "t.bib" to have the doc for the bib format?
tycho is offline   Reply With Quote
Old 10-02-2020, 11:49 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,159
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The very first line in the output of --help tells you you invoke it with

calibredb catalog file.bib [options]

so run it with

calibredb catalog file.bib --help
kovidgoyal is offline   Reply With Quote
Old 10-03-2020, 04:07 AM   #7
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
Sorry but no.
It says:
>calibredb catalog /path/to/destination.(csv|epub|mobi|xml...) [options]

In the option list, it says:
>-h, --help affiche ce message d'aide et quitte

which translates to:
>-h, --help display this help message and quit

This says that whatever filename I type, I will always have the same help message.
tycho is offline   Reply With Quote
Old 10-03-2020, 04:40 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,159
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sorry, but yes:

Code:
calibredb catalog -h                                                                     
Usage: calibredb catalog /path/to/destination.(csv|epub|mobi|xml...) [options]

Export a catalog in format specified by path/to/destination extension.
Options control how entries are displayed in the generated catalog output.
Note that different catalog formats support different sets of options.
kovidgoyal is offline   Reply With Quote
Old 10-03-2020, 10:02 AM   #9
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
How is this saying that to get the documentation of a specific format, you need to run it with a dummy file?
tycho is offline   Reply With Quote
Old 10-03-2020, 12:01 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,159
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Note that different catalog formats support different sets of options.
kovidgoyal is offline   Reply With Quote
Old 10-03-2020, 04:37 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 38,004
Karma: 150500002
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by tycho View Post
How is this saying that to get the documentation of a specific format, you need to run it with a dummy file?
You don't even need the file name. Just the extension works.

Code:
calibredb catalog --help   help on the default epub format
calibredb catalog .epub --help for help on epub format
calibredb catalog .bib --help for help on bib format
calibredb catalog .csv --help for help on the csv format
Hence the bit you quoted:

calibredb.exe catalog /path/to/destination.(csv|epub|mobi|xml...) [options]

where you will notice the destination.extension with the ... as a gentle hint that there are options that are not visible such as AZW3 and BIB—the usual purpose of an ellipsis. (the omission from speech or writing of a word or words that are superfluous or able to be understood from contextual clues).
DNSB is offline   Reply With Quote
Old 10-04-2020, 03:55 AM   #12
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
I really think that this piece of documentation is obscure, and that you should add a few sentances to indicate that the help for specific format has to be called with that syntax.

The thing is not even in the manual (you have epub format, why not the bib format). Look for yourself:

https://manual.calibre-ebook.com/gen...b.html#catalog

This would save time to the user, and to you people in the forum.

But I see that you do not agree, and of course, at the end, it's up to you.
tycho is offline   Reply With Quote
Old 10-04-2020, 04:03 AM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,159
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Was already added days ago. https://github.com/kovidgoyal/calibr...4eab6f96d38813
kovidgoyal is offline   Reply With Quote
Old 10-06-2020, 08:15 AM   #14
tycho
Member
tycho began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Jun 2018
Device: samsung
I meant: it's not in the HTML manual.
tycho is offline   Reply With Quote
Reply

Tags
bib, calibredb, catalog, cli


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bib format in catalogue and calibre 2.6 Terisa de morgan Library Management 2 10-18-2014 01:19 AM
Unable to create BIB catalog excaliber Calibre 1 11-02-2013 10:49 PM
calibredb catalog CLI error ilovejedd Library Management 4 02-06-2012 10:26 AM
Spaces in attribute values (updating El Pais recipe) lordvetinari2 Recipes 2 10-19-2010 01:32 PM


All times are GMT -4. The time now is 09:51 AM.


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