Bug 131372 - limit on string's in emoticons.xml?
Summary: limit on string's in emoticons.xml?
Status: RESOLVED WORKSFORME
Alias: None
Product: kopete
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 0.11.1
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-26 00:28 UTC by Martin Matusiak
Modified: 2006-09-12 20:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matusiak 2006-07-26 00:28:02 UTC
Version:           0.11.1 (using KDE KDE 3.5.2)
Installed from:    Ubuntu Packages
OS:                Linux

It seems that when there are too many <string>'s in emoticons.xml, there is a cut off point somewhere, which precludes all these strings from being enabled in the chat. I came across this when producing the following emoticon theme:
http://www.kde-look.org/content/show.php?content=43094

This theme works with both gaim and kopete, but for the kopete version I've reduced the number of replacement strings, otherwise the cut off happens somewhere around :party:. (If testing with that emoticon set, just copy 'theme' to 'theme.conservative' and run gen.sh to build the package, which can then be imported into kopete.

I'm also getting an error to the effect "A problem occured during the installation process. However, some of the emoticon themes in the archive may have been installed." when I install my theme, as well as a couple of others I tested with off kde-look.org. I suppose that could be causing the original problem, but aside from this error, the themes I install seem to work perfectly well.
Comment 1 Martin Matusiak 2006-09-12 12:12:56 UTC
It turns out my diagnosis was incorrect. There doesn't seem to be a limt on the number of emoticons (at least not in the latest Kopete 0.12.2). The error I encountered was caused by a parsing but in emoticons.xml. One of the emoticon strings I had was '<:o)', and this would confuse the xml parser and halt the parsing, leaving the rest of the emoticon strings unread. As far as I can see, there is no way to escape the first character < either, so strings containing these characters just can't be used.
Comment 2 Michel Hermier 2006-09-12 12:55:18 UTC
Replacing '<' with '&gt;' doesn't help ?
Comment 3 Martin Matusiak 2006-09-12 20:22:01 UTC
At first I thought it didn't, but now that I just tried it to verify, it works. I don't know if there have been any changes in kopete, but at least with 0.12.2 it seems to work well. Which would mean that this issue is now completely resolved.