![]() |
#1 |
Zealot
![]() Posts: 111
Karma: 10
Join Date: Nov 2013
Device: not one
|
reverse name - surname of author?
Hi
![]() I imported a lot of books and I would order all authors with the surname before the name, eg: William Irish I want to be Irish William In the tweak I had already set author_sort_copy_method = 'copy' but obviously in some cases does not work, then I copied the books that did not fit into a new library and tried to rename changing "copy" with the other options "fn ln" "ln, fn" 'invert' all work but all insert a comma between the last name and first name. You tell me which command should I use for dont' have the "comma" or what I must do, after the renaming, for delete the comma? Thanks ![]() |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Lauraq
I find that the best place to resolve Author naming anomalies is in the Author Maintenance list, that may sound trite but having a list of author names and author sort names makes it much easy to spot the anomalies - you can also fix up casing mistakes and resolve variations such as Pinyin v Wade-Giles etc. There are various pathways to get at the list, including
And I suspect that if you have the author_sort as last name followed by first name then the comma is mandatory - ie Joseph, Annabel - but not Joseph Annabel - but I could be wrong. BR Last edited by BetterRed; 11-10-2013 at 03:30 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
|
I don't know if there's an easy way to drop the comma, but in case there isn't, you could create a custom column build from other columns behaving like tags, then give it this as a template
Code:
{author_sort:'re($, "\,","" )'} This way you don't need to jump through hoops editing or renaming authors and leave them as they arrive in metadata |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Getting the author name "right" during import is up to you. After import you edit the author so that it appears the way you want. From what you say, it seems as if you want the authors to show as LN FN, but that isn't totally clear. If you want authors to display as LN FN, then you probably want the author sort tweak to be set to "copy". Author sort will also be LN FN. As said above, it is up to you to ensure that the author names are correct. Calibre can't help you with that. If you want the author names to display as FN LN and that you want author sort to be LN FN, you should set the tweak to "nocomma". As above, it is up to you to ensure that the author names are all in the correct order. If you do not use commas then there is no way for calibre to guess what order an author's name is in. "John Doe" and "Doe John" look exactly the same. As a result, things like the quality check plugin and search/replace are probably of no help to you. Bottom line: it is up to you to ensure that author names are consistently in one form or another. Once that work is done, you set the tweak to tell calibre how to convert an author name to author sort. Because you are not using commas, there is very little automation available to help you. |
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() Posts: 111
Karma: 10
Join Date: Nov 2013
Device: not one
|
these days I will try to better understand your comments because my English is not good.
What I would say is that it seems to me that Calibre has many limitations, it should be trivial to have the option to reverse first and last name, or do not put a comma (it is not clear what it is for), or put in a tiny, all without having to know the various codes or complicated settings. Thanks for the help |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
Quote:
The comma allows calibre to know which word is a first name or last name. The program has to know which name to use when sorting by author. The program does not know every first and last name in the world. All the program knows is a certain group of letters is a name and -- depending on whether there is a space (" ") or comma and space (", ") -- if this particular bunch of letters is supposed to be a first name or last name. If you use author sort = "copy" then the exact author name you enter into the field will be used for sorting, without a comma. But that means you are going to have to do the necessary work to enter information the way you want it to appear. Every other user of this software has had to do the same thing for their unique needs. |
|
![]() |
![]() |
![]() |
#7 | |
Zealot
![]() Posts: 111
Karma: 10
Join Date: Nov 2013
Device: not one
|
Quote:
Last edited by Lauraq; 11-11-2013 at 04:57 PM. |
|
![]() |
![]() |
![]() |
#8 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
If you have
author_sort="copy" Then you can enter the name of the author as: Smith John And everything will work as you want it to work. Test it by making a small test library with just 2-3 books and see. You can use bulk metadata edit and search and replace, using regular expressions to automatically convert the current names in bulk. Provided they all use the exact same naming convention. Either fn ln or ln, fn. You will also have to request calibre to update the author sort field. |
![]() |
![]() |
![]() |
#9 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Below is the full tweak info. Spoiler:
This is not correct, you are the first person in over 4 years of reviewing this forum that I can recall ever having an obsession about the comma in the actual author column. chaley, one the main contributors to calibre's code answered your question here. Quote:
However, as Adoby points out above you can do what you want with the tweak above using the copy option. Then make sure that each entry in the author column is LN FN. Select all and in edit metadata select Automatically set author sort. Good Luck. Last edited by DoctorOhh; 11-12-2013 at 02:08 AM. |
||
![]() |
![]() |
![]() |
#10 |
Zealot
![]() Posts: 111
Karma: 10
Join Date: Nov 2013
Device: not one
|
Thanks really a lot of aid that are giving me but unfortunately I do so much work to translate and follow your advice
![]() ![]() |
![]() |
![]() |
![]() |
#11 |
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
1. Apply the tweak: author_sort_copy_method="copy"
2. Edit and change author for all books to ln fn. For example "Smith John". 3. Select all books and Edit Metadata. Select update author_sort. Done. When you add new books, make sure that you add them with author in the format ln fn. I suggest you first try this on a small test library with just a few books. Step 2 can be done fast and efficiently on many books by using bulk metadata edit and search and replace with regular expressions. But exactly how depends on what the author field contains now. And especially if that format is consistently used. Please note that some functions in calibre most likely will not work properly any longer. For instance the quality check plugin, but maybe also metadata download. Possibly other things as well. Last edited by Adoby; 11-12-2013 at 09:44 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Author sort by surname in Kindle? | LeabharOm | Calibre | 3 | 12-28-2012 04:08 PM |
Author, surname and givenname | Wilcoo | Calibre | 15 | 09-17-2011 07:19 PM |
setting author surname alphabetically | makeitsimple | Library Management | 1 | 03-07-2011 02:52 AM |
Sorting books by author surname on Sony reader | AlexBell | Library Management | 7 | 02-16-2011 02:25 AM |
finding duplicates and sort author by surname ? | geordiejohn | Calibre | 0 | 12-23-2010 01:59 PM |