| /* |
| * BRLTTY - A background process providing access to the console screen (when in |
| * text mode) for a blind person using a refreshable braille display. |
| * |
| * Copyright (C) 1995-2023 by The BRLTTY Developers. |
| * |
| * BRLTTY comes with ABSOLUTELY NO WARRANTY. |
| * |
| * This is free software, placed under the terms of the |
| * GNU Lesser General Public License, as published by the Free Software |
| * Foundation; either version 2.1 of the License, or (at your option) any |
| * later version. Please see the file LICENSE-LGPL for details. |
| * |
| * Web Page: http://brltty.app/ |
| * |
| * This software is maintained by Dave Mielke <dave@mielke.cc>. |
| */ |
| |
| /* These sequences are sent to the CombiBraille before and after the |
| * speech data itself. The first byte is the length, so embedded nuls are |
| * allowed. |
| */ |
| #define PRE_SPEECH "\002\033S" |
| #define POST_SPEECH "\001\015" |
| |
| /* This is sent to mute the speech. The format is the same as above. */ |
| #define MUTE_SEQ "\003\033S\030" |
| |
| /* The speech data itself is translated character by character. If a |
| * character is less than 33 (i.e. space or control), it is replaced by a |
| * space. If the character is more than MAX_TRANS, it is passed through |
| * as is. Otherwise the character n is replaced by the string vocab[n - 33]. |
| */ |
| |
| #define MAX_TRANS 126 |
| static const char *vocab[MAX_TRANS - 32] = |
| { |
| " exclamation ", |
| " double quote ", |
| " hash ", |
| " dollar ", |
| " percent ", |
| " ampersand ", |
| " quote ", |
| " left paren ", |
| " right paren ", |
| " star ", |
| " plus ", |
| " comma ", |
| " dash ", |
| " dot ", |
| " slash ", |
| "0", |
| "1", |
| "2", |
| "3", |
| "4", |
| "5", |
| "6", |
| "7", |
| "8", |
| "9", |
| " colon ", |
| " semicolon ", |
| " less than ", |
| " equals ", |
| " greater than ", |
| " question ", |
| " at ", |
| "A", |
| "B", |
| "C", |
| "D", |
| "E", |
| "F", |
| "G", |
| "H", |
| "I", |
| "J", |
| "K", |
| "L", |
| "M", |
| "N", |
| "O", |
| "P", |
| "Q", |
| "R", |
| "S", |
| "T", |
| "U", |
| "V", |
| "W", |
| "X", |
| "Y", |
| "Z", |
| " left bracket ", |
| " backslash ", |
| " right bracket ", |
| " uparrow ", |
| " underline ", |
| " accent ", |
| "a", |
| "b", |
| "c", |
| "d", |
| "e", |
| "f", |
| "g", |
| "h", |
| "i", |
| "j", |
| "k", |
| "l", |
| "m", |
| "n", |
| "o", |
| "p", |
| "q", |
| "r", |
| "s", |
| "t", |
| "u", |
| "v", |
| "w", |
| "x", |
| "y", |
| "z", |
| " left brace ", |
| " bar ", |
| " right brace ", |
| " tilde " |
| }; |