Universal Text Parser

Post on 13-Apr-2017

189 views 0 download

Transcript of Universal Text Parser

Processing Text FilesWith Configurable Text Filter

Copyright © 2009 Epiatech

All Rights Reserved

Specific filter for each text file type

Copyright © 2009 Epiatech

All Rights Reserved

Report

Instrument

Output

Processing

Results

New Type of

Text File

Report

Filter

Instrument

Filter

Processing

Filter

???

Report

Filter

Output

Instrument

Filter

Output

Processing

Filter

Output

User Text

Filter

Output

1

2

3

N

One filter for all text files

Copyright © 2009 Epiatech

All Rights Reserved

Report

Template

Instrument

Template

Result

Template

User text

Template

Configurable

Text

Filter

Report

XML

Instrument

XML

Result

XML

User text

XML

Report

Instrument

output

Processing

Results

User

Text file

1

2

3

N

Specific Filter

• Availability

• Purchasing

• Maintenance

• Upgrading problems

• Not flexible

Copyright © 2009 Epiatech

All Rights Reserved

N x

• Best fit

• Ready to use

Advantages Drawbacks

Configurable Filter

• Availability

• Purchasing

• Maintenance

• Upgrading problems

• Suits all

Copyright © 2009 Epiatech

All Rights Reserved

1 x

• Good fit

• Must be configured

Advantages Drawbacks

File System Configuration

Copyright © 2009 Epiatech

All Rights Reserved

Template

XML Files

Text

Files

Configurable

Text Filter

CTF

Template

Designer

Result XML

Files

FS

ECM Configuration

Copyright © 2009 Epiatech

All Rights Reserved

ECM

Templates

Configurable

Text Filter

CTF

Template

Designer

ECM Text

Files

ECM File

Properties

CTFTD ECM

Extension

ECM

Interface

ECM

CTF Template Designer

Copyright © 2009 Epiatech

All Rights Reserved

This pane contains:

• Sample files

• Result files

Template

Editor

Key Editor

ECM Extension

Status Line

Toolbar

Menu

Menus

Copyright © 2009 Epiatech

All Rights Reserved

File Edit Key Run ECM Window

Toolbar

Copyright © 2009 Epiatech

All Rights Reserved

New

Template

Open

Template

Save

Template

Cut Copy Paste New

Key

Delete

Key

Run

Filter

Preview

whole file

Preview

Key

Key Editor

Copyright © 2009 Epiatech

All Rights Reserved

Key name

Number of

instances:

* Zero or more

+ One or more

n Exactly n

n, n or more

m,n From m to n

Order of keys

is important

Extract the

key mid part

Key is ECM

attribute

Select key

color

Apply

changes

Key

start / end

definition

Key ends an

ECM set

Key Start & End Definition

Copyright © 2009 Epiatech

All Rights Reserved

Regular

expression

Extract the

key start / end

part

Automatic fetch

of new source

line

Match the

whole source

line

Skip the

matched part

Status line

Copyright © 2009 Epiatech

All Rights Reserved

Source

line

Source

column

Length of

the selected

text

Proposed regular

expression for

the selected text

Key Preview

Copyright © 2009 Epiatech

All Rights Reserved

1. Select key for

preview2. Start key preview

3. Preview of selected key:

• Key range is underlined

• Key range is color coded

• Extracted text is bold

Preview

Copyright © 2009 Epiatech

All Rights Reserved

1. Star preview

2. Preview of the whole file:

• Key ranges are color coded

• Extracted text is bold

Filtering results as XML file

Copyright © 2009 Epiatech

All Rights Reserved

1. Run Filter

2. Filtering results as XML file

Creating a template

• Start the Template Designer

• Load a sample text file

• Create a template

• Save the template

Copyright © 2009 Epiatech

All Rights Reserved

Filtering a text file

• Start the Template Designer

• Load a text file

• Load a template

• Run filter

• Save filtering results as an XML file

Copyright © 2009 Epiatech

All Rights Reserved

Using CTF Templates with ECM

1. Install Configurable Text Filter (CTF Templates.DLL)

2. Create and save a CTF Template

3. Apply CTF Template to text files

Copyright © 2009 Epiatech

All Rights Reserved

1 Install Configurable Text Filter

1. Register CTF Templates.DLL

2. Update the registry

Copyright © 2009 Epiatech

All Rights Reserved

3 Create and save a CTF Template

• Start the CTF Template Designer

• Load a sample text file

• Create a template

• Save the template in the ECM

Copyright © 2009 Epiatech

All Rights Reserved

4 Apply CTF Template to text files

• Select CTF Template keys for a LCDF

• Add a file to a folder under the above selected LCDF

• Filtering results are available as file properties

Copyright © 2009 Epiatech

All Rights Reserved

Select CTF Template keys 1/3

Copyright © 2009 Epiatech

All Rights Reserved

Open LCDF

properties

Select CTF Template keys 2/3

Copyright © 2009 Epiatech

All Rights Reserved

Select CTF Templates

Select CTF Template keys 3/3

Copyright © 2009 Epiatech

All Rights Reserved

Select one or more

CTF Template

keys