Difference between revisions of "ReNamer:Rules:Strip"
Jump to navigation
Jump to search
(Documented positioning parameters and "Case sensitive" option. Rephrased in few places.) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Extension|next=ReNamer:Rules:Case}} |
− | + | == Strip Rule == | |
− | |||
<center>[[Image:StripRule.png]]</center> | <center>[[Image:StripRule.png]]</center> | ||
− | |||
− | + | Strip characters from the filename. The rule has predefined character sets, like digits, symbols and brackets, but you can also define your own character set. All occurrences of the specified characters will be removed from the filename. | |
− | + | Character set parameters: | |
− | {| class=" | + | {| class="wikitable" |
|- | |- | ||
! Parameter | ! Parameter | ||
! Details | ! Details | ||
|- | |- | ||
− | | English | + | | English |
| | | | ||
− | Strip all English characters | + | Strip all English characters. |
− | *Numbers (0-9) will not be stripped. | + | * Numbers (0-9) will not be stripped. |
− | *Non-English characters will not be stripped | + | * Non-English characters will not be stripped, e.g. characters with [http://en.wikipedia.org/wiki/Diacritic diacritical mark], which are used in many languages in Europe and Asia) |
|- | |- | ||
| Digits | | Digits | ||
− | | Strip digits | + | | Strip digits. |
|- | |- | ||
| Symbols | | Symbols | ||
− | | Strip symbols | + | | Strip symbols. |
+ | |||
+ | * All characters that are considered to be symbols are showed in the box on the right. | ||
|- | |- | ||
| Brackets | | Brackets | ||
− | | Strip brackets | + | | Strip brackets. |
− | |||
+ | * The content between the brackets will remain unaffected. | ||
+ | * If you want to delete the content as well, use the [[ReNamer:Rules:CleanUp|CleanUp]] rule instead. | ||
|- | |- | ||
| User-defined | | User-defined | ||
| Define any character that needs to be stripped off. | | Define any character that needs to be stripped off. | ||
− | *Note that this is not a string. All characters in the | + | * Note that this is not a string. All characters in the text box will removed individually. |
+ | |} | ||
+ | |||
+ | Positioning parameters: | ||
+ | {| class="wikitable" | ||
|- | |- | ||
− | | Strip all characters except selected | + | ! Parameter |
+ | ! Details | ||
+ | |- | ||
+ | | Everywhere | ||
+ | | The characters will be stripped no matter where they occur in the filename. | ||
+ | |- | ||
+ | | Leading | ||
+ | | Strip characters only at the beginning of the filename. | ||
+ | |- | ||
+ | | Trailing | ||
+ | | Strip characters only at the end of the filename. | ||
+ | |} | ||
+ | |||
+ | Miscellaneous parameters: | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! Parameter | ||
+ | ! Details | ||
+ | |- | ||
+ | | Strip all characters except selected | ||
| | | | ||
Retains the selected characters only, and strips the rest. | Retains the selected characters only, and strips the rest. | ||
− | *This option is very useful to strip all non-English characters: Select this option along with the '''English''' option above. | + | * This option is very useful to strip all non-English characters: Select this option along with the '''English''' option above. |
− | + | |- | |
+ | | Case sensitive | ||
+ | | Strip characters in a case sensitive manner. | ||
|- | |- | ||
| Skip extension | | Skip extension | ||
Line 51: | Line 78: | ||
|} | |} | ||
− | + | [[Category:ReNamer]] |
Latest revision as of 22:23, 6 January 2021
Strip Rule
Strip characters from the filename. The rule has predefined character sets, like digits, symbols and brackets, but you can also define your own character set. All occurrences of the specified characters will be removed from the filename.
Character set parameters:
Parameter | Details |
---|---|
English |
Strip all English characters.
|
Digits | Strip digits. |
Symbols | Strip symbols.
|
Brackets | Strip brackets.
|
User-defined | Define any character that needs to be stripped off.
|
Positioning parameters:
Parameter | Details |
---|---|
Everywhere | The characters will be stripped no matter where they occur in the filename. |
Leading | Strip characters only at the beginning of the filename. |
Trailing | Strip characters only at the end of the filename. |
Miscellaneous parameters:
Parameter | Details |
---|---|
Strip all characters except selected |
Retains the selected characters only, and strips the rest.
|
Case sensitive | Strip characters in a case sensitive manner. |
Skip extension | If this check box is selected, the extension will be ignored by the rule. |