ReNamer:Rules:Strip: Difference between revisions

From den4b Wiki
Jump to navigation Jump to search
(navigation)
(Document "Unicode range" option.)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:Cleanup}}
{{DISPLAYTITLE:ReNamer › Rules › Strip rule}}
 
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Extension|next=ReNamer:Rules:Case}}
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Extension|next=ReNamer:Rules:Case}}


== Strip Rule  ==
[[Image:StripRule.png]]


<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.  


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.
Character set parameters:


Every occurrence of each of the specified characters will be removed from the filename.  
{| class="wikitable"
|-
! Parameter
! Details
|-
| English
|
Strip all English characters.


* Numbers (0-9) 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)


The parameters are as follows:
|-
| Digits
| Strip digits 0 through 9.
|-
| Symbols
| Strip common symbols.
 
* All characters that are considered to be symbols are showed in the box on the right.
|-
| Brackets
| Strip common brackets.


{| class="prettytable"
* 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
| Specify any characters that need to be removed.
* Note that this is not a string. All characters in the text box will removed individually.
|-
| Unicode range
| Strip Unicode codepoints by their hexadecimal notation.
 
For example:
* "10000-10FFFF" for [https://www.compart.com/en/unicode/plane supplementary planes],
* "200B,200C,200D,FEFF" for [https://www.compart.com/en/unicode/search?q=zero+width#characters zero width characters].
|}
 
Positioning parameters:
 
{| class="wikitable"
|-
|-
! Parameter  
! Parameter  
! Details
! Details
|-
|-
| Digits
| Everywhere
| Strips digits
| 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"
|-
|-
| Symbols
! Parameter
| Strips symbols (all characters that are considered to be symbols are showed in the box on the right)
! Details
|-
|-
| Brackets
| Strip all characters except selected
| Strips brackets (but not the contents of the brackets)
|  
*If you want to delete the content as well, use the [[ReNamer:Rules:CleanUp|CleanUp]] rule instead.
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.
|-
|-
| User-defined
| Case sensitive
| Define any character that needs to be stripped off.
| Strip characters in a case sensitive manner.
*Note that this is not a string. All characters in the entry are searched for individually and removed.
|-
|-
| 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.
|}
|}
[[Category:ReNamer]]

Latest revision as of 23:34, 20 September 2025

StripRule.png

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.

  • Numbers (0-9) will not be stripped.
  • Non-English characters will not be stripped, e.g. characters with diacritical mark, which are used in many languages in Europe and Asia)
Digits Strip digits 0 through 9.
Symbols Strip common symbols.
  • All characters that are considered to be symbols are showed in the box on the right.
Brackets Strip common brackets.
  • The content between the brackets will remain unaffected.
  • If you want to delete the content as well, use the CleanUp rule instead.
User defined Specify any characters that need to be removed.
  • Note that this is not a string. All characters in the text box will removed individually.
Unicode range Strip Unicode codepoints by their hexadecimal notation.

For example:

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.

  • 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 If this check box is selected, the extension will be ignored by the rule.