# How to put a capital letter in the beginning of sentence without the button of shortcut?

**URL:** https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302
**Category:** General Discussion
**Created:** [November 7, 2014, 11:39pm UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302 "2014-11-07T23:39:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 7, 2014, 11:39pm UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/1 "2014-11-07T23:39:52Z")

</div>

Hello I would manually like to put my titles(securities) in Capital letters in the beginning of sentence with if there is a space, a hyphen(link), a space. What would give for example: The empire counter attack - The imperial march

By using Conversion of break-in(breakage) then Capital letter in the beginning of sentence and at the beginning of word with - It puts me all the words with the beginning of the capital words while I chose capital letter in the beginning of sentence. Certainly a bug.

Thank you.

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [November 8, 2014, 3:21am UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/2 "2014-11-08T03:21:46Z")

</div>

I think smth you are doing wrong :-).  
I tried with 'dIRE STRAITS - sULTANS of Swing'  
Action: Case conversion  
Field: Title  
Case: Sentence  
Word: ' - ' (without quotes)

result: Dire Straits - Sultans Of Swing  
Please double check before claiming a bug :-).

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 8, 2014, 11:11am UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/3 "2014-11-08T11:11:57Z")

</div>

Thank you for your answer. I made  
Case conversion  
Field: title  
Case conversion: capital letter in the beginning of sentence  
At the beginning of word with: ' - '

It does not work. That makes for me: Jaded Future - Intended Tired instead of Jaded future - Intended tired

I tried with at the beginning of word with: "-"  
It does not work either.

I have find the following code to make him(it) but the problem he(it) does not make him(it) for '-'

Replace with regular expression

Field : TITLE

Regular expression : ( |.|^)(\w)(?= |.|$)

Replace matches with : $1$upper($2)

then

Field : TITLE

Regular expression : ([^-])( \u )

Replace matches with : $1$lower($2)

If we can transforms me the code for the credit note with the expression ' - '

It seems to me that at the beginning of the installation of the software I had no this bug.

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [November 8, 2014, 12:14pm UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/4 "2014-11-08T12:14:55Z")

</div>

> [@Sylvain.dmde](#):
>
> Thank you for your answer. I made  
> Case conversion  
> Field: title  
> Case conversion: capital letter in the beginning of sentence  
> At the beginning of word with: ' - '
> 
> It does not work. That makes for me: Jaded Future - Intended Tired instead of Jaded future - Intended tired.

Action: Replace with regular expresion  
Regular expression: (?:(?\<=\s-\s)|^)(.\*?)(?=$|\s-\s)  
Replace with: $caps3($1)  
It works. Idea is to find all substrings starting after ' - ' or beginning of string and ending on ' - ' or end of string.

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 8, 2014, 4:46pm UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/5 "2014-11-08T16:46:43Z")

</div>

I made him(it) by putting it metant in Field: TILE and the code (?☹?\<=\s-\s)|^)(.\*?)(?=$|\s-\s) who(which) gives me for my titles(securities) caps3 ($1 ) which is not the sought(studied) purpose.

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 8, 2014, 11:50pm UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/6 "2014-11-08T23:50:09Z")

</div>

It does not work! That renames(reappoints) my title like that: caps3 ($1)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 9, 2014, 8:30am UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/7 "2014-11-09T08:30:32Z")

</div>

> [@Victor Kostas](#):
>
> Action: Replace with regular expresion  
> Regular expression: (?:(?\<=\s-\s)|^)(.\*?)(?=$|\s-\s)  
> Replace with: $caps3($1)  
> It works. Idea is to find all substrings starting after ' - ' or beginning of string and ending on ' - ' or end of string.

The problem with the case conversion and the list of characters as word delimiters is that only a single letter gets evaluated.  
So, ' - ' is actually 3 letters with twice the same: the space.  
And as the space also appears between the words all words get a capital letter. So the usual case conversions do not work.

But as the case conversion in general seems to be rather homespun, I would like to divert your attention to a thread that deals with the English conventions:

[Natural Mixed Case and Natural MixedLower Case](https://community.mp3tag.de/t/15863/1)

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [November 9, 2014, 9:21am UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/8 "2014-11-09T09:21:51Z")

</div>

> [@Sylvain.dmde](#):
>
> It does not work! That renames(reappoints) my title like that: caps3 ($1)

It works for me. Can you please make sure you have the latest mp3tag version and you place dollar sign ($) before **caps** function?  
Title: Dire straits - Sultans of swing  
I tried with multiple replace with regular expressions actions  
Field: TITLE  
Regular expression: (?:(?\<=\s-\s)|^)(.\*?)(?=$|\s-\s)Replace matches with:

1. UPPER CASE  
$upper($1)  
Result: DIRE STRAITS - SULTANS OF SWING
2. lower case  
$lower($1)  
Result: dire straits - sultans of swing
3. Sentence Case  
$caps3($1)  
Result: Dire straits - Sultans of swing
4. Word Case  
$caps($1)  
Result: Dire Straits - Sultans Of Swing

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 9, 2014, 10:09am UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/9 "2014-11-09T10:09:53Z")

</div>

Thank you very much, I tried it that my works great.

---

<div class="post-metadata">

### Author: ![vkostas](https://community.mp3tag.de/user_avatar/community.mp3tag.de/vkostas/32/227_2.png) [@vkostas](https://community.mp3tag.de/u/vkostas)
#### Post date: [November 9, 2014, 11:44am UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/10 "2014-11-09T11:44:22Z")

</div>

> [@ohrenkino](#):
>
> The problem with the case conversion and the list of characters as word delimiters is that only a single letter gets evaluated.  
> So, ' - ' is actually 3 letters with twice the same: the space.  
> And as the space also appears between the words all words get a capital letter. So the usual case conversions do not work.
> 
> But as the case conversion in general seems to be rather homespun, I would like to divert your attention to a thread that deals with the English conventions:
> 
> [Natural Mixed Case and Natural MixedLower Case](https://community.mp3tag.de/t/15863/1)

Thank you for pointing the thread but it works fine, no?  
What I proposed, is in fact a universal solution for multiple values fields. Delimiter in this case is ' - '. It works the same efficiently for other delimiters by only replacing ' - ' with the desired one (e.g. '; ').  
Case conversion function applies to each "value" of the field ($1).  
Someone may replace current function with another one for case conversion or not.

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 23, 2014, 3:32pm UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/11 "2014-11-23T15:32:28Z")

</div>

How to make your code **(:? (\<= \ S \ s) | ^) (.? \*) ($ = |? \ S \ s)** also take into account irregular expretion **[]** For I would an album name like this [Mirrors] instead of [mirrors] Thank you.

---

<div class="post-metadata">

### Author: ![sylvain.dmde](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@sylvain.dmde](https://community.mp3tag.de/u/sylvain.dmde)
#### Post date: [November 29, 2014, 1:54pm UTC](https://community.mp3tag.de/t/how-to-put-a-capital-letter-in-the-beginning-of-sentence-without-the-button-of-shortcut/16302/12 "2014-11-29T13:54:59Z")

</div>

This is new to me. It works, but for some title like this: **My love, me life** I am: **My lOve** or **I do, I do, I do, I do, I do** it makes me: **I do** choosing code: **(?☹?\<=\s-\s)|^)(.\*?)(?=$|\s-\s)**. With **$caps3($1)**. Why?
