[Standards-JIG] JEP-0171 Questions (Language Translation)
-Registering a Translator
Chris Mullins
chris.mullins at coversant.net
Tue Oct 10 12:54:36 CDT 2006
Jean-Louis,
This would work for quite a few cases, but it leaves some holes.
If the bot that provides the translation services goes offline, there's
no mechanism in XEP-0030.5 to remove the discovery item from the server
list. It relies on the bot actually unregistering the discovery item,
which is something that won't happen in a number of conditions.
The discovery item is really tied to the presence of the bot performing
the translation. If that bot is online, then translation can happen. If
that bot is offline, then it shouldn't be advertised by the server.
This may be solved through an XEP-0030 modification for presence-based
discover items. As this hasn't really come up before though, I don't
know if that's justified.
--
Chris Mullins
-----Original Message-----
From: standards-jig-bounces at jabber.org
[mailto:standards-jig-bounces at jabber.org] On Behalf Of Jean-Louis
Seguineau
Sent: Tuesday, October 10, 2006 10:30 AM
To: standards-jig at jabber.org
Subject: RE: [Standards-JIG] JEP-0171 Questions (Language Translation)
-Registering a Translator
Chris,
Maybe XEP-0030 section 5 "Publishing Available Items" will do the trick
here. The bot will only need to publish the translation support for
disco to
be set.
Jean-Louis
-----Original Message-----
Message: 3
Date: Tue, 10 Oct 2006 09:53:44 -0700
From: "Chris Mullins" <chris.mullins at coversant.net>
Subject: [Standards-JIG] JEP-0171 Questions (Language Translation) -
Registering a Translator
To: "Jabber protocol discussion list" <standards-jig at jabber.org>
Message-ID:
<97B71C0C860DEC40A993AB9F7F0D4335524C75 at fattire.winfessor.com>
Content-Type: text/plain; charset="utf-8"
There exists in the JEP a Discovery mechanism for a client to find a
translator:
<query xmlns='http://jabber.org/protocol/disco#items'>
...
<item jid='towerofbabel at shakespeare.lit'
name='Tower of Babel Translation Bot'/>
...
</query>
</iq>
However, there's no way that I see in the protocol for a translator
(assuming a bot or a human translator) to log in and announce to the
server
that it provides translation services. It seems as if, using the JID
approach, that the translator should announce presence:
<presence>
<x xmlns='http://jabber.org/protocol/langtrans'>
<translation name='Tower of Babel Translation Bot'/>
</x>
</presence>
When the server sees this presence that JID and Name can be added into
the
discovery items that the server sends back for disco requests. This
eliminates signifgiant configuration from the server, and allows a
single
bot to provide translation for a wide range of XMPP servers.
--
Chris Mullins
------------------------------
_______________________________________________
Standards-JIG mailing list
Standards-JIG at jabber.org
http://mail.jabber.org/mailman/listinfo/standards-jig
End of Standards-JIG Digest, Vol 35, Issue 27
*********************************************
More information about the Standards-JIG
mailing list