162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 262306a36Sopenharmony_ci/* spk_priv.h 362306a36Sopenharmony_ci * review functions for the speakup screen review package. 462306a36Sopenharmony_ci * originally written by: Kirk Reiser and Andy Berdan. 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * extensively modified by David Borowski. 762306a36Sopenharmony_ci * 862306a36Sopenharmony_ci * Copyright (C) 1998 Kirk Reiser. 962306a36Sopenharmony_ci * Copyright (C) 2003 David Borowski. 1062306a36Sopenharmony_ci */ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#ifndef _SPEAKUP_KEYINFO_H 1362306a36Sopenharmony_ci#define _SPEAKUP_KEYINFO_H 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#define FIRST_SYNTH_VAR RATE 1662306a36Sopenharmony_ci/* 0 is reserved for no remap */ 1762306a36Sopenharmony_ci#define SPEAKUP_GOTO 0x01 1862306a36Sopenharmony_ci#define SPEECH_KILL 0x02 1962306a36Sopenharmony_ci#define SPEAKUP_QUIET 0x03 2062306a36Sopenharmony_ci#define SPEAKUP_CUT 0x04 2162306a36Sopenharmony_ci#define SPEAKUP_PASTE 0x05 2262306a36Sopenharmony_ci#define SAY_FIRST_CHAR 0x06 2362306a36Sopenharmony_ci#define SAY_LAST_CHAR 0x07 2462306a36Sopenharmony_ci#define SAY_CHAR 0x08 2562306a36Sopenharmony_ci#define SAY_PREV_CHAR 0x09 2662306a36Sopenharmony_ci#define SAY_NEXT_CHAR 0x0a 2762306a36Sopenharmony_ci#define SAY_WORD 0x0b 2862306a36Sopenharmony_ci#define SAY_PREV_WORD 0x0c 2962306a36Sopenharmony_ci#define SAY_NEXT_WORD 0x0d 3062306a36Sopenharmony_ci#define SAY_LINE 0x0e 3162306a36Sopenharmony_ci#define SAY_PREV_LINE 0x0f 3262306a36Sopenharmony_ci#define SAY_NEXT_LINE 0x10 3362306a36Sopenharmony_ci#define TOP_EDGE 0x11 3462306a36Sopenharmony_ci#define BOTTOM_EDGE 0x12 3562306a36Sopenharmony_ci#define LEFT_EDGE 0x13 3662306a36Sopenharmony_ci#define RIGHT_EDGE 0x14 3762306a36Sopenharmony_ci#define SPELL_PHONETIC 0x15 3862306a36Sopenharmony_ci#define SPELL_WORD 0x16 3962306a36Sopenharmony_ci#define SAY_SCREEN 0x17 4062306a36Sopenharmony_ci#define SAY_POSITION 0x18 4162306a36Sopenharmony_ci#define SAY_ATTRIBUTES 0x19 4262306a36Sopenharmony_ci#define SPEAKUP_OFF 0x1a 4362306a36Sopenharmony_ci#define SPEAKUP_PARKED 0x1b 4462306a36Sopenharmony_ci#define SAY_LINE_INDENT 0x1c 4562306a36Sopenharmony_ci#define SAY_FROM_TOP 0x1d 4662306a36Sopenharmony_ci#define SAY_TO_BOTTOM 0x1e 4762306a36Sopenharmony_ci#define SAY_FROM_LEFT 0x1f 4862306a36Sopenharmony_ci#define SAY_TO_RIGHT 0x20 4962306a36Sopenharmony_ci#define SAY_CHAR_NUM 0x21 5062306a36Sopenharmony_ci#define EDIT_SOME 0x22 5162306a36Sopenharmony_ci#define EDIT_MOST 0x23 5262306a36Sopenharmony_ci#define SAY_PHONETIC_CHAR 0x24 5362306a36Sopenharmony_ci#define EDIT_DELIM 0x25 5462306a36Sopenharmony_ci#define EDIT_REPEAT 0x26 5562306a36Sopenharmony_ci#define EDIT_EXNUM 0x27 5662306a36Sopenharmony_ci#define SET_WIN 0x28 5762306a36Sopenharmony_ci#define CLEAR_WIN 0x29 5862306a36Sopenharmony_ci#define ENABLE_WIN 0x2a 5962306a36Sopenharmony_ci#define SAY_WIN 0x2b 6062306a36Sopenharmony_ci#define SPK_LOCK 0x2c 6162306a36Sopenharmony_ci#define SPEAKUP_HELP 0x2d 6262306a36Sopenharmony_ci#define TOGGLE_CURSORING 0x2e 6362306a36Sopenharmony_ci#define READ_ALL_DOC 0x2f 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci/* one greater than the last func handler */ 6662306a36Sopenharmony_ci#define SPKUP_MAX_FUNC 0x30 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci#define SPK_KEY 0x80 6962306a36Sopenharmony_ci#define FIRST_EDIT_BITS 0x22 7062306a36Sopenharmony_ci#define FIRST_SET_VAR SPELL_DELAY 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_ci/* increase if adding more than 0x3f functions */ 7362306a36Sopenharmony_ci#define VAR_START 0x40 7462306a36Sopenharmony_ci 7562306a36Sopenharmony_ci/* keys for setting variables, must be ordered same as the enum for var_ids */ 7662306a36Sopenharmony_ci/* with dec being even and inc being 1 greater */ 7762306a36Sopenharmony_ci#define SPELL_DELAY_DEC (VAR_START + 0) 7862306a36Sopenharmony_ci#define SPELL_DELAY_INC (SPELL_DELAY_DEC + 1) 7962306a36Sopenharmony_ci#define PUNC_LEVEL_DEC (SPELL_DELAY_DEC + 2) 8062306a36Sopenharmony_ci#define PUNC_LEVEL_INC (PUNC_LEVEL_DEC + 1) 8162306a36Sopenharmony_ci#define READING_PUNC_DEC (PUNC_LEVEL_DEC + 2) 8262306a36Sopenharmony_ci#define READING_PUNC_INC (READING_PUNC_DEC + 1) 8362306a36Sopenharmony_ci#define ATTRIB_BLEEP_DEC (READING_PUNC_DEC + 2) 8462306a36Sopenharmony_ci#define ATTRIB_BLEEP_INC (ATTRIB_BLEEP_DEC + 1) 8562306a36Sopenharmony_ci#define BLEEPS_DEC (ATTRIB_BLEEP_DEC + 2) 8662306a36Sopenharmony_ci#define BLEEPS_INC (BLEEPS_DEC + 1) 8762306a36Sopenharmony_ci#define RATE_DEC (BLEEPS_DEC + 2) 8862306a36Sopenharmony_ci#define RATE_INC (RATE_DEC + 1) 8962306a36Sopenharmony_ci#define PITCH_DEC (RATE_DEC + 2) 9062306a36Sopenharmony_ci#define PITCH_INC (PITCH_DEC + 1) 9162306a36Sopenharmony_ci#define VOL_DEC (PITCH_DEC + 2) 9262306a36Sopenharmony_ci#define VOL_INC (VOL_DEC + 1) 9362306a36Sopenharmony_ci#define TONE_DEC (VOL_DEC + 2) 9462306a36Sopenharmony_ci#define TONE_INC (TONE_DEC + 1) 9562306a36Sopenharmony_ci#define PUNCT_DEC (TONE_DEC + 2) 9662306a36Sopenharmony_ci#define PUNCT_INC (PUNCT_DEC + 1) 9762306a36Sopenharmony_ci#define VOICE_DEC (PUNCT_DEC + 2) 9862306a36Sopenharmony_ci#define VOICE_INC (VOICE_DEC + 1) 9962306a36Sopenharmony_ci 10062306a36Sopenharmony_ci#endif 101