Author: gwadavel
Date: 2008-11-30 23:23:34 +0100 (Sun, 30 Nov 2008)
New Revision: 2944

Removed:
   software_suite_v2/software/scripts/pidgin/trunk/tux_pidgin_fr.py
Log:
don't work, use tux_pidgin_chat

Deleted: software_suite_v2/software/scripts/pidgin/trunk/tux_pidgin_fr.py
===================================================================
--- software_suite_v2/software/scripts/pidgin/trunk/tux_pidgin_fr.py    
2008-11-30 22:17:31 UTC (rev 2943)
+++ software_suite_v2/software/scripts/pidgin/trunk/tux_pidgin_fr.py    
2008-11-30 22:23:34 UTC (rev 2944)
@@ -1,150 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-# -----------------------------------------------------------------------------
-# Tux Droid - Pidgin InterFace
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-# -----------------------------------------------------------------------------
-# $Id: $
-# -----------------------------------------------------------------------------
-
-"""
-CHANGES
-=======
-2008/11/26 - version 0.2.1:
-       - Translation TuxDroid V2 by Gwadavel
-2007/05/26 - version 0.2:
-    - Tuxdroid speaks with TTS voices that say the contact on pidgin
-
-2007/05/21 - version 0.1:
-    - Initial version
-
-TODO LIST
-========
-- Make some actions when a conversation started
-- Internationalization
-- Improvement of conversion received message (html2text)
-
-"""
-
-__author__  = "Thomas CARPENTIER <[EMAIL PROTECTED]> & Julien Ruchaud"
-__appname__ = "TuxPidgin"
-__version__ = "0.2.1"
-__date__    = "2007/05/26"
-__license__ = "GPL"
-
-# -----------------------------------------------
-# Initalization of modules
-# -----------------------------------------------
-import sys
-from tuxisalive.api import *
-tux = TuxAPI('127.1.1.1', 270)
-
-# Others
-import dbus
-import dbus.glib
-import dbus.decorators
-import gobject
-import os
-import re
-import time
-import sgmllib
-
-DEBUG = False
-
-class MessageParser(sgmllib.SGMLParser):
-    """I found this snippets in this website : 
http://quickies.seriot.ch/index.php""";
-    def __init__(self):
-        sgmllib.SGMLParser.__init__(self)
-        
-    def strip(self, some_html):
-        self.theString = ""
-        self.feed(some_html)
-        self.close()
-        return self.theString
-        
-    def handle_data(self, data):
-        self.theString += data
-    
-def tuxConnect():
-       """ Wait connected """
-       tux.server.autoConnect(CLIENT_LEVEL_RESTRICTED, 'TuxPidgin', 'NONE')
-       tux.server.waitConnected(10.0)
-       tux.dongle.waitConnected(10.0)
-       tux.radio.waitConnected(10.0)
-
-def lang():
-       if tux.tts.getLocutor(  
-# This method is execute when a message is receive
-def received_im_msg(account, name, message, conversation, flags):
-    buddy = purple.PurpleFindBuddy(account, name)
-    if buddy != 0:
-        alias = purple.PurpleBuddyGetAlias(buddy)
-    else:
-        alias = name
-    text = "%s dit %s" % (alias, message)
-    #text = re.sub("<.*?>", "", text)#html2text
-    message=text.encode('latin-1')
-    MessageP = MessageParser()
-    message = MessageP.strip(message)
-    tux_speak(message)
-    
-  
-# This method is excute when a buddy is sign on
-def buddy_signed_on(buddyid):
-    alias = purple.PurpleBuddyGetAlias(buddyid)
-    text = "%s est en ligne" % alias
-    text=text.encode('latin-1')
-    tux_speak(text)
-
-# Tux speak the text   
-def tux_speak(text):
-    if DEBUG: print(text)
-    if tux.access.waitAcquire(10.0, ACCESS_PRIORITY_NORMAL):
-       if DEBUG: print("tux connecté")
-        tux.mouth.open()
-        tux.tts.speak(text,"Julie",100)
-        tux.mouth.close()
-    tux.access.release()
-
-# Main
-
-tuxConnect()
-bus = dbus.SessionBus()
-
-try:
-    obj = bus.get_object("im.pidgin.purple.PurpleService", 
"/im/pidgin/purple/PurpleObject")
-    purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
-except dbus.DBusException:
-    tux_speak("Pidgin n'est pas lancé")
-    sys.exit(1)
-
-
-
-bus.add_signal_receiver(received_im_msg,
-                        dbus_interface = "im.pidgin.purple.PurpleInterface",
-                        signal_name = "ReceivedImMsg")
-
-bus.add_signal_receiver(buddy_signed_on,
-                        dbus_interface = "im.pidgin.purple.PurpleInterface",
-                        signal_name = "BuddySignedOn")
-
-tux_speak("TuxPidgin est commencé")
-loop = gobject.MainLoop()
-loop.run()
-tux.server.disconnect()
-tux.destroy()


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to