irclog-xml.pl - IRC chat log converter
irclog-xml.pl [options] -irc-log-format=[format] file
irclog-xml will read the given input IRC chat log, convert it to an xml document, then apply a stylesheet (using XSLT) to it. In other words: irclog-xml converts IRC chat logs to HTML.
In reality, irclog-xml is not limited to producing only HTML documents. Any XSLT stylesheet can be applied to the xml document. However, only stylesheets to generate HTML are provided. In the case of HTML transformations, css is used in addition to XSLT, so it is relatively easy to change formatting without having to delve into XSLT. See the -xsl-param-css (string) option for more details.
See SUPPORTED CHAT LOGS for a full listing of supported log file formats. If you see that your favorite IRC client chat log format is not listed, send me a comprehensive log and I will add it. Better yet, take a look at IRCLog::Parsers::* and contribute by writing a parser to support your IRC client.
Most IRC clients support highly customized formatting. It would be difficult to support all of these formats, therefore, irclog-xml can only parse logs that are in the default "out of the box" format. For the most part irclog-xml handles logs with timestamps on or off.
Eggdrop
via mel (see http://mel.sourceforge.net)
BitchX
tested on BitchX-1.0c19 (without timestamps only)
Mirc
tested on version 6.01 (with or without timestamps)
Xchat
tested on version 1.8.7 (with or without timestamps)
If you want to colorize nicks, use the -nickcolors option, and create an xml document similiar to the following:
|
You can specify all the standard html FONT tag attributes to decorate a matching nick. By specifying attributes in the <nicks> element, you can also set default FONT attributes for nicks that don't match any of the <nick> elements.
XML::LibXML
(1.50 or greater)
XML::LibXSLT
(1.50 or greater)
Perl 5.6.0
http://irclog-xml.sourceforge.net
<ruf_ruf@users.sourceforge.net>