[JDEV] Rich Text in Messages

Ryszard Sommefeldt ryszards at xnl-interactive.com
Sun Dec 10 18:43:34 CST 2000


Hi,

Good question!  There is no way for a non HTML/XHTML
aware application to just display the raw text.  This problem
exists for all 'aware' clients (are there any others?).

Currently, when my client communicates with another client,
it does a jabber:iq:version 'get' and if my client is found to be
at the other end, it safely sends a formatted message, otherwise
it sends plain text for compatibility.

With groupchat, I envisage it requiring a change to the
transport to fix the problem.

When joining or starting a groupchat, the client
should notify groupchat that it is aware of message formatting.

Current non-aware clients would not know to send this extra
info, so groupchat should assume they are unaware clients.

Then when an aware client sends a formatted message, it should
piggy back the plain text of the message onto the formatted
message (an extra field?).

Then groupchat decides what to send other clients participating
in the groupchat.  If the client has registered itself as being aware,
send it the formatted message, otherwise send the plain text.

Hopefully these changes to groupchat wouldn't break any
existing client.

Using extended namespaces and always sending a formatted
message no matter what, has problems.  Firstly, an excess of
data is sent to clients that are not aware.  There is no need
to send a formatted message, even 'hidden' in an 'x' tag, to
a client that is unaware.

With light clients, such as those running on pocket PC's or
any machine with limited bandwidth, you need to optimise
the data you send over the wire.

My current implementation doesn't send a formatted message
if it isn't necessary, at least in the normal message case. With
the modified groupchat case, there is only an excess of data
sent by aware clients.  A modified groupchat would minimise
the data sent to clients, depending on reported capabilities.

Just my ideas....

Ryszard

----- Original Message ----- 
From: "Justin Van Patten" <kvanpat790 at yahoo.com>
To: <jdev at jabber.org>
Sent: Saturday, December 09, 2000 10:14 AM
Subject: Re: [JDEV] Rich Text in Messages


> Ryszard,
> 
> How are you doing this?  How will the clients that
> aren't able to "format" text be able to get to the
> plain text?
> 
> Thanks,
> Justin Van Patten
> JID: justinvp at hotjabber.com
> IRC: JustinVP
> 
> --- Ryszard Sommefeldt <ryszards at xnl-interactive.com>
> wrote:
> > I have a Win32 client in development (unreleased)
> > that
> > does message formatting using HTML and XHTML
> > Basic.  It does so with Groupchat and normal Jabber
> > messages.
> > 
> > Ryszard
> > 
> > ----- Original Message ----- 
> > From: "Justin Van Patten" <kvanpat790 at yahoo.com>
> > To: <jdev at jabber.org>
> > Sent: Wednesday, December 06, 2000 2:39 AM
> > Subject: [JDEV] Rich Text in Messages
> > 
> > 
> > > The JPG states that:
> > > 
> > > "To extend messages for more 'rich' text, the
> > Jabber
> > > protocol encourages use of XHTML Basic. A plain
> > text
> > > copy of the message should be included in the
> > standard
> > > body so that clients that do not support XHTML
> > Basic
> > > can still view the message."
> > > 
> > > The above citation can be found here:
> > > 
> > > http://docs.jabber.org/jpg/refmessage.html
> > > 
> > > I am curious if any client applications support
> > 'rich'
> > > text.  When I say 'rich' text, I'm referring to
> > > messages that are formatted, to be a particular
> > color,
> > > font face, bold/italic/underlined, etc.
> > > 
> > > Any information on this would be appreciated. 
> > Thanks!
> > > 
> > > Regards,
> > > Justin Van Patten
> > > JID: justinvp at hotjabber.com
> > > IRC: JustinVP
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Shopping - Thousands of Stores. Millions of
> > Products.
> > > http://shopping.yahoo.com/
> > > 
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> > > 
> > 
> > 
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
> 





More information about the JDev mailing list