![]() |
#16 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 1033566
Join Date: Mar 2010
Location: Latvia
Device: Kindle 3 Wifi, Bookeen Opus
|
Hi Joop,
Thanks for the suggestion. It works but doesn't solve my problem. Starting a new process inherits the default code page (775 in my case). It means that I cannot use the unicode for metadata in command line parameters. I speculate that calibre batch files stop running because calibre utilities internally sets the code page to unicode. Also it appears that Windows XP does not support unicode natively and it requires some internal add-on that breaks batch file processing. Besides putting all metadata in the command line is not an elegant solution. Would it be possible to implement a solution that metadata can be read from a file? |
![]() |
![]() |
![]() |
#17 | |
Zealot
![]() ![]() Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
|
Quote:
Yes you can read the metadata back from a file. I do that too, from the test.env file I read back what c1.bat puts there. In my case a simple id=nn but you can extend that idea to parse the file line by line and put all the different columns into variables and use those to do other things. Looks probably ugly but should be doable. What commands are you using to set unicode? and what internal addon are you talking about? Regards, Joop |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 1033566
Join Date: Mar 2010
Location: Latvia
Device: Kindle 3 Wifi, Bookeen Opus
|
Thanks Joop,
Forget what I said. I was just looking at the ebook-convert.exe. But there is an option for ebook-meta for reading metadata from an OPF file. It was exactly that I was looking for. |
![]() |
![]() |
![]() |
#19 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 980
Join Date: Jan 2007
Device: PRS-500
|
Still doesn't work in a batch file
I thought I was losing it till I found this thread. Still doesn't work in batch files in XP.
![]() |
![]() |
![]() |
![]() |
#20 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,888
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Start /wait ebook-convert.exe .... The /wait option if you're stringing together commands in the batch file. Spoiler:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 980
Join Date: Jan 2007
Device: PRS-500
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ebook-convert don't work in ubuntu 9.10 | vakya | Calibre | 2 | 10-26-2009 04:36 PM |
Batch convert error | Dopedangel | Calibre | 2 | 09-07-2009 03:46 AM |
Word Documents - batch convert title property from file name | tomliversidge | Workshop | 4 | 11-07-2008 11:20 AM |
Batch-convert Rocket Ebook format for GEB2150? | Fauve | Fictionwise eBookwise | 1 | 04-28-2007 05:12 PM |
Batch convert to plucker .pdb file. | khaoohs | Workshop | 2 | 04-28-2006 11:23 PM |