1*2067fd92SSamuel Thibault /* SPDX-License-Identifier: GPL-2.0+ */ 2*2067fd92SSamuel Thibault /* spk_priv.h 3*2067fd92SSamuel Thibault * review functions for the speakup screen review package. 4*2067fd92SSamuel Thibault * originally written by: Kirk Reiser and Andy Berdan. 5*2067fd92SSamuel Thibault * 6*2067fd92SSamuel Thibault * extensively modified by David Borowski. 7*2067fd92SSamuel Thibault * 8*2067fd92SSamuel Thibault * Copyright (C) 1998 Kirk Reiser. 9*2067fd92SSamuel Thibault * Copyright (C) 2003 David Borowski. 10*2067fd92SSamuel Thibault */ 11*2067fd92SSamuel Thibault 12*2067fd92SSamuel Thibault #ifndef _SPEAKUP_KEYINFO_H 13*2067fd92SSamuel Thibault #define _SPEAKUP_KEYINFO_H 14*2067fd92SSamuel Thibault 15*2067fd92SSamuel Thibault #define FIRST_SYNTH_VAR RATE 16*2067fd92SSamuel Thibault /* 0 is reserved for no remap */ 17*2067fd92SSamuel Thibault #define SPEAKUP_GOTO 0x01 18*2067fd92SSamuel Thibault #define SPEECH_KILL 0x02 19*2067fd92SSamuel Thibault #define SPEAKUP_QUIET 0x03 20*2067fd92SSamuel Thibault #define SPEAKUP_CUT 0x04 21*2067fd92SSamuel Thibault #define SPEAKUP_PASTE 0x05 22*2067fd92SSamuel Thibault #define SAY_FIRST_CHAR 0x06 23*2067fd92SSamuel Thibault #define SAY_LAST_CHAR 0x07 24*2067fd92SSamuel Thibault #define SAY_CHAR 0x08 25*2067fd92SSamuel Thibault #define SAY_PREV_CHAR 0x09 26*2067fd92SSamuel Thibault #define SAY_NEXT_CHAR 0x0a 27*2067fd92SSamuel Thibault #define SAY_WORD 0x0b 28*2067fd92SSamuel Thibault #define SAY_PREV_WORD 0x0c 29*2067fd92SSamuel Thibault #define SAY_NEXT_WORD 0x0d 30*2067fd92SSamuel Thibault #define SAY_LINE 0x0e 31*2067fd92SSamuel Thibault #define SAY_PREV_LINE 0x0f 32*2067fd92SSamuel Thibault #define SAY_NEXT_LINE 0x10 33*2067fd92SSamuel Thibault #define TOP_EDGE 0x11 34*2067fd92SSamuel Thibault #define BOTTOM_EDGE 0x12 35*2067fd92SSamuel Thibault #define LEFT_EDGE 0x13 36*2067fd92SSamuel Thibault #define RIGHT_EDGE 0x14 37*2067fd92SSamuel Thibault #define SPELL_PHONETIC 0x15 38*2067fd92SSamuel Thibault #define SPELL_WORD 0x16 39*2067fd92SSamuel Thibault #define SAY_SCREEN 0x17 40*2067fd92SSamuel Thibault #define SAY_POSITION 0x18 41*2067fd92SSamuel Thibault #define SAY_ATTRIBUTES 0x19 42*2067fd92SSamuel Thibault #define SPEAKUP_OFF 0x1a 43*2067fd92SSamuel Thibault #define SPEAKUP_PARKED 0x1b 44*2067fd92SSamuel Thibault #define SAY_LINE_INDENT 0x1c 45*2067fd92SSamuel Thibault #define SAY_FROM_TOP 0x1d 46*2067fd92SSamuel Thibault #define SAY_TO_BOTTOM 0x1e 47*2067fd92SSamuel Thibault #define SAY_FROM_LEFT 0x1f 48*2067fd92SSamuel Thibault #define SAY_TO_RIGHT 0x20 49*2067fd92SSamuel Thibault #define SAY_CHAR_NUM 0x21 50*2067fd92SSamuel Thibault #define EDIT_SOME 0x22 51*2067fd92SSamuel Thibault #define EDIT_MOST 0x23 52*2067fd92SSamuel Thibault #define SAY_PHONETIC_CHAR 0x24 53*2067fd92SSamuel Thibault #define EDIT_DELIM 0x25 54*2067fd92SSamuel Thibault #define EDIT_REPEAT 0x26 55*2067fd92SSamuel Thibault #define EDIT_EXNUM 0x27 56*2067fd92SSamuel Thibault #define SET_WIN 0x28 57*2067fd92SSamuel Thibault #define CLEAR_WIN 0x29 58*2067fd92SSamuel Thibault #define ENABLE_WIN 0x2a 59*2067fd92SSamuel Thibault #define SAY_WIN 0x2b 60*2067fd92SSamuel Thibault #define SPK_LOCK 0x2c 61*2067fd92SSamuel Thibault #define SPEAKUP_HELP 0x2d 62*2067fd92SSamuel Thibault #define TOGGLE_CURSORING 0x2e 63*2067fd92SSamuel Thibault #define READ_ALL_DOC 0x2f 64*2067fd92SSamuel Thibault 65*2067fd92SSamuel Thibault /* one greater than the last func handler */ 66*2067fd92SSamuel Thibault #define SPKUP_MAX_FUNC 0x30 67*2067fd92SSamuel Thibault 68*2067fd92SSamuel Thibault #define SPK_KEY 0x80 69*2067fd92SSamuel Thibault #define FIRST_EDIT_BITS 0x22 70*2067fd92SSamuel Thibault #define FIRST_SET_VAR SPELL_DELAY 71*2067fd92SSamuel Thibault 72*2067fd92SSamuel Thibault /* increase if adding more than 0x3f functions */ 73*2067fd92SSamuel Thibault #define VAR_START 0x40 74*2067fd92SSamuel Thibault 75*2067fd92SSamuel Thibault /* keys for setting variables, must be ordered same as the enum for var_ids */ 76*2067fd92SSamuel Thibault /* with dec being even and inc being 1 greater */ 77*2067fd92SSamuel Thibault #define SPELL_DELAY_DEC (VAR_START + 0) 78*2067fd92SSamuel Thibault #define SPELL_DELAY_INC (SPELL_DELAY_DEC + 1) 79*2067fd92SSamuel Thibault #define PUNC_LEVEL_DEC (SPELL_DELAY_DEC + 2) 80*2067fd92SSamuel Thibault #define PUNC_LEVEL_INC (PUNC_LEVEL_DEC + 1) 81*2067fd92SSamuel Thibault #define READING_PUNC_DEC (PUNC_LEVEL_DEC + 2) 82*2067fd92SSamuel Thibault #define READING_PUNC_INC (READING_PUNC_DEC + 1) 83*2067fd92SSamuel Thibault #define ATTRIB_BLEEP_DEC (READING_PUNC_DEC + 2) 84*2067fd92SSamuel Thibault #define ATTRIB_BLEEP_INC (ATTRIB_BLEEP_DEC + 1) 85*2067fd92SSamuel Thibault #define BLEEPS_DEC (ATTRIB_BLEEP_DEC + 2) 86*2067fd92SSamuel Thibault #define BLEEPS_INC (BLEEPS_DEC + 1) 87*2067fd92SSamuel Thibault #define RATE_DEC (BLEEPS_DEC + 2) 88*2067fd92SSamuel Thibault #define RATE_INC (RATE_DEC + 1) 89*2067fd92SSamuel Thibault #define PITCH_DEC (RATE_DEC + 2) 90*2067fd92SSamuel Thibault #define PITCH_INC (PITCH_DEC + 1) 91*2067fd92SSamuel Thibault #define VOL_DEC (PITCH_DEC + 2) 92*2067fd92SSamuel Thibault #define VOL_INC (VOL_DEC + 1) 93*2067fd92SSamuel Thibault #define TONE_DEC (VOL_DEC + 2) 94*2067fd92SSamuel Thibault #define TONE_INC (TONE_DEC + 1) 95*2067fd92SSamuel Thibault #define PUNCT_DEC (TONE_DEC + 2) 96*2067fd92SSamuel Thibault #define PUNCT_INC (PUNCT_DEC + 1) 97*2067fd92SSamuel Thibault #define VOICE_DEC (PUNCT_DEC + 2) 98*2067fd92SSamuel Thibault #define VOICE_INC (VOICE_DEC + 1) 99*2067fd92SSamuel Thibault 100*2067fd92SSamuel Thibault #endif 101