ansifilter -d msglog -html temp4.txt > temp.html # Creating the HTML file and setting the document title # bottom) for setting back the default values of the console # top) for making the title white and bold # * All these programs, as BZFlag, are Free/Libre Software (and # (a) # (b) # (c) # called "msglog.txt" and LibreOffice installed in your system BUT NOT RUNNING AT THE # You will need to have in the same folder of this script: the "ansifilter" program, a BZ log file # as in Okular (c) (using just the LibreOffice command line converter) # 2 - PDF file: you will be able to read it into any PDF viewer and to add annotations if it is available, # editor like LibreOffice (a) (using ANSIFilter (b)) # 1 - HTML file: you will be able to read it into any navigator and to copy/paste it to an office # Shell script for converting BZFlag logs ("/savemsgs" command) from ANSI colored messages to: All the other ones I found made the pages hard to read, by decreasing the font size when there were long lines (BZ has them often). * About LibreOffice: I chose it because it was the only one option that worked and because of its quality (it has the LO team behind). Please, read also the introduction of the script. * We will use only Free/Libre Software (*). Finally, we will automate the process and make some necessary changes putting all these into a shell script (program). First, we will use ANSIFilter for obtaining an HTML document (a common format) and, after, LibreOffice for obtaining a PDF document (an useful format for reading/annotating). For solving this, it is necessary a program that does the conversion. The problem with the ANSI color codes (some weird symbols and numbers inside the file) is that they ONLY run (or are shown) within terminals, for example the shell (black screen for commands) or the IRC (chat) ones but also, if we wanted to copy/paste them into a text editor, it would be impossible. Then, we will obtain a file called "msglog.txt" into our BZFlag folder. "/savemsgs -s" -> uncolored messages ("stripping" the ANSI codes) "/savemsgs" -> colored messages (using the ANSI codes) * All the commands are meaning to be without the quotation marks. It has 2 variations (typing previously "n" or "m" - public or team chat): The BZFlag client has a command that allows us to save all the messages (all the text inside the game) into a simple text file in any moment, provided that we are logged into a server. This third version is intended to be clearer and easier for reading, specially having in mind those not too advanced users, and also, because I am improving my English (thanks to BZ!). First, many thanks for all the views along this time (1700+ in 4,5 months)!.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |