Difference between revisions of "ReNamer:Analyze"

From den4b Wiki
Jump to navigation Jump to search
(Category:ReNamer added and nav link)
m (re-word)
 
(5 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. The text may be a filename (or filenames) loaded from '''Files''' pane or any text manually created by user.
+
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.
It also allows to check the positions of any character in the text just by pointing to it with keyboard or mouse (very useful eg. when you're using the Insert rule).  The appropriate data is being displayed in the status bar of the window.
 
  
Let us see an example.  
+
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'').
  
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.  
+
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.  
 
 
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 20: 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
 +
|-
 +
| '''Line wrap'''
 +
| Wraps lines if they exceed the window's width.
 
|-
 
|-
! Automatically apply rules  
+
| '''Automatically apply rules'''
| You do not have to press the [[Image:ApplyRulesButton.png]] button.
+
| 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  
+
| '''Apply rules for each line'''
| Applies the rule to each line <u>separately</u>.
+
| 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.