How do I write a script to Cap letters after quotation.
Ex:
Let 'em Dance to read - Let 'Em Dance
Now You Got 'em to read - Now You Got 'Em
Thanks
How do I write a script to Cap letters after quotation.
Ex:
Let 'em Dance to read - Let 'Em Dance
Now You Got 'em to read - Now You Got 'Em
Thanks
A script? Or an action?
If so: create an action of the type case conversion for the field you need (e.g. TITLE).
Add the apostrophe to the characters that show the word boundaries.
Convert | Tag - Tag | ALT+5
Select format string
Field:
TITLE
Format string:
$caps(%TITLE%,'' )
... or ...
$caps(%TITLE%,$char(39)$char(32))
Preview
From:
Let 'em Read to learn
To:
Let 'Em Read To Learn
... or even better ...
Convert | Tag - Tag | ALT+5
Select format string
Field:
TITLE
Format string:
$regexp(%TITLE%,'(\s''''.)','\U$1')Preview
From:
Let 'em read to learn (Let's do it again)
To:
Let 'Em read to learn (Let's do it again)
... or use an action ...
Begin Action Group Test_2012#20120623.ApoUpperAction #1
Actiontype 4: Replace with regular expression
Field ______________: TITLE
Regular expression _: (\s'.)
Replace matches with: \U$1
End Action Group Test_2012#20120623.ApoUpper (1 Action)
See also ....
/t/12513/1
DD.20120623.2013.CEST
Edit. DD.20120627.0630.CEST
Perfect... Thanks
To make sure you don't change files with 'let's' or 'They've' for example.
From: Let 'em Dance to read (Let's Not Change this)
To: Let 'Em Dance To Read (let'S Not Change this)
FILTER [F3] out the files first with the following examples: %title% MATCHES \s This will make ensure you only filter out 'Let 'Em Dance To Read' and NOT 'Let's Not Change this'Begin Action Group _Script Test#TEST
Action #1 Actiontype 4: Replace with regular expression Field ______________: TITLE Regular expression _: (\s+)'(.?) Replace matches with: $1'$upper($2) [_] Case sensitive comparisonEnd Action Group _Script Test#TEST (1 Action)
This will only effect anything with a space in front of the '.