Andreas Nicolai | 9 Apr 02:09 2006
Picon
Picon

[kde-edu]: KTouch - dead key bug

Hi folks,

I have a problem here that I can't solve by myself. I got a report that KTouch 
doesn't handle dead keys properly. However, it seems to work on some systems, 
and on others it doesn't (it doesn't work on mine with KDE 3.4.2). So at 
first, if you have a second, could you maybe test whether this works on your 
computer and tell me which KDE version you use if it does?

Secondly, I believe that somewhere in the Qt system there must be a way to 
tell the difference between the keypress event and the receiving of a 
completely composed key (after "adding in" the dead key). It makes sense to 
me that a keypress event blindly reports any key that is pressed, and as such 
also dead keys. But how can I get only the final key?

Or, if I manually decompose dead keys and final keys, for instance I notice 
that the user presses ^ and then o I need to know that the final character is 
ô ... does anyone know an elegant way how to get that from ^ and o without 
adding X11 specific code?

Finally, an important part of the functionality in KTouch is that keys to be 
pressed are highlighted. So for example, when the student is required to type 
a è, should I highlight the LEFT_SHIFT, the ` and the e at the same time or 
rather LEFT_SHIFT and ` and then e once I got the keypress event for ` ?

Bye,
Andreas
Peter Hedlund | 9 Apr 20:11 2006

Re: [kde-edu]: KTouch - dead key bug

On Saturday 08 April 2006 17:09, Andreas Nicolai wrote:
> Hi folks,
>
> I have a problem here that I can't solve by myself. I got a report that
> KTouch doesn't handle dead keys properly. However, it seems to work on some
> systems, and on others it doesn't (it doesn't work on mine with KDE 3.4.2).
> So at first, if you have a second, could you maybe test whether this works
> on your computer and tell me which KDE version you use if it does?

It seems to work properly for me. Gentoo 2006.0 with KDE 3.5.2. At least with 
a Swedish keyboard layout which has some dead keys.

Could the problem be related to IMEs such as SCIM? See e.g. 
https://bugs.kde.org/show_bug.cgi?id=112361. I now some distros patch Qt for 
this.

Thanks,
Peter
Andreas Nicolai | 12 Apr 15:40 2006
Picon
Picon

: Playing sounds ...

Hi there,

I was trying to implement sound in KTouch yesterday and found myself cursing 
after hours of trying because the Arts KDE extension are not documented (not 
even a few lines of comments in the implementation files) and the code posted 
on the edu.kde.org page is outdated (doesn't compile anylonger) and is also 
slightly misleading (lifetime of objects to short to actually hear a sound).

Anyway, if you want to have a somewhat more control when playing sounds (then 
just doing it n a fire-and-forget way), here's what you need to do:

1. create an KArtsDispatcher and KArtsServer object for the lifetime of your 
program (not like in the example, as soon as the dispatcher goes out of 
scope, that's it for the sound)

2. keep you playobject factory alive and monitor the status of your play 
objects

3. if you want to play the same sound (using the same playobject) again, you 
need to rewind it like via play_object->seek( poTime(0,0,0,"samples") );

4. you need to link against $(LIB_ARTS) and if that doesn't work try -lartskde
(why the heck isn't LIB_ARTS working on my computer???)

Anyway, I also attached a more complex example that works and has a somewhat 
better initialization routine (even though that could be improved even 
further with some error checks).

Could someone with access maybe upload those files to the webpage to help 
others and save them some time? I really hope that Arts becomes better 
(Continue reading)

Andreas Nicolai | 12 Apr 15:46 2006
Picon
Picon

[kde-edu]: Playing sounds quickly and over and over again...

Hi again,

after figuring out how to play sounds in general and having that working, I 
still have one problem. Whenever I call the play() function in a play object, 
there is a short delay of about 300-500 ms before I hear the sound.

Is there any way to reduce that time? In KTouch it would be nice to have this 
type writer sound back, but right now you press a few keys and the sound 
plays slightly delayed (which is not so nice).

Does anyone know how to speed up sound playback? I'm already reusing play 
objects to avoid reinitialization of the play buffer, but that's still not 
fast enough...

Bye,
Andreas
Albert Astals Cid | 12 Apr 19:13 2006
Picon

Re: [kde-edu]: Playing sounds ...

Just a quick note, you should NOT be using arts on KDE4 code, you should be 
using Phonon.

If it is KDE3 code then it's fine ;-)

Albert

A Dimecres 12 Abril 2006 15:40, Andreas Nicolai va escriure:
> Hi there,
>
> I was trying to implement sound in KTouch yesterday and found myself
> cursing after hours of trying because the Arts KDE extension are not
> documented (not even a few lines of comments in the implementation files)
> and the code posted on the edu.kde.org page is outdated (doesn't compile
> anylonger) and is also slightly misleading (lifetime of objects to short to
> actually hear a sound).
>
> Anyway, if you want to have a somewhat more control when playing sounds
> (then just doing it n a fire-and-forget way), here's what you need to do:
>
> 1. create an KArtsDispatcher and KArtsServer object for the lifetime of
> your program (not like in the example, as soon as the dispatcher goes out
> of scope, that's it for the sound)
>
> 2. keep you playobject factory alive and monitor the status of your play
> objects
>
> 3. if you want to play the same sound (using the same playobject) again,
> you need to rewind it like via play_object->seek( poTime(0,0,0,"samples")
> );
(Continue reading)

Albert Astals Cid | 12 Apr 19:16 2006
Picon

Re: [kde-edu]: Playing sounds quickly and over and over again...

A Dimecres 12 Abril 2006 15:46, Andreas Nicolai va escriure:
> Hi again,
>
> after figuring out how to play sounds in general and having that working, I
> still have one problem. Whenever I call the play() function in a play
> object, there is a short delay of about 300-500 ms before I hear the sound.
>
> Is there any way to reduce that time? In KTouch it would be nice to have
> this type writer sound back, but right now you press a few keys and the
> sound plays slightly delayed (which is not so nice).
>
> Does anyone know how to speed up sound playback? I'm already reusing play
> objects to avoid reinitialization of the play buffer, but that's still not
> fast enough...

Really no idea, but as i said before, you should be coding for KDE4 (as KDE3 
is feature frozen), In KDE4 is there Phonon that is a new multimedia 
framework, i do not know if it solves that issues but you can always contact 
the developers and ask them to fix it now that they are developing it.

Albert

> Bye,
> Andreas
> _______________________________________________
> kde-edu mailing list
> kde-edu <at> mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu

		
(Continue reading)

Andreas Nicolai | 13 Apr 12:45 2006
Picon
Picon

[kde-edu]: Phonon and KDE4 development

Hi there,

I will look at Phonon and probably disable sounds until then (or leave it in as hidden experimental
feature). Just a quick note: until I get the KDELibs for KDE 4 to compile properly, I will develop further
feature using the KDE3 libs and port them to KDE4 as soon as it becomes stable enough. Therefore I would like
to ask to leave the KTouch code alone for the moment and not start porting it to KDE 4 already, since changes
will be made to the current code anyway.

Because of the feature freeze in KDE 3.5 I will release the current development versions as stand-alone
package for KTouch on the Sourceforge pages.

Btw, when will you guys start to port your applications to KDE 4?

Andreas
Albert Astals Cid | 13 Apr 13:06 2006
Picon

Re: : Phonon and KDE4 development

A Dijous 13 Abril 2006 12:45, Andreas Nicolai va escriure:
> Hi there,
>
> I will look at Phonon and probably disable sounds until then (or leave it
> in as hidden experimental feature). Just a quick note: until I get the
> KDELibs for KDE 4 to compile properly, I will develop further feature using
> the KDE3 libs and port them to KDE4 as soon as it becomes stable enough.
> Therefore I would like to ask to leave the KTouch code alone for the moment
> and not start porting it to KDE 4 already, since changes will be made to
> the current code anyway.
>
> Because of the feature freeze in KDE 3.5 I will release the current
> development versions as stand-alone package for KTouch on the Sourceforge
> pages.
>
> Btw, when will you guys start to port your applications to KDE 4?
>
> Andreas
> _______________________________________________
> kde-edu mailing list
> kde-edu <at> mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu

		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
Albert Astals Cid | 13 Apr 13:10 2006
Picon

Re: : Phonon and KDE4 development

First of all sorry for the empty mail.

A Dijous 13 Abril 2006 12:45, Andreas Nicolai va escriure:
> Hi there,
>
> I will look at Phonon and probably disable sounds until then (or leave it
> in as hidden experimental feature). Just a quick note: until I get the
> KDELibs for KDE 4 to compile properly, 
Well, kdelibs4_snapshot builds properly, the problem it is a movable target, 
that is you port code, it works, but then 2 weeks after, kdelibs4_snapshot 
changes again and your code no longer compiles.

> I will develop further feature using 
> the KDE3 libs and port them to KDE4 as soon as it becomes stable enough.
> Therefore I would like to ask to leave the KTouch code alone for the moment
> and not start porting it to KDE 4 already, 
You are late, we have already done that. (well, really it only compiles, while 
fails on startup because KUrl semantics changed and need to be adapted)

> since changes will be made to 
> the current code anyway.
>
> Because of the feature freeze in KDE 3.5 I will release the current
> development versions as stand-alone package for KTouch on the Sourceforge
> pages.
Ok :-) Nice to have another version :-)

> Btw, when will you guys start to port your applications to KDE 4?

As said we have already done, almost all kdeedu4 builds, the problem is that 
(Continue reading)

Jason Harris | 13 Apr 22:14 2006

: packaging scripts

Hello,

What do people use to package apps into release tarballs?  I have a ruby 
script (kdeedu_release.rb) that I got from Carsten several months ago, 
written by Mark Kretschmann.  But it has a couple of problems: it can't find 
the i18n stuff (I think because it's been moved on the server), and for some 
reason, it seems to be adding an extra "}" to the end of my main.cpp (!)

Is there an updated version of this script, or any other similar solutions out 
there?  

thanks,
Jason

--

-- 
-------------------------------
KStars: http://edu.kde.org/kstars
Forums: http://kstars.30doradus.org

Gmane