home *** CD-ROM | disk | FTP | other *** search
-
-
- =====( BBStext V1.10 )=================================================
-
-
- Trion BBStext Program.
-
- (c) Copyright Paul Spijkerman, '95-'98. All rights reserved.
-
- Written for use with the Trion BBS package.
-
-
- ===================================================================
-
-
- The BBStext program is needed to 'compile' bbstext binaries.
-
- With bbstext almost all the text lines displayed by a bbsnode
- to users loged in is mend. These lines are configured in
- BBStext text files. These have to be 'compiled' by the
- bbstext program .. during compiling the lines are translated
- and it checks if all lines are present and if no lines
- it doesn't know are present .. then the lines are saved
- to a binary the BBS node understand.
-
- For every language or menuset you have a seperate BBStext
- file so you can easily add (and obtain) bbstext files
- for different languages who are constructed by other people.
-
- The BBStext text files are found in the Trion:cfg/ directory
- and are called BBStext-X.cfg where X is a number from
- 0 to 9 , so you can have 10 different BBStext sets.
-
- The compiled bbstext files are stored in the trion:data/
- as bbstext-X.dat files.
-
-
-
-
-
- BBStext entries consists of lines needed by the compiler
- to know which line we are defining folowed by the
- actual text we want to use in the BBS.
-
- In the text lines you can use special characters to get
- certain effects .. these characters are translated by
- 'BBStext' to the corresponding ascii codes, which make
- bbstext files easier to read and change.
-
- Also a lot of lines have codes which can be used in these
- lines and are replaced by the BBS at execution with
- numbers or text lines. These codes consist of a '%' character
- folowed by a letter. (%a %b %c %d %e %f etc.)
-
- For those of you who can program in 'C' .. it works a little
- bit like C but there are differences!
- In C the letter stands for a certain type of variable .. but
- in BBS a letter has a fixed meaning in every line and can
- be of different types. There are no fixed types.
- (note the types are in the comment lines in the BBStext-X.cfg)
- In other software standard C types are used wich has a major
- drawback .. that you have to use them in a fixed order,
- wich isn't the case with trion.
-
- Note that a BBStext entry can be about 1000 characters each.
-
-
-
- Codes useable for translation to ASCII code:
-
-
- '\a' -> Bell (alert)
-
- '\b' -> Backspace
-
- '\r' -> Carriage return
-
- '\n' -> Newline
-
- '\\' -> '\' BackSlash
-
- '_' -> ' ' space
-
- ' ' -> ' ' space
-
- '|' -> '' Carriage Return folowed by a newline
-
-
- NOTE: Underscores have the same effect a spaces !!
- which can be convenient to 'see' the end of a line
- also some editors strip the spaces from the end of a line
-
- Use '|' characters as 'return' characters (End Of Line)
-
-
-
-
- Like in C you can add numbers (positive and negative) to
- the '%' codes to fix the look of the text in the BBS:
-
-
-
- '%_' -> '_' Underscore
-
- '%|' -> '|'
-
- '%%' -> '%'
-
- '%A' -> 'xxxxx' Line 'A'
-
- '%8A' -> ' xxxxx' Line 'A' filled with spaces to fill 8 places
-
- '%-8A' -> 'xxxxx ' Line 'A' filled with spaces to fill 8 places
-
-
- Note that the 8 is an example and can be replaced by other numbers.
-
-
-