Quote:
Originally Posted by pennylane
@pghaworth
could you give me an example of how you changed the tweak file (the steps you took and what you changed) - I'm lost here
|
I'm pretty much lost too, but take the instructions that were posted and use the indication as a clue as to tell Calibre what to do.
Look at this and then experiment with the settings shown. The lower box is where you put your tweaks, and the last line of the tweak is where you put the option you want, i.e. library sort vs. alphabetical sort.
Quote:
Originally Posted by chaley
You should look at the tweaks (preferences -> advanced -> tweaks), and in particular the tweaks
Code:
# Control title and series sorting in the library view.
# If set to 'library_order', Leading articles such as The and A will be ignored.
# If set to 'strictly_alphabetic', the titles will be sorted without processing
# For example, with library_order, The Client will sort under 'C'. With
# strictly_alphabetic, the book will sort under 'T'.
# This flag affects Calibre's library display. It has no effect on devices. In
# addition, titles for books added before changing the flag will retain their
# order until the title is edited. Double-clicking on a title and hitting return
# without changing anything is sufficient to change the sort.
title_series_sorting = 'library_order'
# Control how title and series names are formatted when saving to disk/sending
# to device. If set to library_order, leading articles such as The and A will
# be put at the end
# If set to 'strictly_alphabetic', the titles will be sorted without processing
# For example, with library_order, "The Client" will become "Client, The". With
# strictly_alphabetic, it would remain "The Client".
save_template_title_series_sorting = 'library_order'
My guess is that you want 'strictly_alphabetic' for both.
|
For the author sort I copied it from the top tweak box into the lower tweak box and changed the option to make it do the sort based on how the title comes in.
The way I have set it in my example below, if the author comes in FN LN it inverts it to LN, FN, and if the author comes in LN, FN then it simply copies it verbatim to the author sort. Works great.
Code:
# The algorithm used to copy author to author_sort
# Possible values are:
# invert: use "fn ln" -> "ln, fn" (the original algorithm)
# copy : copy author to author_sort without modification
# comma : use 'copy' if there is a ',' in the name, otherwise use 'invert'
author_sort_copy_method = 'comma'
You can copy/paste all the code into the lower tweak box [or just the ones you want], set your preferences, and then test it. It took me a couple of tries to get it right but only because of a lack of understanding and a simple copy error.
Hope this sheds more light than darkness and confusion.