[sip-comm-dev] Translation module v0.1.0


#1

So this is the second version of the module, now using a XML file to read translation service parameter's and many improvements.

I. Instructions to use the module:

- Execute
  > jar xf translation.jar
  > ant
- Start bundle/translation.jar from your Felix installation
- Test using bundle/client.jar from your Felix installation

II. Configuration file sample:

<?xml version="1.0" encoding="UTF-8"?>
<!--TODO <!DOCTYPE translation_service SYSTEM "translationService.dtd">-->
<service requestMethod="POST">
     <name>Google Translate</name><!--Optional-->
     <!--Optional, for credits only, deduced from template otherwise-->
     <languages>
         <!--One "|"-separated language pair per line-->
         es>en
         en>es
         fr>en
         en>fr
     </languages>
     <limits lines="0" characters="0" pause="0"/>
     <request>
         <!--Don't forget to replace "&" characters with "&amp;"-->
         http://translate.google.com/translate_t?sl=<source/ >&amp;tl=<target/>&amp;text=<text/>
     </request>
     <response>
         <search begin='<div id=result_box dir="ltr">' end='</div>'/>
     </response>
</service>

III. Execution sample:

Translation Client> Starting client...
Translation Client> Enter config file path (blank line for default [src/translation/service/GoogleTranslate.xml]):

Translation Service> Reading service from /Users/ernipiggy/translation/src/translation/service/GoogleTranslate.xml...
Translation Service> serviceName: Google Translate
Translation Service> template: http://translate.google.com/translate_t?sl=<source/>&tl=<target/>&text=<text/>
Translation Service> serviceUrl: http://translate.google.com
Translation Service> Response start token: <div id=result_box dir="ltr">
Translation Service> Response end token: </div>
Translation Service> Limits: 0 Chars, 0 Lines, 0 pause.
Translation Service> Reading language pairs...
Translation Service> ... 4 total pairs
Translation Client> Enter a blank line to exit.
Translation Client> Enter text to translate (es>en): primera prueba
Translation Service> Request: http://translate.google.com/translate_t?sl=es&tl=en&text=primera+prueba
Translation Client> Translation (es>en): first test
Translation Client> Enter text to translate (es>en): traducción de la version 0.1.0 del módulo :slight_smile:
Translation Service> Request: http://translate.google.com/translate_t?sl=es&tl=en&text=traducción+de+la+version+0.1.0+del+módulo+%3A)
Translation Client> Translation (es>en): traducci� ranging from the version 0.1.0 of me dulo:)
Translation Client> Enter text to translate (es>en):

Encoding problems is the next step...

translation.jar (321 KB)


#2

Hi devs,

today I documented and cleaned up my source code for the msn multi user chat support and after rebuilding and running a test I found out that the JML lib
throws an exception while trying to connect and login. I tried it also with the Nightly Build from the website and I noticed the same problem.

SCHWERWIEGEND: impl.protocol.msn.ProtocolProviderServiceMsnImpl.exceptionCaught().594 Error in Msn lib
unsupported protocol : MSNP12 MSNP11 MSNP10 MSNP9 MSNP8
    at net.sf.jml.protocol.incoming.IncomingVER.messageReceived(IncomingVER.java:58)
    at net.sf.jml.protocol.MsnSession$1.messageReceived(MsnSession.java:109)
    at net.sf.jml.net.Session.fireMessageReceived(Session.java:293)
    at net.sf.jml.net.Session.access$1200(Session.java:32)
    at net.sf.jml.net.Session$MsgDispatcher.run(Session.java:275)
    at java.lang.Thread.run(Unknown Source)

Can anyone confirm that the msn lib isn't running anymore or at least confirm me that my changes are the reason for the problem?

Thanks for your help.

Cheers Rup.

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hey Rupert,

I can't confirm that your changes are the reason for your problems but
as it is, I am personally not having any with MSN.

In the case of Yahoo! messenger we have already seen users from
different locations get connected through different versions of the
protocol so if this is the case you might have to report it to the JML guys.

Cheers
Emil

Rupert Burchardi написа:

···

Hi devs,

today I documented and cleaned up my source code for the msn multi user
chat support and after rebuilding and running a test I found out that
the JML lib
throws an exception while trying to connect and login. I tried it also
with the Nightly Build from the website and I noticed the same problem.

SCHWERWIEGEND:
impl.protocol.msn.ProtocolProviderServiceMsnImpl.exceptionCaught().594
Error in Msn lib
unsupported protocol : MSNP12 MSNP11 MSNP10 MSNP9 MSNP8
    at
net.sf.jml.protocol.incoming.IncomingVER.messageReceived(IncomingVER.java:58)
    at net.sf.jml.protocol.MsnSession$1.messageReceived(MsnSession.java:109)
    at net.sf.jml.net.Session.fireMessageReceived(Session.java:293)
    at net.sf.jml.net.Session.access$1200(Session.java:32)
    at net.sf.jml.net.Session$MsgDispatcher.run(Session.java:275)
    at java.lang.Thread.run(Unknown Source)

Can anyone confirm that the msn lib isn't running anymore or at least
confirm me that my changes are the reason for the problem?

Thanks for your help.

Cheers Rup.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net