1 (edited by Stefan 2007-04-22 01:21:16)

Topic: Change the case (uppercase/lowercase)

Change the case (uppercase/lowercase)

From:
   SONG TITLE.MP3

   To:
   Song title.mp3

   Use the expression:
   %Lf

   How does it work ?
   Between the character '%' and the "name" of the variable you can add a case modifier (upper/lower).
   It only modifies the string it is associated to.
   Four exist. Among them: 'L' sets the first character uppercase and the rest lowercase.
   %f represents the full name of the file.

   So, following the expression:
   %f  gives "SONG TITLE.MP3"
   %Lf gives "Song title.mp3"
   
   -  -  -  -  -
   BTW:
   %lf gives "song title.mp3"
   %Uf give "Song Title.mp3"
   %uf gives "SONG TITLE.MP3" (has no effect in this case sinse the file name is upper case already)
   


   --
   For more details just download Siren at http://www.scarabee-software.net/en/siren.html and consult the help.
   No installation needed, unzip and run. Siren stores it settings into an ini file.   <Here> you can see some screen shots of Siren.
   Enjoy Siren, the powerfully portable freeware renamer.

Re: Change the case (uppercase/lowercase)

Some more Info's.

You can also split the name into parts and change the case for each of this parts separately.

( Please read this post first for more about this:  http://scarabee.software.free.fr/forum/ … php?id=148 )


For example
for SONG TITLE.MP3

%b[1]  refers to "SONG"
so we can use
%Lb[1] to get "Song"

and
%Lb[1] %b[2].%e
gives "Song TITLE.MP3"

---

One of my favorites is this for MP3 files:

My rule is
* make every first char of the artist upper case
* make the very first char of the title upper only


So for
EXAMPLE:        peter framton - klavier is what is loves me.mp3
i use the
EXPRESSION:  %Ub[1] - %Lb[2].%ue
to get the
RESULT:         Peter Framton - Klavier is what is loves me.MP3

EXPLANATION:

%b             is the base name                                                                                                                                   [peter framton - klavier is what is loves me]
%b[1]         is one part of the base name which is split by an separator (see the list defined in  "Options/Modifications")  [peter framton]
%Ub[1]       the 'U' means first character of each word upper case, the others lower case.                                            [Peter Framton]
                  The words are separated by the characters specified in "Options/Modifications".

The 'L'         means first character uppercase, the rest lowercase.

The '%e'      itself refers to the extension.
The 'u'         in %ue means all characters upper case.

-------
Note:
you can use an separator "on the fly" which is NOT  specified in "Options/Modifications".
Just use this syntax [1, "sep"] ( again read more in http://scarabee.software.free.fr/forum/ … php?id=148 )



Press the F1-key while you are in Siren to read more about.
Enjoy Siren,  No installation needed, unzip and run. Siren stores it settings into an ini file.
------------------------------------------------------------------------------------------------------------

                                             Siren is a freeware file renaming program
                                               - portable, highly flexible, powerfully -
                                          If it's looking tricky it's easy to rename with Siren.
                                          http://www.scarabee-software.net/en/siren.html