Data Driven Category's Replace Mask With Soft Return

Started by Darius1968, July 16, 2022, 06:12:00 AM

Previous topic - Next topic

Darius1968

I was wondering if it's possible to set a replace mask of a data driven category to include paragraph marks?  (eg., if a line consists of Season #, then the result could become Video {lf} Season #)
...Such that:
Season #
...is now...
Video
Season #

Mario

The replacement is performed after the hierarchies are detected.

I suggest you produce Video|Season # in a tag first, e.g. using the Metadata Mechanic or a Metadata Template. This gives you access to variables and if conditions etc.
Then create your data-driven category based on that tag, and let it detect the hierarchy by looking at the |.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

#2
With that in mind, is it possible, via Metadata Mechanic or a Metadata Template, to involve a Shift+Enter?
Such that: 
Quincy M.E.
Season 8 Episode 4
Dying For A Drink
First Air Date:  Nov. 3, 1982

...becomes...
Quincy M.E.
Video
Season 8 Episode 4
Dying For A Drink
First Air Date:  Nov. 3, 1982


Mario

What would that Shift+Enter be for?
Data-driven categories don't care for line feeds, you can split hierarchies using any character. Why not insert | into the tag and let the data-driven category produce hierarchies based on | ?

Quincy M.E.|Video|Season 8 Episode 4|Dying For A Drink|First Air Date:  Nov. 3, 1982

as the source and then detect hierarchies for '|' would do what you want.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

Because, I already have many files that, for readability reasons, I have already used Shift+Enter to put different parts of the title on different lines.  So, to effect what you suggest, I would have to, as it stands now, manually go though my many files and replace those line feeds with |, unless you can tell me about a quicker way to complete the task with either Metadata Mechanic or a metadata template. 

Special note: 
I have already gotten my data driven category to acknowledge a line feed for my values in the Title Tag, using {lf}.  Problem is that if I do that, it breaks the Detect Hierarchies in that that is the only thing it will acknowledge, ignoring anything thereafter.  Is this a bug? 

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968


Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

What I mean there is that, as is, my title tag is divided into four parts by way of a line feed (Shift+Enter), and that I'm able to get my data driven category to detect hierarchy on the line feed, by entering {lf} as a character for the detect hierarchies.  But you say data driven categories aren't supposed to recognize line feeds.  So, why is it when I enter {lf}

Mario

I meant this is not a default hierarchy separator. Using line feeds to separate hierarchies is uncommon.
If you got it already working with {lf}, good. I believe MD mechanic does not know the special {lf} token I've added to data-driven categories, and neither do MD templates.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook