09-19-2013, 11:49 AM | #1 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
change 'sort by title' with 'title'
hi
i have another problem.. i have many books with invalid 'sort by title' ex: title :'Un homme a marier' sort by title :'homme a marier, Un' see hardcopy attached i woulld like to have ALL field 'sort by title' same as field 'title' it enables me to sort TITLE strictly_alphabetic many thanks for your support ... Last edited by jcarlier; 09-19-2013 at 11:54 AM. |
09-19-2013, 12:29 PM | #2 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
I found a solution :
use 'Sqlite database browser ' for browsing metadata.db and make a sql command for replacing ... but if you have another solution ... |
09-19-2013, 12:41 PM | #3 |
Connoisseur
Posts: 54
Karma: 6910
Join Date: Jul 2013
Device: Kindle Touch
|
Not sure if this is what you are asking for, but this seems a language problem.
Preferences->Advanced->Tweaks->Set the list of words cosidered to be "articles" for sort strings per_language_title_sort_articles = { # English 'eng' : (r'A\s+', r'The\s+', r'An\s+'), # French 'fra' : (r'Le\s+', r'La\s+', r"L'", r'Les\s+', r'Un\s+', r'Une\s+', r'Des\s+', r'De\s+La\s+', r'De\s+', r"D'"), } default_language_for_title_sort = None title_sort_articles=r'^(A|The|An)\s+' More languages here: http://manual.calibre-ebook.com/customize.html |
09-19-2013, 12:52 PM | #4 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
i have :
# Indiquer la liste des mots considérés comme des "articles" pour les chaines de tri per_language_title_sort_articles = {'ron': ('Un\\s+', 'O\\s+', 'Ni\xc5\x9fte\\s+'), 'tur': ('Bir\\s+',), 'por': ('A\\s+', 'O\\s+', 'Os\\s+', 'As\\s+', 'Um\\s+', 'Uns\\s+', 'Uma\\s+', 'Umas\\s+'), 'ita': ('Lo\\s+', 'Il\\s+', "L'", 'La\\s+', 'Gli\\s+', 'I\\s+', 'Le\\s+'), 'nld': ('De\\s+', 'Het\\s+', 'Een\\s+', "'n\\s+", "'s\\s+", 'Ene\\s+', 'Ener\\s+', 'Enes\\s+', 'Den\\s+', 'Der\\s+', 'Des\\s+', "'t\\s+"), 'spa': ('El\\s+', 'La\\s+', 'Lo\\s+', 'Los\\s+', 'Las\\s+', 'Un\\s+', 'Una\\s+', 'Unos\\s+', 'Unas\\s+'), 'fra': ('Le\\s+', 'La\\s+', "L'", 'Les\\s+', 'Un\\s+', 'Une\\s+', 'Des\\s+', 'De\\s+La\\s+', 'De\\s+', "D'"), 'ell': ('O\\s+', 'I\\s+', 'To\\s+', 'Ta\\s+', 'Tus\\s+', 'Tis\\s+', "'Enas\\s+", "'Mia\\s+", "'Ena\\s+", "'Enan\\s+"), 'eng': ('A\\s+', 'The\\s+', 'An\\s+'), 'swe': ('En\\s+', 'Ett\\s+', 'Det\\s+', 'Den\\s+', 'De\\s+'), 'deu': ('Der\\s+', 'Die\\s+', 'Das\\s+', 'Den\\s+', 'Ein\\s+', 'Eine\\s+', 'Einen\\s+', 'Dem\\s+', 'Des\\s+', 'Einem\\s+', 'Eines\\s+'), 'hun': ('A\\s+', 'Az\\s+', 'Egy\\s+'), 'afr': ("'n\\s+", 'Die\\s+')} default_language_for_title_sort = None title_sort_articles = '^(A|The|An)\\s+' for the new entries ==> ok but i have to change the old ones in db |
09-19-2013, 11:16 PM | #5 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
So use the Update title sort option in the bulk metadata edit dialog.
|
09-20-2013, 12:12 AM | #6 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
I feel slow, I haven't scrolled down the Bulk metadata update window in a very long time. Not only did I discover the Update title sort option but a couple of other things I didn't realize existed.
|
09-20-2013, 04:23 AM | #7 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
So use the Update title sort option in the bulk metadata edit dialog.
have you the same solution for Author ??? |
09-20-2013, 04:25 AM | #8 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
09-20-2013, 04:36 AM | #9 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
i don't see where you can replace 'sort on author' by 'author' on Bulk metadata edit window
see hard copy |
09-20-2013, 04:51 AM | #10 |
Handy Elephant
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
|
It is a combination of first applying the tweak and then updating the titles using the bulk edit metadata dialog. Otherwise only new or manually edited titles use the tweak.
|
09-20-2013, 04:53 AM | #11 | |
Well trained by Cats
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
That works even if you enter nothing else on the form because it reads Authors and calculate the sort based upon the current (Tweaks) Rule |
|
09-20-2013, 04:54 AM | #12 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
You can go the other way (from Author_sort to Author) by going to the tag browser, right clicking on Author and selecting Manage Authors. He doesn't want to set Author_sort he wants to mass copy Author to Author_sort. Last edited by DoctorOhh; 09-20-2013 at 05:00 AM. |
|
09-20-2013, 05:17 AM | #13 |
Well trained by Cats
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
09-20-2013, 05:25 AM | #14 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
09-20-2013, 05:51 AM | #15 |
Member
Posts: 23
Karma: 10
Join Date: Jan 2013
Device: kobo glo
|
thanks but ..
If the author_sort_copy_method tweak is 'Copy', that will be the result of Automatically setting (from Authors) ok for the new entries but quid for the old ones ?? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set title sort to be the same as title | lizzielou | Library Management | 19 | 02-14-2018 05:30 AM |
Title to Title sort | imans314 | Library Management | 2 | 05-23-2013 04:41 AM |
Sort by author then title | richardwarriner | Library Management | 3 | 11-16-2011 01:00 PM |
Can I auto enter numbers to title/title sort? | blu- | Library Management | 19 | 02-16-2011 01:01 PM |
Sort by author AND title | bookends | Calibre | 2 | 05-09-2010 01:55 PM |