From ff8179ab606e1bd39a39a3a267d1caaebaf27079 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Sun, 17 Jan 2021 19:08:54 +1300 Subject: [PATCH] Improve interaction, allowing jumping to start. Accidentally include table cell numbering in previous toot. --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.c b/src/main.c index 63f02df..6376df5 100644 --- a/src/main.c +++ b/src/main.c @@ -284,6 +284,14 @@ gboolean read_stdin(GIOChannel *source, GIOCondition condition, gpointer data) { sprintf(mark, "-rhaps-paragraph%i", paragraph_no); speak(ssml, paragraph_no > 0 ? mark : NULL, NULL); break; + case '5': + // Page up + if (in_table) { // Jump to first row of table. + tablerow = 0; + sprintf(mark, "-rhaps-tablecell%i:%ix%i", tableno, tablerow, tablecol); + speak(ssml, mark, NULL); + } + break; } } else { // Read in a line, with full terminal emulator i18n. -- 2.30.2