accessibility: speakup: phonetic spelling while arrowing letter by letter
authorMushahid Hussain <mushi.shar@gmail.com>
Tue, 15 Nov 2022 10:05:30 +0000 (15:05 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Nov 2022 18:47:15 +0000 (19:47 +0100)
commit72b8ec15f97bbabbb2379c87cb5f7a9dc63f0d88
tree2a67478b1907cba4c0505b7aa6e37e56eabc3519
parentf43241aafedb1c7d72825cea1a521cef183ee61d
accessibility: speakup: phonetic spelling while arrowing letter by letter

This patch includes an enhancement requested frequently on the mailing
list.[1][2] It adds a variable, cur_phonetic in the spk_vars, which can
be set as a module parameter, as well as in /sys/speakup/cur_phonetic.
This patch also documents cur_phonetic as a sysfs attribute in
sysfs-driver-speakup.

When cur_phonetic=1, it causes speakup to speak letters phonetically if
paused on the character while arrowing through a word.

When a user does not set cur_phonetic to any value, the default value
for it would be 0.

[1]: https://github.com/linux-speakup/speakup/issues/6
[2]: https://github.com/linux-speakup/speakup/issues/5

since V1:
- removed unnecessary lines

Signed-off-by: Mushahid Hussain<mushi.shar@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Link: https://lore.kernel.org/r/20221115100530.91174-3-mushi.shar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/stable/sysfs-driver-speakup
drivers/accessibility/speakup/kobjects.c
drivers/accessibility/speakup/main.c
drivers/accessibility/speakup/speakup.h
drivers/accessibility/speakup/spk_types.h
drivers/accessibility/speakup/varhandlers.c