Page 1 of 1

set of rules

PostPosted: Thu Feb 12, 2009 11:00 pm
by tshirt
Hi Everyone,

My English is not too good but i'll try my best.

There are many files but i try to make one example to show all changes

Is there a way to do the following Automatically ?

filename: heres.comes.The.grump.unwantedtext.with.a.html.book.on.hand.pdf

1) Replace dot by spaces
2) Change Case (sentence)
3) BUT Case doesn't apply on words like with, of, on, the, etc.
4) Remove the word "unwanted"
5) All acronyms (defined of course) will be in Upper
6) Add a Prefix

Original:
heres.comes.The.grump.unwantedtext.with.a.Html.book.on.hand.pdf

Result:
eBook - Heres Comes the grump with a HTML Book on Hand.pdf

I'm all ears

Thanks In Advance

Agustin

Re: set of rules

PostPosted: Sat Feb 14, 2009 9:14 pm
by GMA
Hi, Agustín:
I'm assuming that you're asking if it can be done all in one step; otherwise is like you didn't even open the program to take a look at the options... :?
So, answering THAT question, you can do it all in one step except for the acronyms part:

1. Use Repl. (3) to replace dots with spaces.
2. In Case (4) select "Title" and use Excep. to avoid some words from being affected. They must be separated by colons, for example: of:on:the:a:with
3. Use RegEx (1) to remove the unwanted text (but only if that text is the same for all of your files; otherwise there's no way to automate that, and you'll have to remove it file by file). Make sure to include the dot before the second "(.*)":

MATCH: (.*)unwantedtext.(.*)
REPLACE: \1\2

4. In Add (7) > Prefix write "eBook - " (without the quotes)
5. Press Rename.

Result: "eBook - Heres Comes the Grump with a Html Book on Hand.pdf"

After that I'm afraid you're gonna need to use Repl. (3) as many times as needed to change the case in all the acronyms (for example, REPLACE: html WITH: HTML).
Best regards,

Gabriel.

P.S.:
Note to the devs: I'm thinking that a Case (4) > Only option (as oposed to Case (4) > Excep.) would be very useful in this kind of situations (I'll add it to the Suggestions forum).