4
4
Based on the Linux screenreader BRLTTY, copyright (C) 1999-2006 by
7
Copyright (C) 2004, 2005, 2006
8
ViewPlus Technologies, Inc. www.viewplus.com
7
Copyright (C) 2004, 2005, 2006, 2009
8
ViewPlus Technologies, Inc. www.viewplus.com and
10
9
JJB Software, Inc. www.jjb-software.com
13
This file is free software; you can redistribute it and/or modify it
14
under the terms of the Lesser or Library GNU General Public License
16
Free Software Foundation; either version 3, or (at your option) any
19
This file is distributed in the hope that it will be useful, but
20
WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
Library GNU General Public License for more details.
24
You should have received a copy of the Library GNU General Public
25
License along with this program; see the file COPYING. If not, write to
26
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
27
Boston, MA 02110-1301, USA.
11
This program is free software: you can redistribute it and/or modify
12
it under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
16
This program is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
GNU General Public License for more details.
21
You should have received a copy of the GNU General Public License
22
along with this program. If not, see <http://www.gnu.org/licenses/>.
29
24
Maintained by John J. Boyer john.boyer@jjb-software.com
33
32
#include <string.h>
34
33
#include <stdlib.h>
35
34
#include "liblouis.h"
38
#include "version-etc.h"
40
static const struct option longopts[] =
42
{ "help", no_argument, NULL, 'h' },
43
{ "version", no_argument, NULL, 'v' },
47
const char version_etc_copyright[] =
48
"Copyright %s %d ViewPlus Technologies, Inc. and JJB Software, Inc.";
50
#define AUTHORS "John J. Boyer"
56
Usage: %s [OPTION]\n", program_name);
59
This program tests every capability of the liblouis library. It is\n\
60
completely interactive. \n\n", stdout);
63
-h, --help display this help and exit\n\
64
-v, --version display version information and exit\n", stdout);
68
Report bugs to <%s>.\n", PACKAGE_BUGREPORT);
37
71
#define BUFSIZE 256
39
73
static char inputBuffer[BUFSIZE];
234
268
int realInlen = 0;
272
set_program_name (argv[0]);
274
while ((optc = getopt_long (argc, argv, "hv", longopts, NULL)) != -1)
277
/* --help and --version exit immediately, per GNU coding standards. */
279
version_etc (stdout, program_name, PACKAGE_NAME, VERSION, AUTHORS, (char *) NULL);
287
fprintf (stderr, "Try `%s --help' for more information.\n",
295
/* Print error message and exit. */
296
fprintf (stderr, "%s: extra operand: %s\n",
297
program_name, argv[optind]);
298
fprintf (stderr, "Try `%s --help' for more information.\n",
236
303
validTable = NULL;
237
304
enteredCursorPos = -1;