Difference between revisions of "ReNamer:Analyze"

From den4b Wiki
Jump to navigation Jump to search
m (re-word)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Up|ReNamer}}
 
{{Up|ReNamer}}
  
The '''Analyze tool''' allows to apply rules to the text loaded into its window. This is very useful to see the effect of the rules using dummy text (for example before using the Insert rule).
+
When you select the '''Analyze tool''' option (or press '''Shift+A'''), ReNamer launches a window, where you can enter any arbitrary text and apply rules entered in the '''Rules''' pane.
  
The text may be a filename (or multiple filenames) loaded from '''Files''' pane or any text manually created by user. It also allows to check the positions of any character in the text just by pointing to it with keyboard or mouse. The appropriate data is displayed in the status bar of the window.
+
This is very useful to see the effect of the rules using dummy text (for example before using the [[ReNamer:Rules:Insert|Insert rule]]). It also allows to check the positions of any character in the text just by pointing to it with keyboard or mouse. The cursor position and selection information are displayed in the status bar of the window (''Line'', ''Position'', ''Right'' and ''Selection'').
  
Let us see an example.
+
The input text may be a file name (or multiple file names) loaded from '''Files''' pane, or any text manually entered by user - which can be very useful when you want to clean a piece of arbitrary text, for example.  
 
 
I had already added a single [[ReNamer:Rules:Insert|Insert Rule]] in the '''Rules''' pane of ReNamer. It was set to insert "''x''" (without the quotes) at the 3<sup>rd</sup> position.
 
 
 
When the option is selected, a window like this pops up:
 
  
 
[[Image:AnalyzeDialog.png|center]]  
 
[[Image:AnalyzeDialog.png|center]]  
 
In this window, I have added some arbitrary text to show the effect of the rule. Notice how '''x''' is added at the 3<sup>rd</sup> character in each line. I can move the cursor to any position. In this example, it is at the 3rd position (see the status line at the bottom of the screenshot).
 
 
Now I am reassured that the rule ''does'' insert an '''x''' at position-3. (My renaming will happen as planned.) Now I can close this window and go ahead and [[ReNamer:Renaming_files|rename my files]].
 
  
 
The options in the window are as follows:  
 
The options in the window are as follows:  
Line 21: Line 13:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Line wrap
+
! Option
| Wraps a line if it exceeds the window's width. (note that the window's width can be adjusted by dragging its right border.)
+
! Description
 
|-
 
|-
! Automatically apply rules
+
| '''Line wrap'''
| You do not have to press the [[Image:ApplyRulesButton.png]] button.
+
| Wraps lines if they exceed the window's width.
 
|-
 
|-
! Apply rules for each line  
+
| '''Automatically apply rules'''
| Applies the rule to each line <u>separately</u>.
+
| Apply rules automatically when the input text changes.
 +
 
 +
You do not have to press the [[Image:ApplyRulesButton.png]] button after changing the input text.
 +
|-
 +
| '''Apply rules for each line'''
 +
| Applies the rules to each line <u>separately</u>.
 +
|}
 +
 
 +
Note: A combination of '''Line wrap''' and '''Apply rules for each line''' options may produce an undesired effect due to the way how Windows applies line wrapping. Rules will be applied to each line <u>separately</u>, even to those created artificially as a result of line wrapping.
  
 
[[Category:ReNamer]]
 
[[Category:ReNamer]]

Latest revision as of 20:17, 15 September 2017

Arrow Return.png ReNamer  

When you select the Analyze tool option (or press Shift+A), ReNamer launches a window, where you can enter any arbitrary text and apply rules entered in the Rules pane.

This is very useful to see the effect of the rules using dummy text (for example before using the Insert rule). It also allows to check the positions of any character in the text just by pointing to it with keyboard or mouse. The cursor position and selection information are displayed in the status bar of the window (Line, Position, Right and Selection).

The input text may be a file name (or multiple file names) loaded from Files pane, or any text manually entered by user - which can be very useful when you want to clean a piece of arbitrary text, for example.

AnalyzeDialog.png

The options in the window are as follows:

Option Description
Line wrap Wraps lines if they exceed the window's width.
Automatically apply rules Apply rules automatically when the input text changes.

You do not have to press the ApplyRulesButton.png button after changing the input text.

Apply rules for each line Applies the rules to each line separately.

Note: A combination of Line wrap and Apply rules for each line options may produce an undesired effect due to the way how Windows applies line wrapping. Rules will be applied to each line separately, even to those created artificially as a result of line wrapping.