![]() |
#1 |
Member
![]() 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? |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() 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 |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
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?
|
![]() |
![]() |
![]() |
#5 |
Member
![]() 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? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() 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.
https://www.mobileread.com/forums/sho...35#post1649735 |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#8 |
Member
![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing column type for reading queue | paulfiera | Calibre | 7 | 05-31-2011 01:10 PM |
Is it possible to change all commas to ampersands in author column? + more... | africalass | Library Management | 18 | 04-01-2011 03:06 PM |
Changing from author first, last to last, first | Lady Fitzgerald | Library Management | 54 | 03-26-2011 06:09 AM |
Changing Author List with Tweaks? | AutumnDreamer | Calibre | 3 | 01-17-2011 11:40 PM |
Adding or changing author | denmarks | 2 | 10-05-2009 02:16 PM |