Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-09-2018, 04:37 PM   #1
laszlopanaflex
Junior Member
laszlopanaflex began at the beginning.
 
laszlopanaflex's Avatar
 
Posts: 3
Karma: 10
Join Date: Nov 2018
Device: none
Alphabetize tags on individual records

Hi! I'm wondering if it is possible to alphabetize the list of comma-separated tags on each record in Calibre (not the tag browser, but the tags applied to a book). Currently, it looks like Calibre keeps the tags in the order in which they were entered.

I am admittedly a serial folksonomist and apply lots of tags to my books, so as to help others filter down my collection. I'm hoping there's a tweak or script that can re-order the tags alphabetically in ascending order, for example:

from:
BOOK1 tags: c, d, a, b, e
BOOK2 tags: w, z, y, x
BOOK3 tags: 4, 1, 2, 5, 6, 3
to
BOOK1 tags: a, b, c, d, e
BOOK2 tags: w, x, y, z
BOOK3 tags: 1, 2, 3, 4, 5, 6

Hopefully it is actually possible to accomplish this, but I'm not a very savvy/sophisticated user so I'm not sure.

Thanks in advance!
laszlopanaflex is offline   Reply With Quote
Old 11-09-2018, 06:25 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,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
There a list_sort function in the template language.

However, in the GUI the Tags are shown in sorted order in the book list, book details and edit metadata - where are you seeing them in the order they are stored?

BR
BetterRed is online now   Reply With Quote
Advert
Old 11-09-2018, 07:22 PM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by BetterRed View Post
However, in the GUI the Tags are shown in sorted order in the book list, book details and edit metadata - where are you seeing them in the order they are stored?
The metadata editor shows them in the stored order.

@laszlopanaflex: If you open the tag editor from metadata editor (the button to the left of the tags field, that will sort the tags. That can be saved.
davidfor is offline   Reply With Quote
Old 11-09-2018, 08:22 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,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
The metadata editor shows them in the stored order.
So it does, if you enter them there.

If you enter them in the book list, they get shown as sorted immediately. I normally use the Tag Editor from the book list with shift+F2. Another good reason to edit the metadata in the booklist.

BR
BetterRed is online now   Reply With Quote
Old 11-09-2018, 08:30 PM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by BetterRed View Post
So it does, if you enter them there.

If you enter them in the book list, they get shown as sorted immediately. I normally use the Tag Editor from the book list with shift+F2. Another good reason to edit the metadata in the booklist.
Nope, a reason to avoid editing in the booklist. I'm the opposite and want the tags in the order I enter them. This is one of the reasons I always run from source.
davidfor is offline   Reply With Quote
Advert
Old 11-09-2018, 09:28 PM   #6
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by davidfor View Post
Nope, a reason to avoid editing in the booklist. I'm the opposite and want the tags in the order I enter them. This is one of the reasons I always run from source.
Lol, same. I enter tags by order of importance/relevance. Thankfully, bulk s&r keeps the order.
ilovejedd is offline   Reply With Quote
Old 11-10-2018, 04:57 PM   #7
laszlopanaflex
Junior Member
laszlopanaflex began at the beginning.
 
laszlopanaflex's Avatar
 
Posts: 3
Karma: 10
Join Date: Nov 2018
Device: none
*thumbs up emoji*

Fantastic - thank you! I've been editing the tags in the Metadata Editor directly into the "tags" field and have been getting lost with my haphazardly-applied tags. This helps very much.
laszlopanaflex is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alphabetize list of multiple authors for single book [anthologies] meghane_e Library Management 7 06-22-2018 12:02 PM
Alphabetize and clean a style sheet roger64 Sigil 6 06-11-2012 11:47 AM
Regex to selectively grab individual tags? Sidetrack Library Management 1 05-02-2012 02:33 AM
Exporting based on individual tags BookJunkieLI Library Management 7 02-22-2012 04:18 PM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-19-2011 11:18 PM


All times are GMT -4. The time now is 09:24 PM.


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