IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> Captilize Text
Beluna
post Jun 23 2012, 14:40
Post #1


Member


Group: Full Members
Posts: 103
Joined: 9-February 10
Member No.: 11832
Mp3tag Version: 2.45b



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
Go to the top of the page
 
+Quote Post
ohrenkino
post Jun 23 2012, 19:09
Post #2


Member


Group: Full Members
Posts: 3228
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.55a



ZITAT(Beluna @ Jun 23 2012, 15:40) *
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.


--------------------
42 - wie war die Frage / what was the question / comment était la question
Go to the top of the page
 
+Quote Post
DetlevD
post Jun 23 2012, 19:12
Post #3


Member


Group: Full Members
Posts: 4130
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.54



QUOTE (Beluna @ Jun 23 2012, 15:40) *
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


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.ApoUpper

Action #1
Actiontype 4: Replace with regular expression
Field ______________: TITLE
Regular expression _: (\s'.)
Replace matches with: \U$1
[_] Case sensitive comparison

End Action Group Test_2012#20120623.ApoUpper (1 Action)



See also ....
http://forums.mp3tag.de/index.php?showtopic=14390


DD.20120623.2013.CEST
Edit. DD.20120627.0630.CEST

This post has been edited by DetlevD: Jun 27 2012, 08:13


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
Beluna
post Jun 24 2012, 14:39
Post #4


Member


Group: Full Members
Posts: 103
Joined: 9-February 10
Member No.: 11832
Mp3tag Version: 2.45b



QUOTE (DetlevD @ Jun 23 2012, 20:12) *

Convert | Tag - Tag | ALT+5

Select format string

Field:
TITLE

Format string:
$caps(%TITLE%,'' )

Preview
From:
Let 'em Read to learn
To:
Let 'Em Read To Learn


DD.20120623.2013.CEST


Perfect... Thanks
Go to the top of the page
 
+Quote Post
stevehero
post Jun 26 2012, 21:15
Post #5


Member


Group: Full Members
Posts: 424
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.55a



QUOTE (Beluna @ Jun 23 2012, 14:40) *
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

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'
%title%
HAS ' Titles with all '

THEN USE:
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 comparison

End Action Group _Script Test#TEST (1 Action)

This will only effect anything with a space in front of the '.




--------------------
▶✚♬ ═‎​ ♡
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th June 2013 - 04:58