Difference between revisions of "ReNamer:Rules:Delete"

From den4b Wiki
Jump to navigation Jump to search
m (example cleanup)
("Delete current name" documented)
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Insert|next=ReNamer:Rules:Remove}}
 
{{Go|up=ReNamer:Rules|prev=ReNamer:Rules:Insert|next=ReNamer:Rules:Remove}}
  
== Delete Rule ==
+
== Delete Rule ==
  
[[Image:DeleteRule.png]]  
+
<center>[[Image:DeleteRule.png]]</center>
  
<br> This rule will delete all characters located between the '''From''' and the '''Until '''points. Optionally, it can delete from the specified position till the end of the name.  
+
This rule will delete all characters located between the '''From''' and the '''Until ''' positions. Optionally, it can delete from the specified position till the end of the name.  
  
 
The parameters are as follows:  
 
The parameters are as follows:  
  
{| class="prettytable"
+
{| class="wikitable"
 
|-
 
|-
 
! Parameter  
 
! Parameter  
Line 15: Line 15:
 
|-
 
|-
 
| From  
 
| From  
| Select either:  
+
| From which character-position you want to start the deletion.
*The position (count starts from 1)  
+
Select from the following options:  
*The delimiter string (Note that typically ''', . / ( ) -''' and space are used as delimiters, but you can specify any letter/digit/sign or even couple of signs as delimiter) .
+
*The starting position (count starts from 1)  
 +
*The delimiter from where the deletion starts.
 +
**The delimiter can be a single character or even a string.
 +
**Typically ''', . / ( ) -''' and space are used as delimiters.
  
 
|-
 
|-
 
| Until  
 
| Until  
| Same as above. In addition, you have the '''''till the end''''' option.  
+
| Till which point you want to delete:
*You can use two different delimiters in '''From '''and '''Until''' sections.
+
Select from the following options:
 +
*Count: Specify how many characters to be deleted, starting from the FROM position.
 +
*Delete till a specified delimiter is reached.  
 +
**You can use two different delimiters in '''From '''and '''Until''' sections.
 +
**The delimiter can be a single character or even a string.
 +
**Typically ''', . / ( ) -''' and space are used as delimiters.
 +
*Delete all characters till the end.
 +
 
 +
|-
 +
| Delete current name
 +
| A shortcut option for deleting the whole current name.
  
 
|-
 
|-
Line 28: Line 41:
 
| If this check box is unselected, the extension will be included in the rule.
 
| If this check box is unselected, the extension will be included in the rule.
 
|-
 
|-
| right-to-left  
+
| Right-to-left  
| We could say the '''From '''and '''Until''' positions would switch places. (The '''From '''point is at the right side and the '''Until''' point is on the left).
+
| If you select this option, ReNamer counts the position from the extreme right. (The '''From ''' and '''Until''' positions switch places.)
*When this option is selected, the "till the end" option in '''Until''' deletes all characters on the left (what we regard as the ''beginning ''of the name)
+
*When this option is selected, the "till the end" option in '''Until''' deletes all characters on the left (what we regard as the ''beginning'' of the name)
For example, to keep only the last 4 characters from the end, use:
+
For example, to keep only the four characters on the  right side of the name (and delete all the rest of the characters on the left), use:
 
{|
 
{|
 
! From
 
! From
Line 41: Line 54:
  
 
|-
 
|-
| Do not remove delimiter
+
| Do not remove delimiters
| Will retain the delimiters  
+
| If you select this option, the delimiters themselves will be retained.
 
*If you have used two different delimiters in '''From '''and '''Until''' sections, ''both'' of them will be retained.
 
*If you have used two different delimiters in '''From '''and '''Until''' sections, ''both'' of them will be retained.
  
 
|}
 
|}
 +
 +
[[Category:ReNamer]]

Revision as of 15:51, 5 January 2021

Delete Rule

DeleteRule.png

This rule will delete all characters located between the From and the Until positions. Optionally, it can delete from the specified position till the end of the name.

The parameters are as follows:

Parameter Details
From From which character-position you want to start the deletion.

Select from the following options:

  • The starting position (count starts from 1)
  • The delimiter from where the deletion starts.
    • The delimiter can be a single character or even a string.
    • Typically , . / ( ) - and space are used as delimiters.
Until Till which point you want to delete:

Select from the following options:

  • Count: Specify how many characters to be deleted, starting from the FROM position.
  • Delete till a specified delimiter is reached.
    • You can use two different delimiters in From and Until sections.
    • The delimiter can be a single character or even a string.
    • Typically , . / ( ) - and space are used as delimiters.
  • Delete all characters till the end.
Delete current name A shortcut option for deleting the whole current name.
Skip extension If this check box is unselected, the extension will be included in the rule.
Right-to-left If you select this option, ReNamer counts the position from the extreme right. (The From and Until positions switch places.)
  • When this option is selected, the "till the end" option in Until deletes all characters on the left (what we regard as the beginning of the name)

For example, to keep only the four characters on the right side of the name (and delete all the rest of the characters on the left), use:

From Until
Position 5 Till the end
Do not remove delimiters If you select this option, the delimiters themselves will be retained.
  • If you have used two different delimiters in From and Until sections, both of them will be retained.