Quote:
Originally Posted by theducks
default_language_for_title_sort = None
Yes is not a legitimate alternate Language
If your System language is other than: fra you might consider that as the alternate value
|
Is there explanation anywhere for this tweak?
The problem, at the beginning, was the same with default_language_for_title_sort = None
I am looking for the way, with this line and the default line title_sort_articles = '^(A|The|An)\\s+' to sort French titles, as I could before, for six months (thread '
Words considered as articles for title sort strings', in the same forum, see: chaley's answer, 07-22-2011, 05:31 PM):
title_sort_articles = "^(A |The |An |Un |Une |L'|Le |La |Les |Des )\\s*"
With default tweak values :
# Set the list of words considered to be "articles" for sort strings
title_sort_articles = '^(A|The|An)\\s+'
default_language_for_title_sort = None
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+')}
It doesn't match, and Calibre doesn't accept
fra as a value in default_language_for_title_sort line...
I'm sure there is an easy solution, but which solution?
I think I found the right way: this tweak only matches if the Languages zone, in the Edit metadat window, is set as 'French'. But I found no explanation about this