Chat Styles

Bug #146671 reported by sander
4
Affects Status Importance Assigned to Milestone
Coccinella
In Progress
Wishlist
Mats
sander (s-devrieze)
Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → Wishlist
Revision history for this message
Mats (matsben) wrote : Re: [Bug 146671] Chat Styles

This need to wait for tkhtml.

On 9/29/07, Launchpad Bug Tracker <email address hidden> wrote:
> You have been subscribed to a public bug:
>
> Support for message styles would be nice. Message styles are themes for
> the chat window. They are supported by Google Talk, Adium, Kopete,
> Landell, and maybe more clients.
>
> URLs:
> http://www.adiumxtras.com/index.php?a=search&cat_id=5
> http://www.kde-look.org/index.php?xsortmode=down&page=0&xcontentmode=24x26
> http://www.customizetalk.com/index.php?page=themes
>
> ** Affects: coccinella
> Importance: Wishlist
> Assignee: Mats (matsben)
> Status: New
>
> --
> Chat Styles
> https://bugs.launchpad.net/bugs/146671
> You received this bug notification because you are a bug assignee.
>

sander (s-devrieze)
description: updated
Revision history for this message
Mats (matsben) wrote : Re: [Bug 146671] Re: Chat Styles

I happened to be able to build tkhtml on my Mac over the weekend. Some
basic functionality tested and it seems OK. It puts a lot of efforts
onto CSS which is what we need here. However, there may still be dead
ends which is possible to run into.

On 10/8/07, sander <email address hidden> wrote:
> ** Description changed:
>
> Support for message styles would be nice. Message styles are themes for
> the chat window. They are supported by Google Talk, Adium, Kopete,
> Landell, and maybe more clients.
>
> URLs:
> http://www.adiumxtras.com/index.php?a=search&cat_id=5
> http://www.kde-look.org/index.php?xsortmode=down&page=0&xcontentmode=24x26
> http://www.customizetalk.com/index.php?page=themes
> + http://wiki.igniterealtime.org/display/SPARK/Message+Style+API+Draft
>
> --
> Chat Styles
> https://bugs.launchpad.net/bugs/146671
> You received this bug notification because you are a bug assignee.
>

Revision history for this message
antoniofcano (antoniofcano) wrote :

I love this new feature, will make Coccinella a greater piece of software. Next version will be higher user friendly: avatars, drag and drop, spellchecking and finally chat themes. Maybe when this become a stable implementation to include XHTML-IM will be a easy task for closing the usability circle.

Today I've updated CVS and get this error in Preferences (you're still working on it, but FYI):

invalid command name "::ChatTheme::AllThemes"
    while executing
"::ChatTheme::AllThemes"
    (procedure "::Chat::BuildPrefsPage" line 57)
    invoked from within
"::Chat::BuildPrefsPage $wpage"
    (procedure "::Chat::BuildPrefsHook" line 6)
    invoked from within
"::Chat::BuildPrefsHook .prefs.frall.f.f.t.frtree.t .prefs.frall.f.f.nb"
    ("eval" body line 1)
    invoked from within
"eval $func $args"
invalid command name "::ChatTheme::AllThemes"
    while executing
"::ChatTheme::AllThemes"
    (procedure "::Chat::BuildPrefsPage" line 57)
    invoked from within
"::Chat::BuildPrefsPage $wpage"
    (procedure "::Chat::BuildPrefsHook" line 6)
    invoked from within
"::Chat::BuildPrefsHook .prefs.frall.f.f.t.frtree.t .prefs.frall.f.f.nb"
    ("eval" body line 1)
    invoked from within
"eval $func $args"

Revision history for this message
Mats (matsben) wrote :

Sorry for this but I can't check in the fix right now since I'm
rewriting tons of things in Chat.tcl.
Perhaps you can just get a slightly older version.
I promise I will have fixed it during the day tomorrow.

On 10/29/07, antoniofcano <email address hidden> wrote:
> I love this new feature, will make Coccinella a greater piece of
> software. Next version will be higher user friendly: avatars, drag and
> drop, spellchecking and finally chat themes. Maybe when this become a
> stable implementation to include XHTML-IM will be a easy task for
> closing the usability circle.
>
> Today I've updated CVS and get this error in Preferences (you're still
> working on it, but FYI):
>
> invalid command name "::ChatTheme::AllThemes"
> while executing
> "::ChatTheme::AllThemes"
> (procedure "::Chat::BuildPrefsPage" line 57)
> invoked from within
> "::Chat::BuildPrefsPage $wpage"
> (procedure "::Chat::BuildPrefsHook" line 6)
> invoked from within
> "::Chat::BuildPrefsHook .prefs.frall.f.f.t.frtree.t .prefs.frall.f.f.nb"
> ("eval" body line 1)
> invoked from within
> "eval $func $args"
> invalid command name "::ChatTheme::AllThemes"
> while executing
> "::ChatTheme::AllThemes"
> (procedure "::Chat::BuildPrefsPage" line 57)
> invoked from within
> "::Chat::BuildPrefsPage $wpage"
> (procedure "::Chat::BuildPrefsHook" line 6)
> invoked from within
> "::Chat::BuildPrefsHook .prefs.frall.f.f.t.frtree.t .prefs.frall.f.f.nb"
> ("eval" body line 1)
> invoked from within
> "eval $func $args"
>
> --
> Chat Styles
> https://bugs.launchpad.net/bugs/146671
> You received this bug notification because you are a bug assignee.
>

Revision history for this message
antoniofcano (antoniofcano) wrote :

Don't worry about it, I don't have problems with chat and the preferences isn't something that I have to change every day. I discover this because updating the CVS I saw the new feature and click on preferences for curiosity :)

Revision history for this message
Mats (matsben) wrote :

Antonios "bug" now fixed. Very basic functionality now implemented. Html switched off by defult.

Changed in coccinella:
status: New → In Progress
Revision history for this message
antoniofcano (antoniofcano) wrote :

I'm impressed wowwwww!!!

Some notes:
    - Missed the tkhtml library in CVS. I had to build by hand.
    - When I send or receive a message, the chat window doesn't move
to it and I have to use the lateral bar.
    - Still doesn't take care for the emoticons gifs.
    - I don't know why, but when someone write a message to me appear
a lot of blank lines of text before the real text wich makes the
thread hard to read.

Really great job, I love it.

2007/10/30, Mats <email address hidden>:
> Antonios "bug" now fixed. Very basic functionality now implemented. Html
> switched off by defult.
>
> ** Changed in: coccinella
> Status: New => In Progress
>
> --
> Chat Styles
> https://bugs.launchpad.net/bugs/146671
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Mats (matsben) wrote :

First, this is work in progress and there are tons of things to implement.
Second, the tkhtml 3.0 project is still in its alpha phase, see http://tkhtml.tcl.tk/cvstrac/timeline, and it wont get included in the cvs tree until it has its first beta at least, or feels otherwise stable.
Third, I'm still having problems with it. Some are related to missing Expose events, likely a TkAqua issue fixed lately, but there are other things I need to figure out. To toggle history I need a way to insert nodes at the beginning somehow, etc...
Fourth, someone need to develop a set of styles we can distribute. BTW, how on earth were you able to run it :-)
I haven't checked in any themes.

Revision history for this message
Mats (matsben) wrote :

Attached a first shot.
There are more to it: we must also look into which formats to pick. I just happened to find a Bubblegum format for gtalk and figured out the formats from its css and html files.

Revision history for this message
sander (s-devrieze) wrote :

2007/10/30, Mats <email address hidden>:
> Fourth, someone need to develop a set of styles we can distribute. BTW, how on earth were you able to run it :-)
> I haven't checked in any themes.

Adium has a large list of themes... (maybe you can include the 3 most
popular ones)

--
Mvg, Sander Devrieze.

Revision history for this message
antoniofcano (antoniofcano) wrote :

> First, this is work in progress and there are tons of things to implement.
> Second, the tkhtml 3.0 project is still in its alpha phase, see http://tkhtml.tcl.tk/cvstrac/timeline, and it wont get included in the cvs tree until it has its first beta at least, or feels otherwise stable.
> Third, I'm still having problems with it. Some are related to missing Expose events, likely a TkAqua issue fixed lately, but there are other things I need to figure out. To toggle history I need a way to insert nodes at the beginning somehow, etc...
> Fourth, someone need to develop a set of styles we can distribute. BTW, how on earth were you able to run it :-)
> I haven't checked in any themes.
>

