Newbie question about punctuation

Bill Cox waywardgeek at gmail.com
Wed Apr 21 16:09:37 EDT 2010


Hi, Chris.  I'm replying on this list rather than opentts-dev, since
my e-mails seem not to be coming through on opentts-dev today.

I've tracked down three issues in ospeakup.c, and I've attached the
output of "git diff".  With these changes, ospeakup acts like
espeakup, saying capital letters in a higher voice, not saying
'capital', and not reading all punctuation unless reviewing by
character.  This seems to be how espeakup works, and speakup users on
the Vinux list have stated they prefer how espeakup works.  These
changes makes espeakup and ospeakup nearly equivalent.

The first change in the diff is a bugfix, IMO.  When ospeakup writes
chartab values, it uses ALPHA for upper case letters, overwriting the
default of A_CAP.  I've changed it to A_CAP for uppercase characters,
which enables uppercase letters to be spoken in a higher pitch.  The
second change causes 0 to mean no punctuation, 1 to mean some, and 2
to mean all.  This seems to be the intent of the speakup code, and it
makes ospeakup easier to listen to, IMO.  Certainly there was a
mismatch between speakup and ospeakup in that the valid range in
speakup is defined to be 0-2, not 0-4.  The final change is to detect
that we're trying to speak a capital letter, and to call speak_string
rather than say_single_character.  This causes speech-dispatcher to
avoid saying "capital".

Alternatively, we could track down the bug that causes capital to be
spoken instead of changing pitch.  I'm still looking into this.

Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ospeakup.patch
Type: text/x-patch
Size: 1570 bytes
Desc: not available
URL: <http://linux-speakup.org/pipermail/speakup/attachments/20100421/32c42c3e/attachment.bin>


More information about the Speakup mailing list