|
|
|
| Voice Pro Home | WP51 home | macros | how to | quick tips | links | feedback Just for MTs WP51 Forum | |
![]() |
This site is a member of the Medical Banner Exchange |
| Freeware - Line Count Program | |
|
Freeware - Line Count Program
|
About this Line CounterElsewhere on our site, you'll find a line count macro. As line counters go, it's not an awful way to count lines, but I do think it's a bit pokey. Its main advantages are that it allows you to count characters from within a WP51 document using just a macro, it writes a report, and it's configurable. The line counter offered on this page, on the other hand, is a small non-macro, DOS-based program that is fast, accurate, reliable, and counts gross lines. The program comes from a transcription service, Pegasus Transcription Plus, in which I previously held a partnership interest. We hired a programmer to write a line counter to our specifications (thanks, Don, wherever you are), used it in our business, and provided it free of charge to our transcriptionists. We were often asked if we would share it with other services or individual transcriptionists, but we chose not to because the program was proprietary, central to the way we operated, and provided billing verification to our clients. However, all things change eventually. Pegasus is gone, and in my new company, Voice Pro, I use a different type of line calculation and counting software. Recently I asked my former partner if she had any objection to my giving away the old line counter, and she raised no objections at all (thanks, Susan!). This line counter was used successfully for over a decade to count gross lines at Pegasus. It can function as a standalone program, be used with files originating in any word processor (if that program saves files to a DOS text format), and be integrated with the use of an add-on macro to run from inside (kind of) WP51. Here's what the program won't do:
On this page, I'll explain how the program works, give full instructions for its simplest installation and use, supply the basic program, offer one modified version of the program and an explanation of its differences, and provide a basic macro and batch file to run it. Further modifications of its functions are up to you, although I'll give you some ideas on how to effect those modifications. Download links are at the bottom of this page. Instructions follow. How Does it Work?The program, in its simplest form and installation, counts gross lines in a DOS text file. That is, when the program parses a line with a hard return plus one or more characters (anything within the ASCII character set, including numbers, spaces, letters, some symbols, and punctuation), it increments the line count by one. If the program parses a line with a hard return and no other characters, it does not increment the line count. This is the count most commonly referred to as the "gross line" method -- anything on a printed line is a line. Arguments for and against the gross line count are endless. I'm not going to enter the line count algorithm fray here! I'm also not suggesting that you use a gross line count; I no longer do myself. However, if you do use gross line count, this is a great little tool. How to Install the ProgramThe program consists of one file, counta.com, which you should install in a directory that is accessible through your path statement. If you don't know what a path statement is or how to modify it, here are two suggestions:
I'll provide a batch file, linesa.bat, that runs counta.com for use with macros. Place this, too, in a directory that is accessible through your path statement. If you use the macros, place them in your macro directory. Using the ProgramLet's discuss the most basic scenario. Note that I didn't say "easiest," just most basic. There are much, much easier ways of using the program (I'll show you how a bit further along), but I think you ought to know how it works. You've installed counta.com in your c:\windows directory, and you have some word processor open with a file on screen that you would like to count. What's next?
Making it EasierNow that you know how the program works, let's talk about how to make it easier to use the program. First we can write a batch file that runs the program. Second, because the program is in a known directory, we can write a macro that always saves a DOS text copy of our file into that directory and also calls the batch file. Finally, we can remap our keyboard to call the macro from, for example, [CTRL] + [C]. Together, this gets all our many steps down to a hot-key, enter, a file name, and enter. Nifty, eh?
I'm providing the macro and batch file in the program zip at the bottom of the page. Both macro and
batch file are written with the assumption that you have placed counta.com in the c:\windows directory,
but this can be edited. Remember that if you edit the batch file, you'll need to save it as plain DOS text,
or it will cease to function! Below are brief explanations of the batch file and macro. Line numbers are
for reference only and do not exist in the files. Bracketed comments are for explanation purposes and
also do not exist in the files. Alternate Program - countb.com
Countb.com is a modification of the basic gross line count program. How is it different?
Basically, if a line is less than 50 percent of a "normal" line, then that line only counts
as one-half line. A normal line, for this program, is defined as 80 characters of any type.
So, one-half line is any line with 39 or fewer characters on it. Why? You can use this line count for customers who like the convenience of a gross line count (it's visual and easy to verify) but who object to paying full price for a line with five characters on it. Again, I'm not going to get into the question of whether this makes sense! Frankly, the only kind of line count that makes sense to me is the character-based line count. Still, if you need it, this modification exists and is included in the zip file. It isn't Pretty!No, it's not pretty, and the program messages have a missing apostrophe. This little utility wasn't written by an MT, it was written by a programmer who was more concerned with function than grammar. What it lacks in style, it makes up for in speed and function. IdeasModifying the program, or, more appropriately, integrating the program with your procedures is fairly easy. Here are some ideas:
What's in the Zip?
Last ThoughtsI've deployed this little program on many different machines with many different configurations. I never had a problem running it. That said, this
is the first time we've offered the program to the MT community at large, and I have no doubt that it won't work on somebody's machine! Download Line Count Program, Example Macros, and Batch Files
|
| Voice Pro Home | WP51 Center | macros | how-to | quick tips | links | feedback FAQs |
|
|
Copyright © 2000-2001 Voice Pro, Inc.
Portions Copyright © 1995-2001 Mitzi L. D. Ponce
WordPerfect is a registered trademark of Corel Corporation.
Windows is a registered trademarks of Microsoft Corp.
This site is not affiliated with Corel Corporation or Microsoft Corporation.
web site design by
Nightshade Systems