![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jun 2019
Device: none
|
How to add tweak for author_use_surname_suffixes
Hi,
![]() It's a few days I'm using Calibre and going to sort authors of 2000+ books. In Persian it's common that surnames have a suffix. for example: pur, abadi, nezhad, etc. Code:
first, last ali, zamani pur kamran, sharafi pur hasan, kamal abadi fatemeh, ebrahim abadi arash, karim nezhad ![]() |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,919
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Preferences: Tweaks:
You want ID: author_sort_copy_method |
![]() |
![]() |
![]() |
#3 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jun 2019
Device: none
|
With that I have a 'copy' option which don't have benefit of 'comma' mode like sorting authors with surnames in Authors browser (in left panel).
Are these tweaks available to end-users in a folder or the like to manipulate? |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,919
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Look further down on that. there are suffixes there also
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jun 2019
Device: none
|
'author_name_suffixes' is a little near to what I mean, but yet doesn't result in a perfect sort on authors since it ignores suffixes in surnames.
Simply, I want to implement 'author_use_surname_prefixes' but for suffixes. ![]() ![]() |
![]() |
![]() |
![]() |
#6 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 437
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
I don't think that the implementation of a author_use_surname_suffixes is relevant.
The way Caliber works to sort the names makes that, Yes it is necessary to pay attention to the prefixes and to manage them, but the management of suffix is superfluous (since they will all be grouped in the same place). Develops a case where sorting a <first name> must be perfectly identical to <first name>+<suffix>? Last edited by un_pogaz; 05-02-2022 at 04:02 AM. |
![]() |
![]() |
![]() |
#7 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,123
Karma: 168808721
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#8 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,645
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
See "The Structure of Persian Names" ==>> https://citeseerx.ist.psu.edu/viewdo...=rep1&type=pdf Last edited by BetterRed; 05-03-2022 at 12:02 AM. |
|
![]() |
![]() |
![]() |
#9 | |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 437
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,123
Karma: 168808721
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Jun 2019
Device: none
|
Thanks all for your attention.
![]() Quote:
![]() I think a more detailed example will help. This is my list of authors (see attachment to copy): ![]() Many names are as simple as last one "Elmira Abootorabi": a one-word firstname and a one-word lastname, but there are some names with compound parts and because in many compound lastnames that consist of two parts, the second part is the same, I want to Calibre treat the first and second part of lastname as a whole lastname. And this is my current calibre tweak: Spoiler:
|
|
![]() |
![]() |
![]() |
#12 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,645
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Code:
author_name_suffixes = ('abadi' 'ara' 'chi' 'dust' 'fard' 'far' 'ian' 'yan' 'ju' 'kiya' 'kia' 'manesh' 'mand' 'niya' 'nia' 'nejad' 'nezhad' 'nejhad' 'parast' 'pur' 'pour' 'poor' 'rad' 'tabar' 'vand' 'var' 'yar' 'zadeh' 'zad') BR |
|
![]() |
![]() |
![]() |
#13 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jun 2019
Device: none
|
Yes, that's working. I should confess that when I was trying suffixes, I didn't checked sort order and by seeing that a name like "ali hasan abadi" turns into "abadi ali, hasan" in Manage authors window, I thought "abadi" in "hasan abadi" will be ignored on sort and then order of lastnames like "hasan pur", "hasan abadi" wouldn't be perfect... That's all wrong. Sorry.
Thank you all for your time |
![]() |
![]() |
![]() |
Tags |
authorsort, suffixes, tweaks |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Style tweak? | embryo | KOReader | 11 | 09-26-2020 09:02 PM |
Trying to tweak calibre | BluffOwl | Introduce Yourself | 1 | 03-22-2019 01:33 AM |
Where did Tweak ePub go? | MelBr | Calibre | 2 | 01-21-2014 01:37 PM |
0.8.41 - New Category Tweak | nynaevelan | Calibre | 4 | 02-25-2012 12:05 PM |
Sorting Tweak | atjnjk | Calibre | 6 | 08-31-2010 06:36 AM |