Add unicode support to espeakup (Was: speakup: add unicode variant of /dev/softsynth)
Samuel Thibault
samuel.thibault at ens-lyon.org
Sat Mar 4 14:46:45 EST 2017
Hello William,
Could you commit this to the espeakup repository? That's all we need to
do on the espeakup side to support unicode :)
Samuel
Index: espeakup-0.80/softsynth.c
===================================================================
--- espeakup-0.80.orig/softsynth.c
+++ espeakup-0.80/softsynth.c
@@ -235,7 +235,10 @@ int open_softsynth(void)
}
/* open the softsynth. */
- softFD = open("/dev/softsynth", O_RDWR | O_NONBLOCK);
+ softFD = open("/dev/softsynthu", O_RDWR | O_NONBLOCK);
+ if (softFD < 0 && errno == ENOENT)
+ /* Kernel without unicode support? Try without unicode. */
+ softFD = open("/dev/softsynth", O_RDWR | O_NONBLOCK);
if (softFD < 0) {
perror("Unable to open the softsynth device");
rc = -1;
More information about the Speakup
mailing list