Deathlok's Ansi2Html converter Version 0.6!
**************
If you have a problem with lines that set off
triggers vanishing and instead being replaced
by the command that was triggered,
For example:
"That was your last image!"
"cast mirror images me"
would become
"cast mirror images me"
"cast mirror images me"

Then go to GENERAL->LOGGING
and UNcheck the Log After Triggers

Note: This will cause all #GAG and #COLOR
commands to not affect what is displayed,
since the info will be written to
the log before the triggers gag or color it.

**************
This program is copyright 2000 by Ben Lazo!

Instructions for use (based on zMud 4.62):

Click the COLORS setting button
select DEFAULT COLOR
select the grey (not white) color
that should be on the far right, on the
top or the bottom. This should match the regular
color that most of the mud is in. 
IF THIS IS SET WRONG, whatever it is set to
will show up as grey in the html files.
(in other words, my program assumes your default
color is set to grey. zMud set this to dark green,
I think...and if this isn't changed, everything
in dark green (such as the exits) will show up
as grey (and blend in alot))

Click the GENERAL setting button
or go to VIEW->PREFERENCES->GENERAL

Under the LOGGING section,
put a checkmark by LOG ANSI COLOR
Remove the checkmark from LOG AFTER TRIGGERS

Go to FILE->NEW LOG
and create a log as normal.

When you are done making your log,
go to FILE->CLOSE LOG

Go to dos, to the directory where you saved your log,
then type Ansi2Html (log's name) (file to save it as)

For example, if I made a log called log.txt,
and wanted a file called log.html, I would run:

ansi2html log.txt log.html

It's that simple!



Bugs/Features:
Right now the program ONLY handles the standard
8 colors and their bold variants.
All blinking text is ignored and
all colored backgrounds are ignored.

Revision History:
Version .6        Oops. in my attempt to fix mangled ansi, I messed something else
                  up. Now text following mangled ansi will just be ignored up to
                  the next 'm' or the end of the line, whichever comes first.
Version .5        Bah. Fixxed that bold white problem AGAIN. Hopefully this will
                  Prevent it from doing HTML <FONT> tags around single letters
                  (<FONT>L</FONT><FONT>i</FONT><FONT>k</FONT>e this)
                  Fixxed the crash that occured if an ansi code was mangled.
                  Note: Text after a mangled ansi code will be ignore or treated
                        as a RESET, depending on how badly mangled the log is.
                        It's possible a letter may go missing after a mangled
                        code, but at least the program shouldn't crash now.
                        Sorry, that's the best I could do. :)
Version .4        Added Version info on splash screen. Fixxed "<>& in logs.
                  Fixxed Bold White not showing up if using zMud 5.x
Version .3        Fixxed multiple colors on a line screwing up all colors after.
                  Fixxed background colors messing up foreground colors.
Version .2        Longer line lengths accepted. Fixxed bold white not being recognized.
Version .1        First Version! Everything new!

Thanks to:
Gromphe for motivating me to write this and for helping me test it!
Gromphe for catching the Version .3 bugs.
Artheri for catching the Version .4 bugs.
Artheri for noticing the 'log after triggers' problem.
Eskil for mangling a log so badly that it created the version .5 bugs.
Darrant for catching the stupid bug I made in .5 version.

Contact Me:
Write me at deathlok@uslink.net
or visit me on The Realms of the Dragon!
telnet rod.org 3000

