:: :: NBMC 2.0 sample configuration file -- (c) F. Pacquier 1996 :: (lines starting with ':: ' are comments and ignored by NBMC.BAT) :: :: Section 1 :: :: This section holds the search & replace instructions :: :: These will be parsed and used by GSAR to read the headers and bookmarks :: from your original BOOKMARK.HTM file and generate the body of your :: custom NBMC.HTM file. :: :: Each line must follow the syntax: :: :: from{string1}to{string2} :: :: :: Things To Be Careful Of: :: ======================= :: :: * WHITESPACE is SIGNIFICANT in string1 and string2 ! :: string2 may be empty if you just want to remove string1 completely :: (see first uncommented search & replace line below) :: :: * Everything is CASE SENSITIVE by default :: (this can be changed and is documented in NBMC.MAN) :: :: * NO TRAILING SPACES after the last '}' at the end of each line... :: :: * Special characters can be specified using the :ddd notation, where :: ddd is the 3-digit decimal ASCII code for the character. Add a zero :: if necessary. For instance, if you need a '|' (pipe) char in string1 :: or string2, use ':124'. A DOS end-of-line pair is ':013:010'. :: If you need a plain ':' use '::'. (This is GSAR syntax). :: :: * KEEP LINES SHORT ! These instructions will be parsed by GSAR to :: produce GSAR commands that will in turn parse NBMC.TMP. In doing this, :: special chars like spaces, <, > will be turned into :ddd notation, and :: from{...}to{...} tokens will be turned into GSAR commands and options. :: :: For instance, the instruction: :: :: from{< A >}to{} :: :: would be executed as the DOS command: :: :: gsar -s:060:032A:032:062 -r:060a:062 -o nbmc_htm.tmp>NUL :: :: As expanded commands will typically be quite longer than the original :: instructions, these must be kept short to avoid running into the DOS :: command length limitation... :: :: To achieve this you can spread your substitutions over several passes, :: as in the examples below. First suppress all unwanted material; then :: substitute existing tags or insert new ones. You can use shorthand :: (like '^' for return/linefeed and for an image anchor) for :: frequently repeated stuff and then expand these in turn at the end. :: This also makes the substitution code easier to read and to maintain. :: :: Note: instructions are executed in the order they appear here, with :: additional expansion to GSAR command lines at the very end. :: from{ }to{} from{
}to{} from{FOLDED }to{} from{^^}to{/B>^} from{/A>}to{/A>^} from{^}to{:013:010} from{}to{} from{}to{} :: :: Section 2 :: :: This section is used to store additional HTML statements :: :: These lines will be inserted at the beginning of nbmc.htm :: :: They will be added by nbmc.bat using a FIND on the tag string {head} :: so edit at will & add as many as you want but make sure each line :: starts with the tag string ! :: {head} {head} {head}NBMC Custom BookMarks {head} {head} {head}
:: :: Section 3 :: :: This section is used to store additional HTML statements :: :: These lines will be appended to nbmc.htm :: :: They will be added by nbmc.bat using a FIND on the tag string {tail} :: so edit at will & add as many as you want but make sure each line :: starts with the tag string ! :: {tail}
{tail}Generate configuration : {tail}
(1) · {tail}2 · {tail}3 {tail}
{tail} {tail} :: :: End of config file. ::