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 11-09-2018, 05: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, 07:25 PM   #2
BetterRed
null operator
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: 11,311
Karma: 10578436
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 offline   Reply With Quote
Old 11-09-2018, 08: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: 15,492
Karma: 25810738
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
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, 09:22 PM   #4
BetterRed
null operator
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: 11,311
Karma: 10578436
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 offline   Reply With Quote
Old 11-09-2018, 09: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: 15,492
Karma: 25810738
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
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
Old 11-09-2018, 10: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: 3,041
Karma: 7348000
Join Date: Jan 2009
Location: in the middle of nowhere
Device: Paperwhite 3, iPad 9.7, 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, 05: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:02 PM
Alphabetize and clean a style sheet roger64 Sigil 6 06-11-2012 12:47 PM
Regex to selectively grab individual tags? Sidetrack Library Management 1 05-02-2012 03:33 AM
Exporting based on individual tags BookJunkieLI Library Management 7 02-22-2012 05:18 PM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-20-2011 12:18 AM


All times are GMT -4. The time now is 05:11 AM.


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