Defining a Paragraph
Replace Pioneer - text/binary/web file - Batch search,replace,convert,rename,split,download    Defining_a_Word  Range_Definition 

 

In this application, the Paragraph is defined as a group of lines.

 

 

How to group lines to be a paragraph?

 

Click Settings ToolBar, a "Settings" dialog is poped up:

 

 

 

Paragraph Start Delimiter:

 

=> user can select a type or fill a self defined pattern.

 

If any line matches this pattern, this line will be the start of a new paragraph.

 

Example: ^Chapter -- each line start with "Chapter" will be considered as paragraph start line.

 

 

If the format of "Paragraph Start Delimiter" has format of {any codes here}, it will treat as a perl statement, if the return value of the statement is true, then this line will be the start of a new paragraph. Variable $match, $previous can be used in the statement, which contains the value of current line and previous line respectively.

 

Example: {$match ne $previous} -- each line that is different from previous line will be considered as paragraph start line.

 

 

The default value is None.

 

 

Paragraph End Delimiter:

 

=> user can select a type or fill a self defined pattern.

 

If any line matches this pattern, this line will be the end of current paragraph, and the next line will be the start of a new paragraph.

 

The default value is "Blank Line"

 

Fixed lines of each paragraph:

 

=> if "fixed para lines" is a non-zero value, the text will be splitted into paragraphs by number of lines defined here, paragraph delimiters will be ignored.

 

Defining of fixed lines: lines1[,lines2[,lines3...]]]

 

lines1/2/3/... are positive or negative values, negative values means lines to skip.

 

Example:

 

3 => separate text into paragraphs with 3 lines

 

3,4,5 => separate text into paragraph with 3,4,5,5,5,5,... lines

 

3,4,-1 => separate text into paragraph with 3,4,(-1),4,(-1),4,(-1),... lines, -1 means skip one line.

 

 

(After version 2.0, user can select "Spliting output text into multi-files(Horizontal and Vertical) for detail)

 

 

Note1: the Paragraph Delimiters parameters can be set globally at Menu: Settings->Settings, they can also be changed for each individual replace operation in "Settings" page of "Replace Dialog".

 

Note2: the "Paragraph Start Delimiter","Paragraph End Delimiter" and "Fixed Paragraph Lines" can also be changed in run_time as variable, please refer to System Variables part.

 




Keywords:

delimiters  paragraph delimiters  chapter  application  paragraph end delimiter  paragraph delimiter  paragraphs  pop  zero  variable  group lines  skip  matches  current  perl  previous  123  fixed  group  return  
Search online help: