[JWM] jwm for the blind
Will Davies
will at hugthebubble.co.uk
Mon Mar 17 12:08:57 CDT 2008
David Grundey wrote:
> Hi
> Im trying to make the menu talk to a blind person When i use F12
then
> arrow keys is there any way i can access which menu ited is
highlighted so
> i can use a program like flite to speek a hightited menu item. This
is for
> the puppy linux project which seems to be going down the route of a
> command line type of menu.
>
> Yours topaz
>
David
I've just opened a new thread on the murga forum for this with a pet
package attached.
http://www.murga-linux.com/puppy/viewtopic.php?t=27287
The patch to jwm was actually very small, it relies on having an
executable in the path called jwm-speak that calls the reader with what
is supposed to be said.
# diff -u jwm_2.0.1_jwmspeak-0.3/src/ jwm-2.0.1/src
diff -u jwm_2.0.1_jwmspeak-0.3/src/client.c jwm-2.0.1/src/client.c
--- jwm_2.0.1_jwmspeak-0.3/src/client.c 2008-03-16 22:09:20.000000000 +0000
+++ jwm-2.0.1/src/client.c 2008-03-16 22:10:19.000000000 +0000
@@ -771,20 +771,6 @@
}
if(activeClient != np) {
-//start of hairywill's jwm-speak stuff
- char *str1="jwm-speak \"";
- char *str2=np->name;
- char *str3="\" window &";
- char *str4;
-
- str4 = (char *)malloc((strlen(str1) + strlen(str2) + strlen(str3)
+1)*sizeof(char));
- strcpy(str4, str1);
- strcat(str4, str2);
- strcat(str4, str3);
- system(str4);
- free(str4);
-
-//end of hairywill's jwm-speak stuff
if(activeClient) {
activeClient->state.status &= ~STAT_ACTIVE;
Only in jwm_2.0.1_jwmspeak-0.3/src/: Makefile
diff -u jwm_2.0.1_jwmspeak-0.3/src/menu.c jwm-2.0.1/src/menu.c
--- jwm_2.0.1_jwmspeak-0.3/src/menu.c 2008-03-17 10:58:57.000000000 +0000
+++ jwm-2.0.1/src/menu.c 2007-07-05 02:56:41.000000000 +0100
@@ -608,20 +608,6 @@
if(ip->type == MENU_ITEM_SEPARATOR) {
return;
}
-
-//start of hairywill's jwm-speak stuff
- char *str1="jwm-speak \"";
- char *str2=ip->name;
- char *str3="\" menu &";
- char *str4;
-
- str4 = (char *)malloc((strlen(str1) + strlen(str2) + strlen(str3)
+1)*sizeof(char));
- strcpy(str4, str1);
- strcat(str4, str2);
- strcat(str4, str3);
- system(str4);
- free(str4);
-//end of hairywill's jwm-speak stuff
ResetButton(&button, menu->window, rootGC);
button.type = BUTTON_MENU_ACTIVE;
see how it goes
Will
More information about the JWM
mailing list