Converting only one character

Goodnight.
I need other technical help (support).
There are two conversion operations.
But for a single letter, after the apostrophe, parentheses or cuotas
One from lowercase to uppercase, for use... with singer names (%artist%).
Another, from uppercase to lowercase, to use... with the name of the song (%title%).

example for up (before -> after):

D'ammare -> D'Amare
John'mary -> John'Mary
John, (the) Legend -> John, (The) Legend
Paul, "the" Man -> Paul, "The" Man

example for down (before -> after)

Can'T -> Can't
I'M -> I'm

Thanks.

Treat these with an action of the type "Case Conversion" in which you add the characters that describe a word boundary for you. Do not include the apostrophe.

The other cases like

I see as a an upper case letter follwed by the apostrophe and 2 lowercase letters.
Try
$regexp(%artist%,(\u)''(\l[a-z]),$1''\u$2)
I cannot think of anythig decent for

(is that a real case?)

Good morning.
Forgive me for so many questions, I'm a newbbie and I use google translate as I don't know the English language.

I used the sequence
Menu -> Actions -> Actions -> New -> (group name) "Capitalisar"
-> (new window) -> New -> mixed case -
For each of the signs.
|However, only the last one works.
The configuration file looks like this:
capitalizar.mta

[#0]
T=1
F=_ALL
1=1
2="

[#1]
T=1
F=_ALL
1=1
2=[

[#2]
T=1
F=_ALL
1=1
2=(

[#3]
T=1
F=_ALL
1=1
2={

E o arquivo capitalizar.mtg

selection=Case conversion\u000b0\u000bCD-R\u000b0\u000bStandard\u000b0\u000bCapitalizar\u000b1\u000b

Do not create a separate action for each character that describes a word boundary but just 1.
In that action enter a list of characters like
"(.: /
Otherwise you execute the action several times and each time only the single character is taken and that may reverse the conversion of the previous actions.

And just as @lyricslover pointed out: it is also no good idea to apply such an action to _ALL. There may be unwanted side effects.

Please not also, that there are a number of artists who like their names with strange cases like
t.A.T.u.
2Inventions
2Pac
a l l i e
A*Teens
ZZ Top
AC/DC
a-ha

and many more

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.