hehehe I read the code, find the blublegum theme, downloaded it,
included the tkhtml lib and play. I couldn't wait for playing with it
hehe.

Just curiosity!!
Best wishes,

Revision history for this message
Mats (matsben) wrote :

About themes: tkhtml has its limitations and I don't know html/css standards that well. Just from looking into some gtalk themes I stubled on things like:

<div style='height:1px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="%userIconPath%")'></div>

which we clearly cannot have. I saw some references to javascripts in Adium themes which we also cannot have. It is clear that the dir layout of the gtalk themes, at least Bubblegum, comes from MacOSX 'bundle' structure. It is not clear to me what the content of the %message% %color% etc should be in reality.

Something good is the huge activity with tkhtml code, promising.

Antonio: you are exceptional and incredible!

Revision history for this message
sander (s-devrieze) wrote :

2007/10/30, Mats <email address hidden>:
> About themes: tkhtml has its limitations and I don't know html/css
> standards that well.

W3C has very good docs. Also, the CSS validator may be helpful.

--
Mvg, Sander Devrieze.

Revision history for this message
Mats (matsben) wrote :

I'd rather try my best to stay outside the html/css branch as far as possible :-)
My head is already full. Need to figure out what all the %message%, %color% etc mean which is a theme mechanism somehow and not anything with CSS. Attached the Bubblegum theme if you want to assist. I also need some decision support of which theme format to choose, if there are different sorts of them. The gtalk format (Bubblegum) seems like a simple one.

Revision history for this message
antoniofcano (antoniofcano) wrote :

I know that some popular clients (adium, galk, kopete, ¿others?) are
using this kind of themes, bud I don't know if they use the same specs
for the theme.

What about this links:
http://kopete.kde.org/chatwindowstyleguide/index.html
http://www.customizetalk.com/forums/viewtopic.php?t=402

Some simple themes and a little freeks :)
     http://gtalk.anthonysottile.com/

Best wishes,

2007/10/31, Mats <email address hidden>:
> I'd rather try my best to stay outside the html/css branch as far as possible :-)
> My head is already full. Need to figure out what all the %message%, %color% etc mean which is a theme mechanism somehow and not anything with CSS. Attached the Bubblegum theme if you want to assist. I also need some decision support of which theme format to choose, if there are different sorts of them. The gtalk format (Bubblegum) seems like a simple one.
>
> ** Attachment added: "Bubblegum.zip"
> http://launchpadlibrarian.net/10222332/Bubblegum.zip
>
> --
> Chat Styles
> https://bugs.launchpad.net/bugs/146671
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
antoniofcano (antoniofcano) wrote :

Other old new related to the themes:
http://www.mundogtalk.com/modules.php?name=News&file=article&sid=38

2007/10/31, Antonio F. Cano <email address hidden>:
> I know that some popular clients (adium, galk, kopete, ¿others?) are
> using this kind of themes, bud I don't know if they use the same specs
> for the theme.
>
> What about this links:
> http://kopete.kde.org/chatwindowstyleguide/index.html
> http://www.customizetalk.com/forums/viewtopic.php?t=402
>
> Some simple themes and a little freeks :)
> http://gtalk.anthonysottile.com/
>
>
> Best wishes,
>
> 2007/10/31, Mats <email address hidden>:
> > I'd rather try my best to stay outside the html/css branch as far as possible :-)
> > My head is already full. Need to figure out what all the %message%, %color% etc mean which is a theme mechanism somehow and not anything with CSS. Attached the Bubblegum theme if you want to assist. I also need some decision support of which theme format to choose, if there are different sorts of them. The gtalk format (Bubblegum) seems like a simple one.
> >
> > ** Attachment added: "Bubblegum.zip"
> > http://launchpadlibrarian.net/10222332/Bubblegum.zip
> >
> > --
> > Chat Styles
> > https://bugs.launchpad.net/bugs/146671
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>

