![]() |
#1 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Jul 2011
Location: France
Device: iPad, Kindle 3, Kobo Glo, Kobo Aura
|
![]()
Hi everybody,
I'm new in calibre World, and i test it for adding some books into my iPad. When i'm add books record calibre fill the "sort Title" like the title but i would use my own rule for filling this. In French language we use some accents and i want to replace with the letter alone ( without accent ) and remove the leading article and send to the end of the title enclose in parenthesis. eg -> Le peuple de la forêt -> Peuple de la foret (Le) I think i must write a plugging to obtain that and i can write it, but i'm juste want to know which fontion i must overload to execute something on the blue arrow following the Title in metadata dialogue box. The Second thing is how to process the whole collection to show where is error in generation ? The Third thing is how to colored the sort title in green if the sort title is correct with my rule ? Thanks in advance Regards from France Khan-Dam Last edited by Khan-Dam; 07-19-2011 at 11:22 AM. |
![]() |
![]() |
![]() |
#2 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,314
Karma: 7957679
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
You won't be able to do what you want with a plugin. Instead, you want to replace calibre's title_sort function with one of your own. Get the source (see http://manual.calibre-ebook.com/develop.html), the go to src.calibre.ebooks.metadata.__init__. Find the title_sort function and replace it with one that does what you want. You will need to propagate your change to new releases, but that isn't hard to do using bzr shelve. Quote:
Quote:
|
|||
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Jul 2011
Location: France
Device: iPad, Kindle 3, Kobo Glo, Kobo Aura
|
I never write somthing in python, but i not seem's so hard ( i had a long expriance in c++ and Java ! )
Ok i undderstand what you mean in the 1 point, i look for these asap for the seconf point i don't undersatand what you mean. I thik the bulk metadata is to change the meta data in thes point i just want to make a list with the title sort differ fro the rule not to change them. for the 3 point it's ok. just for the fun it's possible to make dialog form to activate or not the change i made in the sort title function ? in this case i bypass my write to call the original fubction ? Thanks for your rapid answer Khan-dam |
![]() |
![]() |
![]() |
#4 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,314
Karma: 7957679
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Jul 2011
Location: France
Device: iPad, Kindle 3, Kobo Glo, Kobo Aura
|
thanks a lot for the time you spend for me, i realy apreciate.
I begin to work on this feature asap Regards Khan-dam |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 40
Karma: 10
Join Date: Jul 2011
Location: France
Device: iPad, Kindle 3, Kobo Glo, Kobo Aura
|
|
![]() |
![]() |
![]() |
Tags |
french, meta-data, plug-ins |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Firmware Update Automated update just applied | Dibblah | Amazon Kindle | 26 | 09-15-2010 02:07 AM |
Unutterably Silly When automated suggestions go bad... | Ingrid | Lounge | 4 | 09-25-2009 04:06 AM |
Seriously thoughtful Book, Version 1.0, Automated | Jack Tingle | Lounge | 6 | 04-10-2009 10:41 PM |