in reply to Re: Parsing Issue
in thread Parsing Issue

Thank you for your help...I apparantly did not proofread my post good enough. One of the main issues I'm having is when the parser encounters the output of "<Left>, <Right>, and <Del>." Is there some way to mirror the action of these keys before writing to a new output file?
In other words, if I have some text that looks like:
"requested to remove  LD  for 4.99 .. did tell her if she makes calls that asre   L D will be billed  before 02/25/02 <Right><Right><Right><Right><Right><Right><Right><Right><Rigany <Right><Right><Right><Right><Left><Left><Left><Left><Del><Del>calls placed she <Right><Right><Right><Right><Right><Right><Right><Right><Right>.. she said she understood ...eg"
Is there some way for the parser to emulate the effect of all those Left, Rights, and Dels (as in overwriting characters when Left is used, or Deleting characters when Del is used, etc.)? The text files being parsed will be under 50k...is this too much to parse at once, or can I get it all into a single scaler? Thanks again!

Replies are listed 'Best First'.
Re: Re: Re: Parsing Issue
by dvergin (Monsignor) on Feb 07, 2002 at 04:31 UTC
    In my innocence I thought cLive ;-)'s response was odd.

    But looking at the data and reflecting on the term "keylogger", I am now ready to ask also: "What color is your hat?"

    Beyond that, there is a lot more involved in this to accomplish what you now propose. Not the least of it is that parsing this data will require that the parsing script have a copy of the document being worked on since, from the snippet given above, it seems clear that the typist being logged is moving forward through a pre-existing document.

    Let me risk going a step further and suggest that this task is effectively beyond the range of any reasonable expenditure of effort. You list <Up>, <Down, <PgUp>, and <PgDown> as keys that will be in the keylogger data. Knowing where these keystrokes will take the curser would require a lot of information and a lot of calculations on margins, font size, variable width character metrics, etc.

    Good luck.