Revision history for this message
sander (s-devrieze) wrote :

2007/10/31, antoniofcano <email address hidden>:
> I know that some popular clients (adium, galk, kopete, ¿others?) are
> using this kind of themes, bud I don't know if they use the same specs
> for the theme.

I guess Adium has them most themes:
http://www.adiumxtras.com/index.php?a=search&cat_id=5&sort=downloads

btw: what about the Stockholm style Mats? ;-)

--
Mvg, Sander Devrieze.

Revision history for this message
antoniofcano (antoniofcano) wrote :

If I copy a theme when coccinella is running it doesn't recognize, I
have to close the application and launch again.

Testing some Adium themes (Renkoo, RenkooNaked, Stockholm).

1) Missed the file NextStatus.html, I copy the Status.html as
NextStatus.html and it works :/.
2) With RenkooNaked I get this error: -imagecmd returned bad value
3) With Stockholm, the messages that I send appear with my avatar
repeated a lot of times.

Then I tried with iChat Clone, but it has got javascript.

Best wishes,

2007/10/31, sander <email address hidden>:
> 2007/10/31, antoniofcano <email address hidden>:
> > I know that some popular clients (adium, galk, kopete, ¿others?) are
> > using this kind of themes, bud I don't know if they use the same specs
> > for the theme.
>
> I guess Adium has them most themes:
> http://www.adiumxtras.com/index.php?a=search&cat_id=5&sort=downloads
>
> btw: what about the Stockholm style Mats? ;-)
>
> --
> Mvg, Sander Devrieze.
>
> --
> Chat Styles
> https://bugs.launchpad.net/bugs/146671
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
antoniofcano (antoniofcano) wrote :

More,

With Moddern Bubbling theme (Adium), it loads fine (except for
NextStatus.html file). And Chatting I get the messages " 'nick' wrote
at 'time': ", I suspect that they are written by the coccinella
application and has to be ommitted when using Chat Styles.

Best wishes,

PS: Other variable %service% :/

2007/10/31, Antonio F. Cano <email address hidden>:
> If I copy a theme when coccinella is running it doesn't recognize, I
> have to close the application and launch again.
>
> Testing some Adium themes (Renkoo, RenkooNaked, Stockholm).
>
> 1) Missed the file NextStatus.html, I copy the Status.html as
> NextStatus.html and it works :/.
> 2) With RenkooNaked I get this error: -imagecmd returned bad value
> 3) With Stockholm, the messages that I send appear with my avatar
> repeated a lot of times.
>
> Then I tried with iChat Clone, but it has got javascript.
>
> Best wishes,
>
> 2007/10/31, sander <email address hidden>:
> > 2007/10/31, antoniofcano <email address hidden>:
> > > I know that some popular clients (adium, galk, kopete, ¿others?) are
> > > using this kind of themes, bud I don't know if they use the same specs
> > > for the theme.
> >
> > I guess Adium has them most themes:
> > http://www.adiumxtras.com/index.php?a=search&cat_id=5&sort=downloads
> >
> > btw: what about the Stockholm style Mats? ;-)
> >
> > --
> > Mvg, Sander Devrieze.
> >
> > --
> > Chat Styles
> > https://bugs.launchpad.net/bugs/146671
> > You received this bug notification because you are a direct subscriber
> > of the bug.
> >
>

Revision history for this message
sander (s-devrieze) wrote :

2007/10/31, antoniofcano <email address hidden>:
> Testing some Adium themes (Renkoo, RenkooNaked, Stockholm).

/me wants GUI for testing themes! B-)

> Then I tried with iChat Clone, but it has got javascript.

Maybe SEE can be helpful here (BSD license):
http://www.adaptive-enterprises.com.au/~d/software/see/
It's also used as Javascript interpreter in Hv3: http://tkhtml.tcl.tk/hv3.html
Note that this webpage contains links to more open source engines.

--
Mvg, Sander Devrieze.

Revision history for this message
Mats (matsben) wrote :

On 10/31/07, antoniofcano <email address hidden> wrote:
> I know that some popular clients (adium, galk, kopete, ¿others?) are
> using this kind of themes, bud I don't know if they use the same specs
> for the theme.
>
> What about this links:
> http://kopete.kde.org/chatwindowstyleguide/index.html
> http://www.customizetalk.com/forums/viewtopic.php?t=402
>

