View Single Post
Old 05-13-2012, 02:34 PM   #1
lousignolo
Member
lousignolo began at the beginning.
 
lousignolo's Avatar
 
Posts: 11
Karma: 10
Join Date: Jul 2011
Location: France
Device: Archos 7 0b eReader
Set the list of words considered to be "articles" for sort strings

Hi.

There is something new in Preferences > Tweaks > Set the list of words considered to be "articles" for sort strings

I have the following lines:

# Set the list of words considered to be "articles" for sort strings

title_sort_articles = "^(A |The |An |Un |Une |L'|Le |La |Les |Des |Der |Die |Das |Ein |Eine )\\s*"

default_language_for_title_sort = Yes

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+')}

In the past, I had only :

# Set the list of words considered to be "articles" for sort strings

title_sort_articles = "^(A |The |An |Un |Une |L'|Le |La |Les |Des |Der |Die |Das |Ein |Eine )\\s*"

and, at that time, I could sort book titles after the article. Now Calibre refuses to sort < Le chapelet de jade > as < chapelet de jade, Le > and the same thing for all French titles. There is no problem for English articles

All existing French titles remain with the former title sort, in the Title sort zone, but now shown with a red background, and if I try to click on the arrow, between Title zone and Title sort zone, gives a Title sort identical to the Title on the left:
(Title) La charrette bleue >>> (Title sort) La charrette bleue

That's bad because I have hundreds of French books which have a right sort and now are shown as having a bad one, plus I can't add no other correct title sort. What can I do? I tried to remove the new lines but it doesn't matter.

Thanks for any help.

Another question: if this can't be changed, is there an easy way to come back to a former release of Calibre (when I had no p^roblem with Title sort)? I know where a re the former releases of Calibre on Sourceforge, but can I remove the present release and install the former one?

Last edited by lousignolo; 05-13-2012 at 03:00 PM.
lousignolo is offline   Reply With Quote