Quote:
Originally Posted by DaltonST
You posted this:
You omitted the context of my response (my responding to a user's request to do something absurd). My full post was:
You clearly did not understand the discussion, or you would not have replied with a leading "No, ...". As the blue, underlined phrase above shows, I told the Library Codes user that he must use Calibre's functionality to create hierarchies of Tags, and not expect the Library Codes plug-in to do it for him.
|
Sorry, but your original response reads to me as saying that calibre doesn't support hierarchical tags. And while the statement of "Tags are comma-separated...always" is true, that is unrelated to how calibre does hierarchical tags. Overall, it sounded like you were saying that there was no way the plugin could create tags that could be treated as hierarchical by calibre.
Your response now makes me realise that what you were really saying is that either you don't think these tags represent a hierarchy, or you don't think it would be a good idea for this plugin to fiddle with these tags in this way. That is your decision.
Quote:
Essentially, the user was requesting a "small enhancement" to corrupt the Tag values in the Tag-Like Custom Column under discussion, #fast, by hardcoding in leading dots into its custom_column_NN table Tag-Like values. Not going to happen.
|
I'm really missing something here. I didn't see any mention of anything I would call "leading dots". The user seemed to be suggesting that if the FAST tag of (from the sample above posted by @knobunc) "Amyotrophic lateral sclerosis--Patients" was found for a book, store it on the book as "Amyotrophic lateral sclerosis.Patients". Then calibre could treat that column as a hierarchy. And looking at the sample you posted when you released the FAST support, it looks like this would work.
Quote:
I stand by my original response as being 100% accurate: The user needs to use Calibre's functionality to create hierarchies.
|
And for the record, if @knobunc wants to do this:
- Select the books to be changed.
- Open the bulk metadata editor and go to the "Search and replace" tab.
- In the fields:
- Search field - select the column with the tags you want to change.
- Search field - enter "(.*)--(.*)" (without the quotes)
- Replace with - enter "\1.\2" (without the quotes)
- Search mode - select "Regular expression"
- Destination field - select the column with the tags you want to change. Or another if you want to copy them there.
- Press OK or Apply to make the changes.
That will only do one level of changes. It would need to be run it multiple times if there are tags with multiple "--" separators. Or work out the correct regex to do them in one go.