blob: 7fc99baea2d8f8546794253c4bfeac42f17616fb [file] [log] [blame]
/*
* 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 "\011\033S@f9@w5\n"
#define POST_SPEECH "\003\n.\n"
/* 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