Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2024, 11:05 PM   #1
coolioniki
Member
coolioniki began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: kindle paperwhite 3
How to change all tags to hierarchy

Hello! I'm trying to add all my tags to another column for easier library tagging management, I'm able to move all my tags from one column to another, but I'm not able to convert the tags to a hierarchy, eg:

long, fantasy, favourite -> long.fantasy.favourite

I am trying to do this in bulk, but it appears like this:
[your test] fantasy, long, favourite -> fantasy.long.favourite
[book 1] fantasy, long, favourite -> fantasy ::: long ::: favourite

https://imgur.com/a/uptNBDO

Adding a \ before the comma doesn't help either. Any advice appreciated!! I have 0 programming knowledge whatsoever.

Last edited by coolioniki; 03-07-2024 at 11:08 PM. Reason: image not showing
coolioniki is offline   Reply With Quote
Old 03-08-2024, 01:01 PM   #2
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,032
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
It is hard to imagine how this can be useful. IIRC tags are unordered, so you could end up with long.fantasy.favourite, fantasy.long.favourite, favourite.fantasy.long, etc. It gets worse if you have more tags. That said ...

Search & replace operates on 1 tag at a time, not the set of tags. There is never a comma in a single tag, so your search/replace does nothing.

To do what you want, you need to use the "template" search field. The template is {tags}, or perhaps in your case {#filter}. This lets you get all the tags as a single value instead as individual values. You then replace COMMA SPACE with PERIOD, as in ", " and ".". Set the destination field to tags or #filter.

Here is an image of the Search & replace dialog.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	134
Size:	157.1 KB
ID:	206783  
chaley is offline   Reply With Quote
Old 03-11-2024, 01:30 AM   #3
coolioniki
Member
coolioniki began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2020
Device: kindle paperwhite 3
Quote:
Originally Posted by chaley View Post
It is hard to imagine how this can be useful. IIRC tags are unordered, so you could end up with long.fantasy.favourite, fantasy.long.favourite, favourite.fantasy.long, etc. It gets worse if you have more tags. That said ...

Search & replace operates on 1 tag at a time, not the set of tags. There is never a comma in a single tag, so your search/replace does nothing.

To do what you want, you need to use the "template" search field. The template is {tags}, or perhaps in your case {#filter}. This lets you get all the tags as a single value instead as individual values. You then replace COMMA SPACE with PERIOD, as in ", " and ".". Set the destination field to tags or #filter.

Here is an image of the Search & replace dialog.
hey thank you so much!! i'm pretty strict with my own tagging for books so i think it will be okay. this worked for exactly what i wanted!! thanks!!
coolioniki is offline   Reply With Quote
Reply

Tags
python, tagging


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a hierarchy from tags Snomad Library Management 4 09-12-2023 11:31 AM
nested tags inheriting - any way to change? jdrpersonal21 Library Management 1 03-28-2023 07:28 AM
Change Case of ALL tags? Uncle Robin Library Management 5 04-13-2021 12:44 PM
Editing Tags Hierarchy enonod Library Management 5 11-29-2013 05:59 AM
Change Tags without Import into Library mh445 Devices 8 05-21-2012 10:55 AM


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


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