Bug 89744 - Wish: Kopete history format
Summary: Wish: Kopete history format
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kopete
Classification: Unmaintained
Component: History Plugin (other bugs)
Version First Reported In: 0.40.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-18 06:49 UTC by Jes Hall
Modified: 2024-09-18 18:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jes Hall 2004-09-18 06:49:12 UTC
Version:           0.9.0 (using KDE KDE 3.3.0)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.4 
OS:                Linux

I would love it if kopete could have a choice of logging in plaintext as gaim does instead of xml. I will quite often ssh into my machine to look for a phone number or ip address I have been IMd or perhaps even conversations about projects I have had with customers and the current format is not very friendly to being read using less. I appreciate many people like the history browser and xml format, but I am sure both options could be made availible, with the xml as the default?
Comment 1 Patrick 2004-09-18 13:09:21 UTC
Why don't you just convert it to the format you prefer? I think this would be a much cleaner solution. XML is the way to go, you can convert it to everything.
Comment 2 Jes Hall 2004-09-18 13:13:50 UTC
I would prefer not to have to run a conversion script or use a special history browser every single time I log a new conversation. 
Comment 3 Piotr Szymański 2004-09-18 13:22:44 UTC
Actually xml proved to suck in kopete. I bet anything would be faster in kopete than the current history plugin with xml and the chatwnindow with xsl parsing.
Comment 4 Jason Keirstead 2004-09-18 17:30:22 UTC
The slowness is 100% because of the history plugin and QDom. It has nothing at all to do with the chat window and XSL. This can easily be shown through profiling.. or even just disabling the history.
Comment 5 rohan 2005-01-20 06:28:49 UTC
Ideally we could do exactly what Kopete does, applying the included stylesheets to the XML files to view them as HTML, but the stylesheets don't provide a valid DTD.  I guess the Kopete code works around this somehow? (I don't know much about XML, maybe it's already possible to work around this with a certain command-line option to xsltproc.)  It would be nice to get this fixed.

Alternatively, it should be a very simple matter (unless the Kopete plug-in system is broken) to save the logs in HTML format as a seperate option.  In any case, it's clear that a lot of people would like to be able to view Kopete logs outside of Kopete, and the current format really is not very good for this purpose...
Comment 6 Jason Keirstead 2005-01-20 13:02:22 UTC
You don't need a DTD to view XML files transformed with a stylesheet in a browser supporting such things (ie, Mozilla, not Konqeuror yet). All you need to do is add an XSL processing instruction att he top of the page, right after the XML processing instruction. Eg:

  <?xml version="1.0" encoding="iso-8859-1"?>
  <?xml-stylesheet type="text/xsl" href="/home/foo/style.xslt"?>

However - you can't use this trick and the Kopete stylesheets to view the history files, because they are actually slightly different formats. Stefan had a patch that made them the same format, and allowed selecting different styles in the history viewer, but it was never applied and now it is too late for this in 3.4 I think.

Maybe what should be done, is for the history plugin to stick with the same format, and just insert a processing instruction as above pointing at a stylesheet they pick from a dropdown in the config(default to Kopete style). Then:

a) You have XML logs
b) You can open them in Firefox (and Konq in the future) and view them as pretty HTML
c) If you want to change the style you can easily


Comment 7 rohan 2005-01-21 03:19:00 UTC
Thank you for that useful bit of information :-)

If Konqueror in the not too distant future is able to apply stylesheets to XML files, then I think keeping the files in XML but providing stylesheets to view them nicely is a good solution.  The most important thing is simply that we can view them properly outside of Kopete...
Comment 8 Dominik Schmidt 2005-05-09 10:19:03 UTC
yeah... the historyplugin is real crap :<
(saves not immediatly after a message arrived etc)

as is view my logs often in a terminal, too, i did a very simple logviewer in php...

you need php5 and the simplexml-module..
-> http://www.rafb.net/paste/results/F3M5P159.html
Comment 9 Matt Rogers 2005-05-09 14:08:28 UTC
>  yeah... the historyplugin is real crap :<
> (saves not immediatly after a message arrived etc)


If it's so much crap, either help us out and make it better, or file wishlists 
for things you want (and either convince a current developer to implement 
them or find somebody else willing to do your stuff), or just shut up and 
quit criticizing the work we do in our _free_ _time_. The more I hear people 
spout crap like this, the more I feel like my time is better spent just 
watching TV than trying to make you unappreciative people happy. 
Comment 10 Marc Cramdal 2006-09-03 13:28:25 UTC
Kopete History format is being working on in the mailing lists.
Comment 11 Christoph Cullmann 2024-09-18 18:28:06 UTC
Dear user, unfortunately Kopete is no longer maintained.

Please migrate to another solution, e.g. for Jabber a possibility is Kaidan, for Matrix a candidate is NeoChat.