null operator (he/him)
Posts: 21,877
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Originally Posted by nami
Thanks all for your attention.
Yes, you are right.
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:
Code:
# Author sort name algorithm
author_sort_copy_method = 'comma'
author_name_suffixes = ('Jr',
'Sr',
'Inc',
'Ph.D',
'Phd',
'MD',
'M.D',
'I',
'II',
'III',
'IV',
'Junior',
'Senior')
author_name_prefixes = ['Mr',
'Mrs',
'Ms',
'Dr',
'Prof',
'آقای',
'خانم',
'دکتر',
'مهندس',
'پروفسور',
'پرفسور',
'جناب آقای',
'جناب خانم',
'سرکار خانم']
author_name_copywords = ['Agency',
'Corporation',
'Company',
'Co.',
'Council',
'Committee',
'Inc.',
'Institute',
'National',
'Society',
'Club',
'Team',
'سازمان',
'موسسه',
'مؤسسه',
'شرکت',
'نهاد',
'گروه',
'کمیته',
'مرکز',
'مدیریت',
'نشر',
'آموزش',
'ترویج',
'آثار',
'اداره',
'اتحادیه',
'شرکت\u200cها',
'کارگروه']
author_use_surname_prefixes = False
author_surname_prefixes = ['da', 'de', 'di', 'la', 'le', 'van', 'von']
|
What happens if you replace the existing suffixes with the Persian name suffixes (in Persian RTL script) e.g.:
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')
Or add them to the existing list as you have with prefixes.
BR
|