summaryrefslogtreecommitdiffstats
path: root/drivers/accessibility/speakup/varhandlers.c
diff options
context:
space:
mode:
authorMushahid Hussain <mushi.shar@gmail.com>2022-11-15 15:05:30 +0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-23 19:47:15 +0100
commit72b8ec15f97bbabbb2379c87cb5f7a9dc63f0d88 (patch)
tree2a67478b1907cba4c0505b7aa6e37e56eabc3519 /drivers/accessibility/speakup/varhandlers.c
parentf43241aafedb1c7d72825cea1a521cef183ee61d (diff)
downloadlinux-72b8ec15f97bbabbb2379c87cb5f7a9dc63f0d88.tar.bz2
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>
Diffstat (limited to 'drivers/accessibility/speakup/varhandlers.c')
-rw-r--r--drivers/accessibility/speakup/varhandlers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/accessibility/speakup/varhandlers.c b/drivers/accessibility/speakup/varhandlers.c
index e1c9f42e39f0..462f8d879053 100644
--- a/drivers/accessibility/speakup/varhandlers.c
+++ b/drivers/accessibility/speakup/varhandlers.c
@@ -48,6 +48,7 @@ static struct st_var_header var_headers[] = {
{ "chartab", CHARTAB, VAR_PROC, NULL, NULL },
{ "direct", DIRECT, VAR_NUM, NULL, NULL },
{ "pause", PAUSE, VAR_STRING, spk_str_pause, NULL },
+ { "cur_phonetic", CUR_PHONETIC, VAR_NUM, &spk_cur_phonetic, NULL },
};
static struct st_var_header *var_ptrs[MAXVARS] = { NULL, NULL, NULL };