~alcinnz/rhapsode

ff8179ab606e1bd39a39a3a267d1caaebaf27079 — Adrian Cochrane 3 years ago ca5e001
Improve <table> interaction, allowing jumping to start.

Accidentally include table cell numbering in previous toot.
1 files changed, 8 insertions(+), 0 deletions(-)

M src/main.c
M src/main.c => src/main.c +8 -0
@@ 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.