18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
28c2ecf20Sopenharmony_ci/* spk_priv.h
38c2ecf20Sopenharmony_ci * review functions for the speakup screen review package.
48c2ecf20Sopenharmony_ci * originally written by: Kirk Reiser and Andy Berdan.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * extensively modified by David Borowski.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * Copyright (C) 1998  Kirk Reiser.
98c2ecf20Sopenharmony_ci * Copyright (C) 2003  David Borowski.
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef _SPEAKUP_KEYINFO_H
138c2ecf20Sopenharmony_ci#define _SPEAKUP_KEYINFO_H
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#define FIRST_SYNTH_VAR RATE
168c2ecf20Sopenharmony_ci/* 0 is reserved for no remap */
178c2ecf20Sopenharmony_ci#define SPEAKUP_GOTO		0x01
188c2ecf20Sopenharmony_ci#define SPEECH_KILL		0x02
198c2ecf20Sopenharmony_ci#define SPEAKUP_QUIET		0x03
208c2ecf20Sopenharmony_ci#define SPEAKUP_CUT		0x04
218c2ecf20Sopenharmony_ci#define SPEAKUP_PASTE		0x05
228c2ecf20Sopenharmony_ci#define SAY_FIRST_CHAR		0x06
238c2ecf20Sopenharmony_ci#define SAY_LAST_CHAR		0x07
248c2ecf20Sopenharmony_ci#define SAY_CHAR		0x08
258c2ecf20Sopenharmony_ci#define SAY_PREV_CHAR		0x09
268c2ecf20Sopenharmony_ci#define SAY_NEXT_CHAR		0x0a
278c2ecf20Sopenharmony_ci#define SAY_WORD		0x0b
288c2ecf20Sopenharmony_ci#define SAY_PREV_WORD		0x0c
298c2ecf20Sopenharmony_ci#define SAY_NEXT_WORD		0x0d
308c2ecf20Sopenharmony_ci#define SAY_LINE		0x0e
318c2ecf20Sopenharmony_ci#define SAY_PREV_LINE		0x0f
328c2ecf20Sopenharmony_ci#define SAY_NEXT_LINE		0x10
338c2ecf20Sopenharmony_ci#define TOP_EDGE		0x11
348c2ecf20Sopenharmony_ci#define BOTTOM_EDGE		0x12
358c2ecf20Sopenharmony_ci#define LEFT_EDGE		0x13
368c2ecf20Sopenharmony_ci#define RIGHT_EDGE		0x14
378c2ecf20Sopenharmony_ci#define SPELL_PHONETIC		0x15
388c2ecf20Sopenharmony_ci#define SPELL_WORD		0x16
398c2ecf20Sopenharmony_ci#define SAY_SCREEN		0x17
408c2ecf20Sopenharmony_ci#define SAY_POSITION		0x18
418c2ecf20Sopenharmony_ci#define SAY_ATTRIBUTES		0x19
428c2ecf20Sopenharmony_ci#define SPEAKUP_OFF		0x1a
438c2ecf20Sopenharmony_ci#define SPEAKUP_PARKED		0x1b
448c2ecf20Sopenharmony_ci#define SAY_LINE_INDENT	0x1c
458c2ecf20Sopenharmony_ci#define SAY_FROM_TOP		0x1d
468c2ecf20Sopenharmony_ci#define SAY_TO_BOTTOM		0x1e
478c2ecf20Sopenharmony_ci#define SAY_FROM_LEFT		0x1f
488c2ecf20Sopenharmony_ci#define SAY_TO_RIGHT		0x20
498c2ecf20Sopenharmony_ci#define SAY_CHAR_NUM		0x21
508c2ecf20Sopenharmony_ci#define EDIT_SOME		0x22
518c2ecf20Sopenharmony_ci#define EDIT_MOST		0x23
528c2ecf20Sopenharmony_ci#define SAY_PHONETIC_CHAR	0x24
538c2ecf20Sopenharmony_ci#define EDIT_DELIM		0x25
548c2ecf20Sopenharmony_ci#define EDIT_REPEAT		0x26
558c2ecf20Sopenharmony_ci#define EDIT_EXNUM		0x27
568c2ecf20Sopenharmony_ci#define SET_WIN		0x28
578c2ecf20Sopenharmony_ci#define CLEAR_WIN		0x29
588c2ecf20Sopenharmony_ci#define ENABLE_WIN		0x2a
598c2ecf20Sopenharmony_ci#define SAY_WIN		0x2b
608c2ecf20Sopenharmony_ci#define SPK_LOCK		0x2c
618c2ecf20Sopenharmony_ci#define SPEAKUP_HELP		0x2d
628c2ecf20Sopenharmony_ci#define TOGGLE_CURSORING	0x2e
638c2ecf20Sopenharmony_ci#define READ_ALL_DOC		0x2f
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci/* one greater than the last func handler */
668c2ecf20Sopenharmony_ci#define SPKUP_MAX_FUNC		0x30
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci#define SPK_KEY		0x80
698c2ecf20Sopenharmony_ci#define FIRST_EDIT_BITS	0x22
708c2ecf20Sopenharmony_ci#define FIRST_SET_VAR SPELL_DELAY
718c2ecf20Sopenharmony_ci
728c2ecf20Sopenharmony_ci/* increase if adding more than 0x3f functions */
738c2ecf20Sopenharmony_ci#define VAR_START		0x40
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci/* keys for setting variables, must be ordered same as the enum for var_ids */
768c2ecf20Sopenharmony_ci/* with dec being even and inc being 1 greater */
778c2ecf20Sopenharmony_ci#define SPELL_DELAY_DEC (VAR_START + 0)
788c2ecf20Sopenharmony_ci#define SPELL_DELAY_INC (SPELL_DELAY_DEC + 1)
798c2ecf20Sopenharmony_ci#define PUNC_LEVEL_DEC (SPELL_DELAY_DEC + 2)
808c2ecf20Sopenharmony_ci#define PUNC_LEVEL_INC (PUNC_LEVEL_DEC + 1)
818c2ecf20Sopenharmony_ci#define READING_PUNC_DEC (PUNC_LEVEL_DEC + 2)
828c2ecf20Sopenharmony_ci#define READING_PUNC_INC (READING_PUNC_DEC + 1)
838c2ecf20Sopenharmony_ci#define ATTRIB_BLEEP_DEC (READING_PUNC_DEC + 2)
848c2ecf20Sopenharmony_ci#define ATTRIB_BLEEP_INC (ATTRIB_BLEEP_DEC + 1)
858c2ecf20Sopenharmony_ci#define BLEEPS_DEC (ATTRIB_BLEEP_DEC + 2)
868c2ecf20Sopenharmony_ci#define BLEEPS_INC (BLEEPS_DEC + 1)
878c2ecf20Sopenharmony_ci#define RATE_DEC (BLEEPS_DEC + 2)
888c2ecf20Sopenharmony_ci#define RATE_INC (RATE_DEC + 1)
898c2ecf20Sopenharmony_ci#define PITCH_DEC (RATE_DEC + 2)
908c2ecf20Sopenharmony_ci#define PITCH_INC (PITCH_DEC + 1)
918c2ecf20Sopenharmony_ci#define VOL_DEC (PITCH_DEC + 2)
928c2ecf20Sopenharmony_ci#define VOL_INC (VOL_DEC + 1)
938c2ecf20Sopenharmony_ci#define TONE_DEC (VOL_DEC + 2)
948c2ecf20Sopenharmony_ci#define TONE_INC (TONE_DEC + 1)
958c2ecf20Sopenharmony_ci#define PUNCT_DEC (TONE_DEC + 2)
968c2ecf20Sopenharmony_ci#define PUNCT_INC (PUNCT_DEC + 1)
978c2ecf20Sopenharmony_ci#define VOICE_DEC (PUNCT_DEC + 2)
988c2ecf20Sopenharmony_ci#define VOICE_INC (VOICE_DEC + 1)
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci#endif
101