Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2024, 12:43 PM   #1
Nicolas.Laurent
Member
Nicolas.Laurent began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2016
Location: France
Device: PocketBook Touch Lux 2
Inverting two authors

Hieveryone

I'm looking for a way to invert the two authors of a book, i.e. to switch from NAME1, Firstname1 & NAME2, Firstname2 to NAME2, Firstname2 & NAME1, Firstname1.

Thank you in advance for your help
Nicolas.Laurent is offline   Reply With Quote
Old 12-12-2024, 03:57 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,189
Karma: 28819096
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I don't think there's a specific feature to reorder the contents of the Authors column. I'm wondering why you would want to do that anyway, the order they're in often has relevance… e.g. institutional seniority.

This works for me:
  • F2 to open the Authors cell for editing in the Book list;
  • then Cut and Paste around the '&' character(s) within the cell;
  • the Author sort column will take care of itself.
BR
BetterRed is offline   Reply With Quote
Advert
Old 12-12-2024, 08:29 PM   #3
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,814
Karma: 68360983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by BetterRed View Post
I don't think there's a specific feature to reorder the contents of the Authors column.
Open MDE > Right-click authors > Manage authors.
ownedbycats is offline   Reply With Quote
Old 12-12-2024, 09:55 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,189
Karma: 28819096
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Manage Authors lists Authors as individuals not as joint authors.

Ah, I think you mean Edit Authors.

Click image for larger version

Name:	Screenshot 2024-12-13 123339.jpg
Views:	42
Size:	47.2 KB
ID:	212466

Not sure I even knew it existed, don't use MDE. For me drag-n-drop is hard to use, especially in lists.

Opening modal MDE, then right clicking to get into the Edit author modal, then drag-n-drop in a list, then doing whatever to back out of the modals seems like a lot of hard work… compared to using F2, then C, V, →, ← keys with Shift and Ctrl modifiers.

BR
BetterRed is offline   Reply With Quote
Old 12-12-2024, 10:08 PM   #5
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,814
Karma: 68360983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I've thought about asking to have keyboard shortcuts for the Edit Authors dialog - I can still use drag and drop but my motor function have been deteriorates
ownedbycats is offline   Reply With Quote
Advert
Old 12-12-2024, 10:21 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,189
Karma: 28819096
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ownedbycats View Post
I've thought about asking to have keyboard shortcuts for the Edit Authors dialog - I can still use drag and drop but my motor function have been deteriorates
Mine too, fingers weren't much use after they got smashed in the '90s, but they've been getting worse over the last decade or so due to neuropathy. I don't have diabetes and I don't drink alcohol which are the common causes.

BR

Last edited by BetterRed; 12-12-2024 at 10:28 PM.
BetterRed is offline   Reply With Quote
Old 12-12-2024, 10:47 PM   #7
karlfranz
Member
karlfranz began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jun 2024
Device: Boox Note Air 3 & 3C, KyBook 3 on iPad
Quote:
Originally Posted by BetterRed View Post
Mine too, fingers weren't much use after they got smashed in the '90s, but they've been getting worse over the last decade or so due to neuropathy. I don't have diabetes and I don't drink alcohol which are the common causes.

BR
Same here. Neuropathy combined with Dupuytren's Contracture. No longer able to play piano or guitar because of it and typing is a bitch.
karlfranz is offline   Reply With Quote
Old 12-13-2024, 06:05 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,143
Karma: 7908995
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You can invert the author list for selected books using global search & replace, regexp mode, with the search field "{template}".

Click image for larger version

Name:	Clipboard01.jpg
Views:	55
Size:	160.9 KB
ID:	212473

The template is
Code:
program:
	result = '';
	for aut in $authors separator ' & ':
		result = list_join(' & ', aut, ' & ', result, ' & ')
	rof;
	result
chaley is offline   Reply With Quote
Old 12-20-2024, 05:47 AM   #9
Nicolas.Laurent
Member
Nicolas.Laurent began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2016
Location: France
Device: PocketBook Touch Lux 2
Thank you Chaley, it's exactly what I need. But unfortunately, it doesn't work, the author remains the same (as you can see from the screenshot attached to your reply). it probably requires a minor modification to the code, but my attempts were unsuccessful...

Last edited by Nicolas.Laurent; 12-20-2024 at 06:10 AM.
Nicolas.Laurent is offline   Reply With Quote
Old 12-20-2024, 06:57 AM   #10
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,143
Karma: 7908995
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Nicolas.Laurent View Post
Thank you Chaley, it's exactly what I need. But unfortunately, it doesn't work, the author remains the same (as you can see from the screenshot attached to your reply). it probably requires a minor modification to the code, but my attempts were unsuccessful...
It works fine for me.

Example:
  • Before search & replace
    Click image for larger version

Name:	Before S&R.jpg
Views:	27
Size:	13.7 KB
ID:	212574
  • The search and replace
    Click image for larger version

Name:	S & R.jpg
Views:	27
Size:	162.3 KB
ID:	212575
  • After search and replace
    Click image for larger version

Name:	After S&R.jpg
Views:	25
Size:	12.4 KB
ID:	212576

    As you can see, the authors are inverted.

The image on my original post also shows the correct result. When using template search & replace the test result show the "after" in both the "Test text" and the "Test result" because the template output is the source.
chaley is offline   Reply With Quote
Old 12-20-2024, 07:56 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,558
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Is this a language confusion?

I would call what chaley did as Swap Author positions. (BTW Tnx chaley, I wanted to do that in a few places) And it looks like it worked to me

If you just want Ln, Fn -> Fn Ln IN THE LIBRARY VIEW. Us The Quality Check Plugin: Fix tools. (The Tweak adjustment fixes the Sort value rules)
theducks is offline   Reply With Quote
Old 12-20-2024, 08:18 AM   #12
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,143
Karma: 7908995
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
Is this a language confusion?
I wondered about that, but the example in the first post makes it clear. The OP wants to swap authors' positions in the list.

However, "Invert the order of the list" is a better description. It says what to do if there are more than 2 authors, and is what the template does.
chaley is offline   Reply With Quote
Old 12-20-2024, 08:38 AM   #13
Nicolas.Laurent
Member
Nicolas.Laurent began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2016
Location: France
Device: PocketBook Touch Lux 2
@Chaley: thank you, it's work now perfectly.
There's a slight difference between your two posts in the "search for" line : (.*) in the first, (^.*$) in the second. It may be an explanation

@theducks: you're perfectly right, it's a language confusion. All my apologies, I'm french.
Nicolas.Laurent is offline   Reply With Quote
Old 12-20-2024, 09:24 AM   #14
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,558
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Nicolas.Laurent View Post

@theducks:


I'm french.
They all say that (I used to work at a US branch of a Canadian company)
theducks is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inverting the Max 2 screen everalm Onyx Boox 5 09-04-2018 04:25 PM
Kindle Oasis 2017 9th inverting problem filipemep Amazon Kindle 16 03-08-2018 07:23 PM
Inverting cover color. Libron Calibre 12 03-02-2016 05:35 PM
convert PDFs to "night mode" by inverting colors? soondai PDF 7 08-07-2011 12:55 AM
Inverting Book Title and Author labels Logseman Calibre 5 05-29-2010 12:23 PM


All times are GMT -4. The time now is 08:59 PM.


MobileRead.com is a privately owned, operated and funded community.