View Single Post
Old 07-19-2011, 11:48 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Khan-Dam View Post
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.
As you mention writing a plugin, I am assuming that you can program in python.

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:
The Second thing is how to process the whole collection to show where is error in generation ?
You would use bulk metadata edit, checking the "update title sort" checkbox.
Quote:
The Third thing is how to colored the sort title in green if the sort title is correct with my rule ?
If you change the source, then the red/green marking will change to respect your rules.
chaley is offline   Reply With Quote