Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-13-2014, 03:40 AM   #1
CyberPotato
Junior Member
CyberPotato began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2012
Device: Nook, Samsung Galaxy Note, Asus Nexus 7
Title Sort Question

I am not sure, but I think I have messed up a setting somewhere. The titles in my library are listed in proper library order, but they appear with their articles (e.g. "A" and "The") listed in front of the title, instead of behind it. That is, the title is listed as in the title field of the metadata, instead of the title sort field. Using the example title from the manual, "The Client" would show up under "C", but be listed as "The Client", in my library. Shouldn't it be listed under "C" as "Client, The"?

My current tweak settings are below.

title_series_sorting = 'library_order'

save_template_title_series_sorting = 'library_order'

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'", u'L\xb4', 'Les\\s+', 'Un\\s+', 'Une\\s+', 'Des\\s+', 'De\\s+La\\s+', 'De\\s+', "D'", u'D\xb4'), '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+'
CyberPotato is offline   Reply With Quote
Old 03-13-2014, 05:30 AM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@CyberPotato - this is my understanding of the Tweak - title_series_sorting. Slightly reworded and spaced out better (IMO).

Quote:
title_series_sorting - controls title sorting in the library view. If set to

library_order, the title sort field will be used when sorting on Title. In this case leading articles such as 'The' and 'A' will be ignored, unless you have manually edited the title sort field.

strictly_alphabetic, the titles will be sorted as-is, i.e by title , leading articles such as 'The' and 'A' are included in the sort.

For example, with library_order, 'The Client' will sort under 'C' because title sort will be 'Client, The'.

With strictly_alphabetic, 'The Client' will sort under 'T', because title sort will be 'The Client'.
What's not said explicitly is that in library view the book's title with the leading articles at the front is always displayed. But with the tweak set to library_order the list is sorted on title sort... So, 'The Client' will sort between 'City Lights' and 'Closed Doors'.

You can display title sort & author sort in Book Details by selecting the relevant columns/fields in Preferences->Look and Feel->Book Details.

Hope this helps - it also took me a while to work it out

Added - in Bulk Metadata Edit there's a checkbox Update title sort, I think it can be used to reset all the titles according the title_series_sorting setting. Best to backup library before doing any mass changes.

BR

Last edited by BetterRed; 03-13-2014 at 07:10 AM. Reason: see Added
BetterRed is offline   Reply With Quote
Advert
Old 03-13-2014, 06:59 AM   #3
CyberPotato
Junior Member
CyberPotato began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2012
Device: Nook, Samsung Galaxy Note, Asus Nexus 7
So, if I understand correctly, my library is displaying the titles correctly, when it shows the leading article in front of the title. I suppose I remembered incorrectly that it was otherwise in the past. Thanks for the help.
CyberPotato is offline   Reply With Quote
Old 03-13-2014, 07:20 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by CyberPotato View Post
I suppose I remembered incorrectly that it was otherwise in the past.
@CyberPotato - Not necessarily - I doubt there's anyone who knows every nook, cranny & wrinkle in calibre, I'm always learning something new.

Someone may well post something in the next few hours that tells us how to display 'title-sort' in the book list.

BR
BetterRed is offline   Reply With Quote
Old 03-13-2014, 08:22 AM   #5
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: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
@CyberPotatoSomeone may well post something in the next few hours that tells us how to display 'title-sort' in the book list.

BR
Make a custom column built from other columns. Set the template to {title_sort}.
chaley is offline   Reply With Quote
Advert
Old 03-13-2014, 04:12 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
Make a custom column built from other columns. Set the template to {title_sort}.
chaley - that's given me an idea to fix a minor annoyance in my Journals library

@CyberPotato - you could deselect the Title column, and name the new column something like Title [S]. Caveat, I don't think you'll be able to edit Title [S] cells within the library list by pressing F2 - as in correct 'Clinet, The' to 'Client, The'.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

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
save to file should take title and not title sort abuck Conversion 1 10-13-2013 11:56 PM
change 'sort by title' with 'title' jcarlier Calibre 17 09-20-2013 06:26 AM
Question about saving to disk title sort Connor Carroll Calibre 2 05-11-2013 04:00 AM
Can I auto enter numbers to title/title sort? blu- Library Management 19 02-16-2011 01:01 PM


All times are GMT -4. The time now is 03:56 AM.


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