Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Education
childsplay_plugins
childsplay_plugins-0.80.7-alphabet-sounds.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File childsplay_plugins-0.80.7-alphabet-sounds.patch of Package childsplay_plugins
--- childsplay_plugins-0.80.7/lib/findsound2.py.alphabet 2006-04-09 11:12:39.000000000 +0200 +++ childsplay_plugins-0.80.7/lib/findsound2.py 2006-05-05 20:16:56.000000000 +0200 @@ -97,10 +97,10 @@ def _setup(self): """ Set all the stuff we need""" #self.sounddir = os.path.join(self.libdir,'Findsound2Data',get_locale()[:2]) - if _FSDEBUG: print "Looking for ",os.path.join(DATADIR,'AlphabetSounds',self.cpg.language) - self.sounddir = os.path.join(DATADIR,'AlphabetSounds',self.cpg.language) + if _FSDEBUG: print "Looking for ", os.path.join('/usr/share/gcompris/boards/sounds',self.cpg.language,'alphabet') + self.sounddir = os.path.join('/usr/share/gcompris/boards/sounds',self.cpg.language,'alphabet') if not os.path.exists(self.sounddir): - self.sounddir = os.path.join(DATADIR,'AlphabetSounds','en') + self.sounddir = '/usr/share/gcompris/boards/sounds/en/alphabet' img = load_image(os.path.join\ (self.libdir,'Findsound2Data','Data','soundbut.png'),1) @@ -127,7 +127,10 @@ else: fsize = 88 img = char2surf(c,fsize,(255,0,0)) - snd = os.path.join(snddir,c.lower()+'.ogg') + if c == '10': + snd = os.path.join(snddir, c.lower()+'.ogg') + else: + snd = os.path.join(snddir, 'U%04X.ogg'%ord(c.lower())) if _FSDEBUG: print "char,snd",c.lower(),snd objects.append(ImageObject(img,snd)) if _FSDEBUG: print "objects",objects --- childsplay_plugins-0.80.7/lib/packid.py.alphabet 2006-04-09 11:12:39.000000000 +0200 +++ childsplay_plugins-0.80.7/lib/packid.py 2006-05-05 20:15:26.000000000 +0200 @@ -473,7 +473,7 @@ # Look for alphabet sounds for this locale. # If all fails we fall back to the "old" wahoo sound. - alphabetdir = os.path.join(DATADIR,'AlphabetSounds',wordsloc) + alphabetdir = os.path.join('/usr/share/gcompris/boards/sounds',wordsloc,'alphabet') if not os.path.exists(alphabetdir): print >> sys.stderr, "Can't find",alphabetdir alphabetdir = None @@ -741,7 +741,7 @@ pygame.display.update(self.screen.blit(Img.pac_smile,self.packid.rect)) if self.alphabetdir: try: - char = obj.char.lower()+'.ogg' + char = 'U%04X.ogg' % ord(obj.char.lower()) pygame.time.wait(500) load_music(os.path.join(self.alphabetdir,char)).play() except Exception,info:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor