Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 07-26-2011, 01:03 PM   #1
olgs
Member
olgs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
Changing the author column

For various reasons, I would like to change the Author column from the default "calibre" to something else before Calibre email the generated MOBI file to my Kindle.

I have searched far and wide on the documentation but couldn't figure out at what point this actually happens.

Pointers?
olgs is offline   Reply With Quote
Old 07-26-2011, 01:14 PM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by olgs View Post
For various reasons, I would like to change the Author column from the default "calibre" to something else before Calibre email the generated MOBI file to my Kindle.

I have searched far and wide on the documentation but couldn't figure out at what point this actually happens.

Pointers?
It's not user-changeable. You'll have to modify the source code.
Starson17 is offline   Reply With Quote
Old 07-28-2011, 04:37 PM   #3
olgs
Member
olgs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
Thanks.

After fiddling with the recipe a little bit, just realized that it is possible to change the Author from "calibre" to anything by setting the publisher property. Hope this helps other.

kl
olgs is offline   Reply With Quote
Old 07-28-2011, 05:12 PM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by olgs View Post
Thanks.

After fiddling with the recipe a little bit, just realized that it is possible to change the Author from "calibre" to anything by setting the publisher property. Hope this helps other.

kl
The publisher property is set in 598 of the 993 builtin recipes in my version of Calibre. The author has always appeared in the recipes I run as "calibre." Would you post how you change the publisher property so that it controls the "author" for a recipe-created ebook?
Starson17 is offline   Reply With Quote
Old 07-28-2011, 05:54 PM   #5
olgs
Member
olgs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
You have to override create_opf and MetaInformation to do it. See the Chinese-->Ming Pao Hong Kong recipe for an example.

I am trying to make this generic for other recipe without doing a lot of extra work. Any ideas?
olgs is offline   Reply With Quote
Old 07-28-2011, 08:25 PM   #6
olgs
Member
olgs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
I adapted this piece of reusable code to over-ride the MetaInformation object. You will need a bunch of new imports to make this work.

http://www.mobileread.com/forums/sho...35#post1649735
olgs is offline   Reply With Quote
Old 07-29-2011, 11:06 AM   #7
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by olgs View Post
I adapted this piece of reusable code to over-ride the MetaInformation object. You will need a bunch of new imports to make this work.

http://www.mobileread.com/forums/sho...35#post1649735
Thanks. When I get a chance, I need to explore that code. If you have complete control over the mi, then you should be able to change anything. There have been requests to set tags from inside the recipe and the answer has always been you can't do it. If the recipe can control the mi, then I would think one could set tags as well as author.

However, I'm still not sure why you say that setting the "publisher" property changes the "author." Those are entirely different bits of mi data.
Starson17 is offline   Reply With Quote
Old 07-29-2011, 12:50 PM   #8
olgs
Member
olgs began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2011
Device: Kindle 3
I did not understand it at the time, but the setting of the publisher property worked in the recipe I was looking at (Ming Pao-Hong Kong) because the author was implementing create_opf in the recipe using code similar to the one linked above.

And you can certainly use it to change various things from within the recipe as I have successfully modified two recipes I regularly use to patch the Author column.
olgs is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing column type for reading queue paulfiera Calibre 7 05-31-2011 02:10 PM
Is it possible to change all commas to ampersands in author column? + more... africalass Library Management 18 04-01-2011 04:06 PM
Changing from author first, last to last, first Lady Fitzgerald Library Management 54 03-26-2011 07:09 AM
Changing Author List with Tweaks? AutumnDreamer Calibre 3 01-18-2011 12:40 AM
Adding or changing author denmarks PDF 2 10-05-2009 03:16 PM


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


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