From: Thomas Martin
Hello, Group:
I've been paying attention to this mail list for some months now. It's
obvious (to me) that, while I get a LOT of usefulness from my TSE Pro 2.8,
I still don't know much of what it can do.
I have a desire for a feature. (If it's already built in, this is going to
be quite embarrassing!). As I'm not really qualified at this point to be
writing macros, I'm hoping that someone else may have accomplished this
already.
I often work with ASCII files that are in a "Print Image Format". To
further explain, they often come directly from a print queue on a host
(mainframe or mini) system. The text in the files is formatted exactly
like it would be on paper, had it been allowed to go to the printer.
Something that would be VERY helpful for me would be:
1. Leave the current physical line number in place, but
2. Have a hot key (or command line parameter) to set a logical page length
3. Have the logical "page number" indicated on the screen, and
4. Have a "relative line number" indicated on the screen. (relative to
the page number).
I hope that I'm being clear with this....
Anyway, the normal method of incrementing the logical page number (and
relative line number) would be based on CR/LF pairs, but there are also two
other ways that I often get these data files. One is called "ANSI Standard
Carriage Control". The other is called "Line and Return" or "Line and Skip".
The ANSI carriage control goes like this. The first byte of each line
contains a "non-printing" character.
A "+" means NO line feed
A " " means 1 line feed
A "0" means 2 line feeds
A "-" means 3 line feeds
I believe that there are actually some more control characters, but I've
never seen them in the files that I get.
The "Line and Skip" control goes like this.
The first 4 bytes on each line are "non-printing".
The first 3 bytes on the line indicate a specific line number on the page
(and the 4th byte is a space), or
the 4th byte on the line indicates how many linefeeds from the current
line (and the first 3 bytes on the line are spaces)
Typically, the logical page length will be one of these
42 lines (7 inch form)
51 lines (8.5 inch form)
66 lines (11 inch form)
Anyway, sorry for the lengthy request, but if anybody had this (or if Sammy
is really bored today and would just like to tackle it for the fun of it!),
it sure would make my life easier. Even just the first option based on
CR/LF pairs would be really useful in the work that I do. I would
certainly appreciate any help and/or suggestions.
Tom Martin
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)
|