diff -uNr a/logotron/MANIFEST.TXT b/logotron/MANIFEST.TXT --- a/logotron/MANIFEST.TXT 3a2e057ba3ac9b93e7a59aefaac06b59ac1aea9e3ad539356b79d2f33cd05dd2d6ec788daa4672817b3a74b07187d8a8c8228b0a1ee410a9d49ee7bc2bb9aff3 +++ b/logotron/MANIFEST.TXT 77c1fe5ce35c77d6b10d9b534c6e2aced87e55bb4c402e7113af40b2901539b282ca8a4bd5704022fba1d10d8305c956030239b2b66ae2732616c3e1fd9a3e5f @@ -1,4 +1,5 @@ -589248 logotron_genesis "Genesis." -589480 multsel_and_datefix "Multiline selections and fix for date arrow." -589662 raw_line_export "Export lines in Phf format; fix for debug knob." -589674 rle_errata "Date arrow enable fix." +589248 logotron_genesis asciilifeform "Genesis." +589480 multsel_and_datefix asciilifeform "Multiline selections and fix for date arrow." +589662 raw_line_export asciilifeform "Export lines in Phf format; fix for debug knob." +589674 rle_errata asciilifeform "Date arrow enable fix." +589783 irssi2tmsr diana_coman "Converter of irssi logs to the tmsr format used by the logotron. Added authors in MANIFEST.TXT." diff -uNr a/logotron/logconverters/irssi2tmsr/README.TXT b/logotron/logconverters/irssi2tmsr/README.TXT --- a/logotron/logconverters/irssi2tmsr/README.TXT false +++ b/logotron/logconverters/irssi2tmsr/README.TXT d6c6fb0c6c00f85a0665614bffa30cd804bcf49e55ce78d58f8c744b7cbac8657fccad1d6ed5a47a85ba11e71f2e583775d7e4fc36980b5af8f7958c28802cc7 @@ -0,0 +1,13 @@ +August, 2019 + +This is a quick'n'dirty AWK one-line script that successfully converted an irssi irc log into the tmsr format that the logotron uses. + +1. The bash script expects one single parameter that is the starting index (i.e. the index of the first line in the log). E.g. ./convert.sh 100 will produce lines numbered 100, 101, 102 etc. + +2. Examples of use: + ./convert.sh 99384 < inputfile > outputfile + sh convert.sh 10001 < inputfile > outputfile + +3. Caveats: + - the converter expects months to be recorded numerically in the input file (e.g. 8, 9 instead of Aug, Sep); if your irssi log uses names for months then you'll need to either update the converter or convert month names to numbers separately, as a pre-converter step. + - based on the previous raw awk version published at http://logs.nosuchlabs.com/log/trilema/2019-08-11#1927486 and tested *only* on one irssi log of #ossasepia (result can be seen at: deedbot.org/deed-589684-1.txt ) diff -uNr a/logotron/logconverters/irssi2tmsr/convert.sh b/logotron/logconverters/irssi2tmsr/convert.sh --- a/logotron/logconverters/irssi2tmsr/convert.sh false +++ b/logotron/logconverters/irssi2tmsr/convert.sh b8ce803dc74070a6ba41b992e99050526777d4e12076268eee0d47a4051ba343bd3d16e9695438f7e9ab5343dfe6c17773ce018be63912978e4ad58bb8409297 @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ "$#" -ne 1 ]; then + echo "Usage: $0 startIndex" + exit 1 +fi + +awk -v mindex=$1 '/Day changed/ {Month=$5; Day=$6; Year=$7;} + /Log opened/ {Month=$5; Day=$6; Year=$10;} + ! /-|<--|>/ {count++; sep=";"; + w= Year " " Month " " Day " " $1 " " $2 " 00"; + if ($3 == "*") { + pp=$3 sep $4 " "; $4=""; n=5; + } else { + pp=$3 sep; n=4;}; + $1=""; $2=""; $3=""; + print count+mindex-1 sep mktime(w) sep pp substr($0,n); + }'