Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2016, 11:05 AM   #1
hfpop
Addict
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
Change ebook metadata using filename in command-line mode

I have the following problem: a large number of ebook files with names following a particular metadata naming scheme (for example, "series [nr] author - title.epub")

I need to change the actual metadata of these files using the information given as the filename. Loading the files in Calibre works flawlessly. But I want to try doing this via windows cmd scripting using command-line options.

The actual use of -author and -title options of ebook-meta is problematic in Windows because of unicode issues in cmd.

Is there any possibility to use in cmd line mode features from visual calibre? In particular here, the metadata plugboards.
hfpop is offline   Reply With Quote
Old 02-18-2016, 11:35 AM   #2
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: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Metadata plugboards are not supported in "Embed Metadata" or "Polish Book".


I believe there are some tricks for unicode in the CMD on Windows, no idea what though.
Or maybe the Cygwin shell handles unicode properly
eschwartz is offline   Reply With Quote
Advert
Old 02-18-2016, 12:03 PM   #3
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,146
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont understand what your issue with ebook-convert is. If you have a large number fo files, presumably you will want to script the operation. In which case you dont need to care about cmd at all, write your script in any scripting language you like.

Or if you want to use, cmd, set its codepage to utf-8 or use powershell instead.
kovidgoyal is online now   Reply With Quote
Old 02-18-2016, 05:20 PM   #4
hfpop
Addict
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
Under Linux, all is right. Under windows, I tried Perl scripts with cmd in all sorts of combinations. There are various cases where the use of non-English characters is problematic. On the other side, Cygwin does indeed handle unicode properly. But it adds another layer. The right decision is, of course, to abandon Windows and switch to a decent operating system.
hfpop is offline   Reply With Quote
Old 02-18-2016, 05:35 PM   #5
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: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The #2 solution is to use Cygwin as a sanity layer for general Windows usage.
eschwartz is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OSX focus change during ebook-meta on command line mafrosis Calibre 5 10-23-2014 12:54 AM
Save the Metadata to the Libary files/change filename to the Metadata RyuujiTakasu Calibre 10 03-19-2014 02:01 PM
command line batch to change title etc. boell Library Management 6 10-14-2012 06:42 PM
ebook-convert: change settings from command line miwie Calibre 1 11-30-2010 02:05 PM
Change To Internal Name via Command Line nkormanik Calibre 6 10-19-2010 06:01 PM


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


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