Text Formatting

Eion Robb eion at robbmob.com
Sun Dec 17 15:24:53 EST 2017


Hi Naveen,

Make sure you're advertising support for XHTML using
https://xmpp.org/extensions/xep-0071.html#discovery

Also, you might want to double-check that your Java client isn't encoding
the XHTML into its entities, there might be a different method you need to
use to send a message with formatting than the one you currently use.  You
can test this in Pidgin by looking in Help->Debug Window when you receive a
message, or enabling the XMPP Console Log plugin, and looking in
Tools->Console Log.

Cheers,
Eion

On 14 December 2017 at 19:16, Naveen Jafer <naveenjafer at outlook.com> wrote:

> Hi Robb,
>
>      Sending the XHTML message as given in the example
>
> <message>
>   <body>hi!</body>
>   <html xmlns='http://jabber.org/protocol/xhtml-im'>
>     <body xmlns='http://www.w3.org/1999/xhtml'>
>       <p style='font-weight:bold'>hi!</p>
>     </body>
>   </html>
> </message>
>
> just returns this very same XHTML as a plain string in pidgin, am I
> supposed to be specifying somewhere in the xmpp message sent that I intend
> to send a XHTML message, so parse it accordingly? I am sending the text
> from a Java client that is developed using smack in Java.
>
>
> Warm Regards,
>
> Naveen
>
>
> Sent from Outlook <http://aka.ms/weboutlook>
> ------------------------------
> *From:* Eion Robb <eion at robbmob.com>
> *Sent:* Thursday, December 14, 2017 1:04:51 AM
> *To:* Naveen Jafer
> *Cc:* support at pidgin.im
> *Subject:* Re: Text Formatting
>
> Hi Naveen,
>
> Have a look at https://xmpp.org/extensions/xep-0071.html which is the XEP
> for sending formatted messages.  Basically, you send an XHTML message
> alongside the plaintext version in order to send <b> to make text bold.
>
> Cheers,
> Eion
>
> On 13 December 2017 at 23:48, Naveen Jafer <naveenjafer at outlook.com>
> wrote:
>
> Hi Everyone,
>
>      I have a Java based XMPP client that sends out plain text messages to
> accounts that are viewed in Pidgin. What needs to be done to set the font
> formatting when viewing it in Pidgin. I would like to make it bold.
> **text** hasnt worked for me.
>
>
> Warm Regards,
>
> Naveen
>
> Sent from Outlook <http://aka.ms/weboutlook>
>
> _______________________________________________
> Support at pidgin.im mailing list
> Want to unsubscribe?  Use this link:
> https://pidgin.im/cgi-bin/mailman/listinfo/support
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pidgin.im/pipermail/support/attachments/20171218/a123e951/attachment.html>


More information about the Support mailing list