Very good docs. I need to read up on these. There seems to be at least
some consencus among the style formats. As far as I can see they
essentially follow the Mac bundle folder structure and have
standardized html and css files.

Revision history for this message
Mats (matsben) wrote :

First, could you guys cool down a bit; I'm trying to write some code here ;-)
I'm struggling to get *one* theme working (Bubblegum) and to figure out how to solve things. In my local copy I've got emoticon, uri, and *bold* etc. parsing working. But it turns out that tkhtml does not provide a high level way to interpret <a href/> elements but that has to be coded. Stealing code from hv3.

> /me wants GUI for testing themes! B-)

/I need to get more things working first. Else just try to build tkhtml yourself and set:
    # Allow themed chats.
    set ::config(chat,try-themed) 1

> Maybe SEE can be helpful here (BSD license):

I also saw this. There are notes that this is VERY experimental. Not sure how bindings to tcl works but I guess it just needs a DOM interface (you see, I'm learning web jargon).

Revision history for this message
Mats (matsben) wrote :

> Other old new related to the themes:
> http://www.mundogtalk.com/modules.php?name=News&file=article&sid=38

> I guess Adium has them most themes:
> http://www.adiumxtras.com/index.php?a=search&cat_id=5&sort=downloads

> btw: what about the Stockholm style Mats? ;-)

The formats seem to agree pretty well. At least the basic stuff.

Most themes (Stockholm) seem far to complex at this stage.
Sidenote: seems Adium is using html/css also for its roster.

> If I copy a theme when coccinella is running it doesn't recognize, I
> have to close the application and launch again.

Fixed now in my local version. There were also other problems fixed.

I need to read up on the docs you have provided and make a proper implementation. I pick the least common denominator of the formats, thus I skip all format extensions. I also need to have a:

# o toggle history (<div id='history'/> ; DIV#history { display: none }

to be able to toggle history.

Revision history for this message
antoniofcano (antoniofcano) wrote :

Don't worry, this weekend I'll have two linux box for working in other stuff ;)

2007/11/1, Mats <email address hidden>:
>
> > Other old new related to the themes:
> > http://www.mundogtalk.com/modules.php?name=News&file=article&sid=38
>
> > I guess Adium has them most themes:
> > http://www.adiumxtras.com/index.php?a=search&cat_id=5&sort=downloads
>
> > btw: what about the Stockholm style Mats? ;-)
>
> The formats seem to agree pretty well. At least the basic stuff.
>
> Most themes (Stockholm) seem far to complex at this stage.
> Sidenote: seems Adium is using html/css also for its roster.
>
> > If I copy a theme when coccinella is running it doesn't recognize, I
> > have to close the application and launch again.
>
> Fixed now in my local version. There were also other problems fixed.
>
> I need to read up on the docs you have provided and make a proper
> implementation. I pick the least common denominator of the formats, thus
> I skip all format extensions. I also need to have a:
>
> # o toggle history (<div id='history'/> ; DIV#history { display: none
> }
>
> to be able to toggle history.
>
> --
> Chat Styles
> https://bugs.launchpad.net/bugs/146671
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Mats (matsben) wrote :

More fixes to cvs. I had misunderstood the role of the Next templates. Currently, the biggest obstacle is to figure out how to do DOM node editing under tkhtml, if there is any?

Revision history for this message
Mats (matsben) wrote :

Got help from Dan Kennedy who writes tkhtml about poorly (not at all) documented features. It now handles the <div id="insert"></div> tags correctly: when a Next html is being added, if the previous was from the same source (in or out), then the new html is parsed into a list of nodes which is put in place of the div node.

