I probably have a very naive question here. In response to this fascinating post about using wikilinks as a translation tool, I decided to import my own text-based Latin dictionary into DEVONThink. I was able to split each definition into a different rich text file, but what I would like to do now is extract parts text within each file to use as aliases. Fortunately enough, the format of each file is pretty regular. Unfortunately, I don’t know how to use the scan text smart rule function with enough finesse to get the result I want.
Here’s what I’m dealing with. Most of my text files look like this:
ie. with the word presented in the first line without macrons, the word presented again with macrons followed by its gender, and then a definition in italics.
I would like to be able to extract all of the second line before the “(f)” and use that to create new aliases. I know how to use the scan text function to search for a string before “(f)”, and then use a placeholder to change the aliases the results. What I don’t know is how to look for a string only on the second line. Any help would be appreciated!
Thanks in advance! (and thanks to DEVONThink for creating software that allows people with no experience in programming or the alike take their first steps in automation)