home *** CD-ROM | disk | FTP | other *** search
- ≡ STRCOM 1.1 ■ Freeware external string compiler for WWIV 4.22
-
- This archive should contain the programs STRCOM.EXE and STRDEC.EXE. Strcom
- will convert a text file with one string per line into a 4.22 format
- external string file. Strdec (de-compiler) does the opposite.
-
- Advantages of STRCOM: You can use any text editor to create your input files.
- Adding new strings is simply a matter of putting blank lines at the end.
- I believe that editing the strings in a text file is the superior method, as
- you can simply open up another window in the Borland C editor and make the
- changes while you work on the source, rather than shelling out to run
- ESM/MINIESM.
-
- ≡ Compatibility
-
- This is meant to be used only with WWIV 4.22. The files produced are
- identical to the formats used by ESM and MINIESM. A three-byte header
- (255, 255, length) opens the file, followed immediately by the data.
-
- The previous version of STRCOM (1.0) will not work with 4.22, as it does not
- produce the 4.22 header. It produces files in the format of ESM 1.4. The
- version in this archive is 1.1, meant for WWIV 4.22. Please remove the older
- version from your download directory, to prevent confusion with the current
- one.
-
- ≡ STRCOM Usage
-
- STRCOM infile.txt outfile.str [-Lxxx] [-E]
-
- STRCOM will process a text file with one string per line and write a
- file suitable for use as an external string database. The absolute
- length of the strings can be specified on the command line with the
- -L parameter. (The default length is 100, which is the length used
- by Random in the ENGLISH.STR file included with 4.22).
-
- If the -E switch is specified, the following translations take place:
-
- \n : linefeed \r : return
- \\ : backslash \c,\3: color symbol
- \_, \#: space \b : backspace
-
- Other characters, such as ESC and upper-128 graphics (║─═╔≡■) can be
- placed in the text file, so translations are unnecessary.
-
- (The program runs significantly faster without '-E.' Use it only if you must
- embed linefeeds, as most other special characters can exist in the text file)
-
- ≡ STRDEC Usage
-
- The string file provided with 4.22 was already in compiled format. It is
- necessary to convert it to a text file so that it may be edited. STRDEC
- does this- it is invoked as "STRDEC infile.str outfile.txt". The length
- is read from the header of the string file, and no translations are performed
- (as there are no special characters in Random's file that cannot exist in a
- text file.) You only need to execute this program once, when converting a
- string file you received from someone else into a strcom-compatible input
- file.
-
- ≡ Spaces at the end of lines.
-
- Most editors, including Q and the BC++ editor, remove spaces at the ends of
- lines. However, it is often necessary to leave these in - for example,
- if this is not done, there may be lines like
-
- Starship Trooper #1 @2750 read your mail on01/30/93
-
- (Notice there is no space between 'on' (the end of an external string) and
- the date). To prevent this problem, it is necessary to embed a space in
- the input text file. This can be done with the -E switch as
-
- read your mail on\_
-
- However, the -E switch slows the program. Another way is to put a real space
- there, and follow with color-change codes. That way, the editor will not
- strip the space, because it does not end a line.
-
- read your mail on 1
-
- (Note that you change color with control-C digit, which appears as heart-digit.
- This is done the same way you would do it in the source, by pressing the
- ALT-3, or by pressing your editor's quote character (usually ^P) and then
- ^C)
-
- ≡ AUTOMATIC UPDATING OF STRING FILES:
-
- You can use Borland's MAKE utility to automatically update the string file
- while compiling the bbs. It will check to see if your string data file
- is older than the text file, and will compile if true. For each file
- you want automatically compiled, place lines like these in MAKEFILE.MAK:
-
- english.str: english.txt
- strcom english.txt english.str [-Lxxx] [-E]
-
- I placed it just after the section describing BBS.COM, and it works fine.
-
- ≡ Warranty
-
- There is none. All I can say is, "it works for me." I suggest you make
- backup copies of your files first.
-
- ≡ Distribution and freeware notice
-
- STRCOM, STRDEC, and this text file may be freely used and distributed
- in unmodified form. This software is completely free; however, I'd
- appreciate email from people using it, just so I know there are people
- who would be interested in future versions.
-
- ≡ Disclaimers, copyright notices, etc.
-
- WWIV is Copyright 1988-1993 by Wayne Bell.
- ESM is Copyright 1990-1993 by Jon R. Rickher
-
- STRCOM supplements WWIV and is meant to be used only by registered usersof WWIV.
- This program is not "official" or "endorsed" in any way.
-
- STARSHIP TROOPER 1@2750/12754
-