The avatars now use some kind of reference counts in order to avoid updating all of them. When either my own or the other avatar is updated I increment a counter for each (for the state of the widget) and use this for the %userIconPath%. Then the image handler gets called and the fresh avatar is obtained. Almost. It needs to be obtained from the server (vcard or pubsub) and I can't be sure I've got it before I need it :-(

Revision history for this message
Mats (matsben) wrote :

Now the avatars are set correctly after some pain. See also: https://bugs.launchpad.net/coccinella/+bug/154219

Next to attack is the history handling, fonts in Mac tkhtml, windows build, and test more themes.

Revision history for this message
antoniofcano (antoniofcano) wrote :

Today I've updated the CVS copy and become impressed. Two good news:
1) The themes Modern Bubbling, Renkoo and bublegum from Adium works perfect.
2) By error I wrote a little piece of html with Chat Style activate. And I can see the text formated. yeah!!!

 Great work

Revision history for this message
Mats (matsben) wrote :

Not sure if it shall be possible to enter html code or if the special
characters shall be encoded as in &gt; etc. I have a "ticket" at
tkhtml for this. There can be differences between html and xml.
I have the history "toggling" code on paper but haven't had a chance
to enter it. I will also look into doing a package which adds some
high level support to <a href='...'> handling.
I have seen problems with the repeat CSS tag (?) which draws images
all over the place.

BTW, thank Daniel Kennedy who does the main work. It is a giant task...

And it runs on Windows, see attached shot!
Managed to get the MinGW build system work.

On 11/14/07, antoniofcano <email address hidden> wrote:
> Today I've updated the CVS copy and become impressed. Two good news:
> 1) The themes Modern Bubbling, Renkoo and bublegum from Adium works perfect.
> 2) By error I wrote a little piece of html with Chat Style activate. And I
> can see the text formated. yeah!!!
>
> Great work
>
> --
> Chat Styles
> https://bugs.launchpad.net/bugs/146671
> You received this bug notification because you are a bug assignee.
>

Revision history for this message
sander (s-devrieze) wrote :

2007/11/14, Mats <email address hidden>:
> Not sure if it shall be possible to enter html code or if the special
> characters shall be encoded as in &gt; etc. I have a "ticket" at
> tkhtml for this. There can be differences between html and xml.

Do you mean characters typed by the user or his contact? These
characters *ALWAYS* have to be encoded (unless you start doing
XHTML-IM of course). If you start encoding these, that will be a
security risk and it can annoy the user.

> I have the history "toggling" code on paper but haven't had a chance
> to enter it. I will also look into doing a package which adds some
> high level support to <a href='...'> handling.
> I have seen problems with the repeat CSS tag (?) which draws images
> all over the place.
>
> BTW, thank Daniel Kennedy who does the main work. It is a giant task...

Maybe worth a blog post (but maybe wait until it is enabled in the
daily build so that people immediately can see it in action if they
want ;-) ).

> And it runs on Windows, see attached shot!
> Managed to get the MinGW build system work.

You forgot the screenshot it seems...

--
Mvg, Sander Devrieze.

Revision history for this message
Mats (matsben) wrote :

On 11/14/07, sander <email address hidden> wrote:
> 2007/11/14, Mats <email address hidden>:
> > Not sure if it shall be possible to enter html code or if the special
> > characters shall be encoded as in &gt; etc. I have a "ticket" at
> > tkhtml for this. There can be differences between html and xml.
>
> Do you mean characters typed by the user or his contact? These
> characters *ALWAYS* have to be encoded (unless you start doing
> XHTML-IM of course). If you start encoding these, that will be a
> security risk and it can annoy the user.

I do the xml encoding as usual, but the tkhtml behaves a bit odd here.
I have sent them a bug report (ticket) on this.

>
> > I have the history "toggling" code on paper but haven't had a chance
> > to enter it. I will also look into doing a package which adds some
> > high level support to <a href='...'> handling.
> > I have seen problems with the repeat CSS tag (?) which draws images
> > all over the place.
> >
> > BTW, thank Daniel Kennedy who does the main work. It is a giant task...
>
> Maybe worth a blog post (but maybe wait until it is enabled in the
> daily build so that people immediately can see it in action if they
> want ;-) ).

It wont be enabled for some time since tkhtml is moving too fast, and
there is simply too
much to do. However, it can still be worth blogging about just to turn
up expectations
(And make others leg shaking) Still haven't seen any x-platform
support for this anywhere.
Looked at Psi logs but couldn't find it there...

