Difference between revisions of "ReNamer:Rules:Case"

From den4b Wiki
Jump to navigation Jump to search
(→‎Case Rule: Separated examples of Force case option)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Case Rule ==
+
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Strip|next=ReNamer:Rules:Serialize}}
[[Image:CaseRule.png]]
 
  
Change the case of the filename: capitalize, to lower case, to upper case, invert case, and put only first letter capital (as in a sentence).
+
== Case Rule  ==
  
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). This rule allows you to convert the case of such terms in one stroke.
+
[[Image:CaseRule.png|center]]
  
The parameters are as follows:
+
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).
  
{| class="prettytable"
+
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.
! Parameter
+
 
 +
The parameters are as follows:
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Parameter  
 
! Details
 
! Details
 
 
|-
 
|-
| Main options
+
| Case change
 
| Several options are offered.  
 
| Several options are offered.  
 +
*The case of each option itself illustrates how that option works. For example, '''Capitalize Every Word'''.
 +
 +
*'''Capitalize Every Word''' will first make all letters lowercase and then convert the first letter of each word into UPPERCASE.
 +
 +
*'''Capitalize AND Preserve''' will convert the first letter of each word into UPPERCASE; but will not affect the rest of the letters.
 +
 +
*'''all lower case''' will convert all letters to lowercase.
 +
 +
*'''ALL UPPERCASE''' will convert all letters to UPPERCASE.
 +
 +
*'''iNVERT cASE''' will change all capital letters to lowercase, and all lowercased letters to UPPERCASE.
  
* The case of each option itself illustrates how that option works. For example, '''Capitalise Every Word'''.
+
*'''First letter capital''' will change only the first letter to UPPERCASE, and rest of the letters to lowercase. (Compare this with the '''Capitalize AND Preserve''' option above.)
  
* In '''invert case''' option, all capital letters become small, and all small letters are capitalized regardless of their position in the name.
+
* The '''(none of the above)''' option is provided to disable the case conversions listed above it, so you could independently use the options listed on the right side of the window. This allows you to convert the case of extension, or case-convert specific text fragments (see below).
* In all other options, all letters in the original name are forced to lowercase first, and then converted as defined ion the option..
 
* The '''(none of the above) '''option is to disable the case conversions listed on the left. Now you can independently operate the two options listed on the right side.
 
  
 
|-
 
|-
| Skip extension
+
| Skip extension  
| If this check box is unselected, the extension will be included in 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.  
  
|-
+
<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.)
| Force case for fragments
 
| This check box is coupled with the box below it.  
 
  
* Specify text fragments that must have a specific case. For example:
+
*You can set any case for the strings (ALLCAPS, Only first letter capitalized, lowercase, MixedCase, etc.)
  
{| class="prettytable"
+
*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>
! Case
 
! Examples
 
  
|-
+
*The case for these strings will be set exactly as entered in the box, regardless of the options selected in '''Case change''' list.
| ALLCAPS
 
| CD, DVD, TV, HTML, XML, C++, USA
 
  
 
|-
 
|-
| Only first letter capitalized
+
| Extension always upper case
| Java, India, English, Sunday, Easter,
+
| Forces the extension to uppercase.
 +
'''Note:''' This setting overrides any other setting that can alter the extension. For example, consider a case where the '''all lowercase''' option is selected and the '''skip extension''' option is deselected. Logically, the extension should be converted into lowercase too. But if the '''Extension always upper case '''option is selected, the case of the extension will be converted to uppercase. This setting will override even the fragments case-conversion.
  
 
|-
 
|-
| Mixed case
+
| Extension always lower case  
| OpenSUSE, OOo, ReNamer,  
+
| 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.
  
 
|}
 
|}
* Put a comma between different fragments (in versions prior to v5.50 space was used instead of a comma).
 
  
 +
=== Examples of Force case option ===
 +
 +
You may want to use a very specific case format for certain text fragments, irregardless of other case options.
 +
 +
Here are some typical examples where "Force case" option may be useful:
 +
 +
{| class="wikitable"
 +
|-
 +
! Desired case format
 +
! Examples
 +
|-
 +
| ALLCAPS
 +
| CD, DVD, TV, HTML, XML, C++, USA, GIMP
 +
|-
 +
| Only the First letter capitalized
 +
| Java, India, English, Sunday, Easter, February
 
|-
 
|-
| Extension always lower case
+
| Mixed case
| Forces the extension to lowercase.
+
| OpenSUSE, OpenOffice, ReNamer
  
'''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.
+
|}
  
|}
+
[[Category:ReNamer]]

Latest revision as of 17:14, 11 November 2015

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, Capitalize Every Word.
  • Capitalize Every Word will first make all letters lowercase and then convert the first letter of each word into UPPERCASE.
  • Capitalize AND Preserve will convert the first letter of each word into UPPERCASE; but will not affect the rest of the letters.
  • all lower case will convert all letters to lowercase.
  • ALL UPPERCASE will convert all letters to UPPERCASE.
  • iNVERT cASE will change all capital letters to lowercase, and all lowercased letters to UPPERCASE.
  • First letter capital will change only the first letter to UPPERCASE, and rest of the letters to lowercase. (Compare this with the Capitalize AND Preserve option above.)
  • The (none of the above) option is provided to disable the case conversions listed above it, so you could independently use the options listed on the right side of the window. This allows you to convert the case of extension, or case-convert specific text fragments (see below).
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 capitalized, 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.
Extension always upper case Forces the extension to uppercase.

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

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.

Examples of Force case option

You may want to use a very specific case format for certain text fragments, irregardless of other case options.

Here are some typical examples where "Force case" option may be useful:

Desired case format 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