Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-07-2010, 04:24 AM   #16
karunaji
Evangelist
karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.
 
karunaji's Avatar
 
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?
karunaji is offline   Reply With Quote
Old 07-07-2010, 08:12 AM   #17
JvdW
Zealot
JvdW doesn't litterJvdW doesn't litter
 
Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
Quote:
Originally Posted by karunaji View Post
Hi Joop,
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?
Sorry, I didn't register the fact that unicode is your problem.
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
JvdW is offline   Reply With Quote
Advert
Old 07-07-2010, 01:35 PM   #18
karunaji
Evangelist
karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.karunaji ought to be getting tired of karma fortunes by now.
 
karunaji's Avatar
 
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.
karunaji is offline   Reply With Quote
Old 01-11-2011, 01:51 AM   #19
squawker
Member
squawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-books
 
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.
squawker is offline   Reply With Quote
Old 01-11-2011, 02:04 AM   #20
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,888
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by squawker View Post
I thought I was losing it till I found this thread. Still doesn't work in batch files in XP.
I believe it does, did you try to prefix it with the start command.

Start /wait ebook-convert.exe ....

The /wait option if you're stringing together commands in the batch file.

Spoiler:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>start /?
Starts a separate window to run a specified program or command.

START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/WAIT] [/B]
  • "title" Title to display in window title bar.
  • path Starting directory
  • B Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt the application
  • I The new environment will be the original environment passed to the cmd.exe and not the current environment.
  • MIN Start window minimized
  • MAX Start window maximized
  • SEPARATE Start 16-bit Windows program in separate memory space
  • SHARED Start 16-bit Windows program in shared memory space
  • LOW Start application in the IDLE priority class
  • NORMAL Start application in the NORMAL priority class
  • HIGH Start application in the HIGH priority class
  • REALTIME Start application in the REALTIME priority class
  • ABOVENORMAL Start application in the ABOVENORMAL priority class
  • BELOWNORMAL Start application in the BELOWNORMAL priority class
  • WAIT Start application and wait for it to terminate command/program If it is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run.
DoctorOhh is offline   Reply With Quote
Advert
Old 01-13-2011, 07:03 PM   #21
squawker
Member
squawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-bookssquawker has learned how to read e-books
 
Posts: 24
Karma: 980
Join Date: Jan 2007
Device: PRS-500
That did it! Thanks!

Quote:
Originally Posted by dwanthny View Post
I believe it does, did you try to prefix it with the start command.

Start /wait ebook-convert.exe ....

The /wait option if you're stringing together commands in the batch file.
squawker is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


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


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