>
> > And it runs on Windows, see attached shot!
> > Managed to get the MinGW build system work.
>
> You forgot the screenshot it seems...
>

They wont be accepted by LaunchPad why I CCed Antonio. Now you.

Revision history for this message
Mats (matsben) wrote :

Now added much more structure into the parse tree like:

    # html tree:
    # <div id='Chat'>
    # <div id='History'>
    # ...
    # <div id='insert'/>
    # ...
    # <div id='insertHistory'>
    # </div>
    # ...
    # <div id='insert'/>
    # ...

in order to keep the history messages apart from the "live" messages. It is now possible to "toggle" the history so that they can be visible or not. Not sure if this is the right way and if there are other html fragments that shall be used for history messages.

In http://kopete.kde.org/chatwindowstyleguide/index.html I read:
Incoming/Context.html, Incoming/NextContext.html, Outgoing/Context.html, Outgoing/NextContext.html (Optional)

    These templates are not used in Kopete. In Adium, they are used to display history. It is mostly the same thing as Content and NextContent but with some differences to distinguist from normal messages.

so I don't know what to do.

sander (s-devrieze)
description: updated
sander (s-devrieze)
description: updated
sander (s-devrieze)
description: updated
Revision history for this message
Mats (matsben) wrote :

An alternative to using tkhtml on Windows is to use the COM interface via optcl:
http://wiki.tcl.tk/1822
The problem with optcl is that it is very old and gets no maintenance.
And I don't know how much useful you can find from its typelibraries,
or if you can parse html incrementally, or if there is DOM support.

It seems that Mozilla also has a COM interface.

Revision history for this message
sander (s-devrieze) wrote :

2008/4/16, Mats <email address hidden>:
> An alternative to using tkhtml on Windows is to use the COM interface via optcl:
> http://wiki.tcl.tk/1822
> The problem with optcl is that it is very old and gets no maintenance.
> And I don't know how much useful you can find from its typelibraries,
> or if you can parse html incrementally, or if there is DOM support.
>
> It seems that Mozilla also has a COM interface.

-1: this will make it harder to support this feature on different
platforms with different browsers installed. Also, using Tkhtml will
be an indirect contribution to this interesting project (more people
will get interested in this browser/renderer and some may start
contributing). I also guess the author of Tkhtml will be flattered if
you include his code in Coccinella and it will be easier for you to
feature request things or get bugs fixed that will be useful for
Coccinella (this will be much harder when you depend on Internet
Explorer ;-) )

--
Mvg, Sander Devrieze.

Revision history for this message
Mats (matsben) wrote :

Principally I agree with you but the actual code that directly
interfaces tkhtml isn't that much. I just thought it would be another
way to push this forward since tkhtml is likely to take more time
before it is useful. And all gtalk themes would probably work since al
the MS tricks are in the IE ActiveX controller. I guess that gtalk is
also using the same IE controller for their display.

Revision history for this message
sander (s-devrieze) wrote :

2008/4/16, Mats <email address hidden>:
> Principally I agree with you but the actual code that directly
> interfaces tkhtml isn't that much. I just thought it would be another
> way to push this forward since tkhtml is likely to take more time
> before it is useful. And all gtalk themes would probably work since al
> the MS tricks are in the IE ActiveX controller. I guess that gtalk is
> also using the same IE controller for their display.

This is how I would implement this feature in different stages:
1) Enable all chat style code (also preferences panel) just after next
release *and* blog that you did this and ask people to test this
feature as much as possible. Fix the reported bugs, forward bugs to
the Tkhtml project, and regularly update the Tkhtml version in the
daily build.
2) Do a first Coccinella release with Tkhtml included and enabled, but
do not yet enable the GUI for it in the preferences panel (so people
will need to know where to put the theme). Keep the GUI enabled in the
cvs version.
3) In the following release you enable the GUI and distribute a few
well-tested themes that work at 100%. Display a warning when people
try to load another theme that was not tested and ask them to report
all bugs they discover.
4) Next release you add a few more themes (you can do this for a few releases).
5) In the end you remove the warning and optimize the GUI for
importing new themes, *.AdiumStyle file association on the system, etc

--
Mvg, Sander Devrieze.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.