Difference between revisions of "ReNamer:Rules:Case"

From den4b Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Strip|next=ReNamer:Rules:Serialize}}
 
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Strip|next=ReNamer:Rules:Serialize}}
  
== Case Rule ==
+
== Case Rule ==
 
+
<center>[[Image:CaseRule.png]]</center>  
<center>[[Image:CaseRule.png]]</center>
 
 
 
 
This rule changes the case of the filename. Options are: capitalize, to lower case, to upper case, invert case, and put only first letter capital (as in a sentence).  
 
This rule changes the case of the filename. Options are: capitalize, to lower case, to upper case, invert case, and put only first letter capital (as in a sentence).  
  
There is also an option to force case for specific text-fragments, such as CD, DVD, RF, etc. These fragments would not look natural in any other case (e.g. cd, dvd, rf), so the rule allows you to prevent changing the case of such terms in one stroke.
+
There is also an option to force case for specific text-fragments, such as CD, DVD, RF, etc. These fragments would not look natural in any other case (e.g. cd, dvd, rf), so the rule allows you to prevent changing the case of such terms in one stroke.  
  
The parameters are as follows:
+
The parameters are as follows:  
  
 
{| class="prettytable"
 
{| class="prettytable"
! Parameter
+
|-
 +
! Parameter  
 
! Details
 
! Details
 
 
|-
 
|-
| Case change
+
| Case change  
 
| Several options are offered.  
 
| Several options are offered.  
 
+
*The case of each option itself illustrates how that option works. For example, '''Capitalise Every Word'''.
* The case of each option itself illustrates how that option works. For example, '''Capitalise Every Word'''.
 
  
 
*'''Invert case''' will change all capital letters in the filename to lowercased ones, and all lowercased letters to capitalized ones.
 
*'''Invert case''' will change all capital letters in the filename to lowercased ones, and all lowercased letters to capitalized ones.
  
* The '''(none of the above)''' option is provided to disable the case conversions listed on the left, so you could independently operate the two options listed on the right side.
+
*The '''(none of the above)''' option is provided to disable the case conversions listed on the left, so you could independently operate the two options listed on the right side.
  
 
|-
 
|-
| Skip extension
+
| Skip extension  
 
| If this check box is selected, the extension will be ignored by the rule.
 
| If this check box is selected, the extension will be ignored by the rule.
 +
|-
 +
| Force case for fragments
 +
|
 +
This option forces the case of specified text-fragments (strings) in the file name. <br>
  
 +
<u>Note</u>: This check box is coupled with the box below it. (Enter the fragments in the box and then activate the option by selecting the check box.)
 +
 +
*
 +
You can set any case for the strings (ALLCAPS, Only first letter capitalalized, lowercase, MixedCase, etc.)
 +
 +
*
 +
You can specify ''multiple'' strings at a time, each with its own case format. To separate the strings from each other, put a comma between them.<br>(Note: In versions prior to v5.50, a space was used instead of a comma.)<br>
 +
 +
*
 +
The case for these strings will be set exactly as entered in the box, regardless of the options selected in '''Case change''' list.
 +
 +
Here are some typical examples of such strings:
 +
 +
{| width="200" cellspacing="1" cellpadding="1" border="1"
 
|-
 
|-
| Force case for fragments
+
| align="center" | '''Case'''<br>
| This option forces the case of specified fragments (strings) in the file name.
+
| align="center" | '''Examples'''<br>
  * The case may be anything (ALLCAPS, Only first letter capitalalized, lowercase, MixedCase, etc.)
+
|-
 +
|  
 +
ALLCAPS
 +
 
 +
|
 +
CD, DVD, TV, HTML, XML, C++, USA, GIMP,
 +
 
 +
|-
 +
|
 +
Only the First letter capitalized
 +
 
 +
|
 +
Java, India, English, Sunday, Easter, February
  
Note: This check box is coupled with the box below it. (Enter the fragments in the box and then activate the option by selecting the check box.)
+
|-
 +
|
 +
Mixed case
  
* Specify text fragments that must have a specific case. Case for these strings will be set as typed in the box regardless from options selected in '''Case change''' list.
+
|
Here are some typical examples of such strings:
+
  OpenSUSE, OpenOffice, ReNamer
ALLCAPS: CD, DVD, TV, HTML, XML, C++, USA, GIMP,
 
Only the First letter capitalized: Java, India, English, Sunday, Easter, February
 
  Mixed case: OpenSUSE, OpenOffice, ReNamer  
 
  
* Put a comma between different fragments (in versions prior to v5.50 space was used instead of a comma).
+
|}
 +
 
 +
<br>
  
 
|-
 
|-
| Extension always lower case
+
| Extension always lower case  
 
| Forces the extension to lowercase.  
 
| Forces the extension to lowercase.  
 
 
'''Note:''' This setting overrides any other setting that can alter the extension. For example, consider a case where the ALL UPPER CASE option is selected and the skip extension option is deselected. Logically, the extension should be converted into ALLCAPS. But if the '''Extension always lower case '''option is selected, the case of the extension will be converted to lowercase.This setting will override even the fragments case-conversion.  
 
'''Note:''' This setting overrides any other setting that can alter the extension. For example, consider a case where the ALL UPPER CASE option is selected and the skip extension option is deselected. Logically, the extension should be converted into ALLCAPS. But if the '''Extension always lower case '''option is selected, the case of the extension will be converted to lowercase.This setting will override even the fragments case-conversion.  
  
 
|}
 
|}
 +
 +
<br>

Revision as of 06:45, 20 May 2010

Case Rule

CaseRule.png

This rule changes the case of the filename. Options are: capitalize, to lower case, to upper case, invert case, and put only first letter capital (as in a sentence).

There is also an option to force case for specific text-fragments, such as CD, DVD, RF, etc. These fragments would not look natural in any other case (e.g. cd, dvd, rf), so the rule allows you to prevent changing the case of such terms in one stroke.

The parameters are as follows:

Parameter Details
Case change Several options are offered.
  • The case of each option itself illustrates how that option works. For example, Capitalise Every Word.
  • Invert case will change all capital letters in the filename to lowercased ones, and all lowercased letters to capitalized ones.
  • The (none of the above) option is provided to disable the case conversions listed on the left, so you could independently operate the two options listed on the right side.
Skip extension If this check box is selected, the extension will be ignored by the rule.
Force case for fragments

This option forces the case of specified text-fragments (strings) in the file name.

Note: This check box is coupled with the box below it. (Enter the fragments in the box and then activate the option by selecting the check box.)

You can set any case for the strings (ALLCAPS, Only first letter capitalalized, lowercase, MixedCase, etc.)

You can specify multiple strings at a time, each with its own case format. To separate the strings from each other, put a comma between them.
(Note: In versions prior to v5.50, a space was used instead of a comma.)

The case for these strings will be set exactly as entered in the box, regardless of the options selected in Case change list.

Here are some typical examples of such strings:

Case
Examples
ALLCAPS
CD, DVD, TV, HTML, XML, C++, USA, GIMP,
Only the First letter capitalized
Java, India, English, Sunday, Easter, February
Mixed case
OpenSUSE, OpenOffice, ReNamer


Extension always lower case Forces the extension to lowercase.

Note: This setting overrides any other setting that can alter the extension. For example, consider a case where the ALL UPPER CASE option is selected and the skip extension option is deselected. Logically, the extension should be converted into ALLCAPS. But if the Extension always lower case option is selected, the case of the extension will be converted to lowercase.This setting will override even the fragments case-conversion.