liblouis.h   liblouis.h 
/* liblouis Braille Translation and Back-Translation /* liblouis Braille Translation and Back-Translation Library
Library
Based on the Linux screenreader BRLTTY, copyright (C) 1999-2006 by Based on the Linux screenreader BRLTTY, copyright (C) 1999-2006 by
The BRLTTY Team The BRLTTY Team
Copyright (C) 2004, 2005, 2006 Copyright (C) 2004, 2005, 2006
ViewPlus Technologies, Inc. www.viewplus.com ViewPlus Technologies, Inc. www.viewplus.com
and and
JJB Software, Inc. www.jjb-software.com JJB Software, Inc. www.jjb-software.com
All rights reserved All rights reserved
This file is free software; you can redistribute it and/or modify it This file is free software; you can redistribute it and/or modify it
under the terms of the Lesser or Library GNU General Public License under the terms of the GNU General Public License as published by the
as published by the Free Software Foundation; either version 2, or (at your option) any
Free Software Foundation; either version 3, or (at your option) any
later version. later version.
In addition to the permissions and restrictions contained in the GNU
General Public License (GPL), the copyright holders grant two explicit
permissions and impose one explicit restriction. The permissions are:
1) Using, copying, merging, publishing, distributing, sublicensing,
and/or selling copies of this software that are either compiled or loade
d
as part of and/or linked into other code is not bound by the GPL.
2) Modifying copies of this software as needed in order to facilitate
compiling and/or linking with other code is not bound by the GPL.
The restriction is:
3. The translation, semantic-action and configuration tables that are
read at run-time are considered part of this code and are under the term
s
of the GPL. Any changes to these tables and any additional tables that a
re
created for use by this code must be made publicly available.
All other uses, including modifications not required for compiling or linki
ng
and distribution of code which is not linked into a combined executable, ar
e
bound by the terms of the GPL.
This file is distributed in the hope that it will be useful, but This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library GNU General Public License for more details. General Public License for more details.
You should have received a copy of the Library GNU General Public You should have received a copy of the GNU General Public License
License along with this program; see the file COPYING. If not, write to along with this program; see the file COPYING. If not, write to
the Free Software Foundation, 51 Franklin Street, Fifth Floor, the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
Maintained by John J. Boyer john.boyer@jjb-software.com Maintained by John J. Boyer john.boyer@jjb-software.com
*/ */
#ifndef __LIBLOUIS_H_ #ifndef __LIBLOUIS_H_
#define __LIBLOUIS_H_ #define __LIBLOUIS_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
skipping to change at line 70 skipping to change at line 90
{ {
noContractions = 1, noContractions = 1,
compbrlAtCursor = 2, compbrlAtCursor = 2,
dotsIO = 4, dotsIO = 4,
comp8Dots = 8 comp8Dots = 8
} translationModes; } translationModes;
char *lou_version (); char *lou_version ();
int lou_translateString int lou_translateString
(const char *trantab, (const char *const trantab,
const widechar *inbuf, const widechar * const inbuf,
int *inlen, int *inlen,
widechar * outbuf, widechar * outbuf,
int *outlen, char *typeform, char *spacing, int mode); int *outlen, char *typeform, char *spacing, int mode);
int lou_translate (const char *trantab, const widechar int lou_translate (const char *const trantab, const widechar
*inbuf, * const inbuf,
int *inlen, widechar * outbuf, int *outlen, int *inlen, widechar * outbuf, int *outlen,
char *typeform, char *spacing, int *outputPos, int char *typeform, char *spacing, int *outputPos, int
*inputPos, int *cursorPos, int mode); *inputPos, int *cursorPos, int mode);
int lou_hyphenate (const char *trantab, const widechar int lou_hyphenate (const char *const trantab, const widechar
*inbuf, * const inbuf,
int inlen, char *hyphens, int mode); int inlen, char *hyphens, int mode);
int lou_backTranslateString (const char *trantab, int lou_backTranslateString (const char *const trantab,
const widechar *inbuf, const widechar * const inbuf,
int *inlen, int *inlen,
widechar * outbuf, widechar * outbuf,
int *outlen, char *typeform, char int *outlen, char *typeform, char
*spacing, int mode); *spacing, int mode);
int lou_backTranslate (const char *trantab, const widechar int lou_backTranslate (const char *const trantab, const widechar
*inbuf, * const inbuf,
int *inlen, widechar * outbuf, int *outlen, int *inlen, widechar * outbuf, int *outlen,
char *typeform, char *spacing, int char *typeform, char *spacing, int
*outputPos, int *inputPos, int *cursorPos, int *outputPos, int *inputPos, int *cursorPos, int
mode); mode);
void lou_logPrint (char *format, ...); void lou_logPrint (char *format, ...);
/* prints error messages to a file */ /* prints error messages to a file */
void lou_logFile (char *filename); void lou_logFile (char *filename);
/* Specifies the name of the file to be used by lou_logPrint. If it is /* Specifies the name of the file to be used by lou_logPrint. If it is
* not used, this file is stderr*/ * not used, this file is stderr*/
int lou_readCharFromFile (const char *fileName, int *mode); int lou_readCharFromFile (const char *fileName, int *mode);
/*Read a character from a file, whether big-encian, little-endian or /*Read a character from a file, whether big-encian, little-endian or
* ASCII8, and return it as an integer. EOF at end of file. Mode = 1 on * ASCII8, and return it as an integer. EOF at end of file. Mode = 1 on
* first call, any other value thereafter*/ * first call, any other value thereafter*/
void *lou_getTable (const char *trantab); void *lou_getTable (char const *trantab);
/* This function checks a table for errors. If none are found it loads /* This function checks a table for errors. If none are found it loads
* the table into memory and returns a pointer to it. if errors are found * the table into memory and returns a pointer to it. if errors are found
* it returns a null pointer. It is called by _ou_translateString and * it returns a null pointer. It is called by _ou_translateString and
* lou_backTranslateString and also by functions in liblouisxml * lou_backTranslateString and also by functions in liblouisxml
*/ */
void lou_free (void); void lou_free (void);
/* This function should be called at the end of /* This function should be called at the end of
* the application to free all memory allocated by liblouis. */ * the application to free all memory allocated by liblouis. */
 End of changes. 11 change blocks. 
20 lines changed or deleted 45 lines changed or added


 louiscfg.h   louiscfg.h 
/* liblouis/louiscfg.h. Generated by configure. */ /* liblouis/louiscfg.h. Generated from louiscfg.h.in by configure. */
/* liblouis/louiscfg.h.in. Generated from configure.ac by autoheader. */ /* liblouis/louiscfg.h.in. Generated from configure.in by autoheader. */
#ifndef LOUISCFG_H #ifndef LOUISCFG_H
#define LOUISCFG_H #define LOUISCFG_H
/* Define to 1 if you have the <dlfcn.h> header file. */ /* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1 #define HAVE_DLFCN_H 1
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
/* #undef HAVE_DOPRNT */
/* Define to 1 if you have the <inttypes.h> header file. */ /* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1 #define HAVE_INTTYPES_H 1
/* Define to 1 if your system has a GNU libc compatible `malloc' function,
and
to 0 otherwise. */
#define HAVE_MALLOC 1
/* Define to 1 if you have the <memory.h> header file. */ /* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1 #define HAVE_MEMORY_H 1
/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1
/* Define to 1 if your system has a GNU libc compatible `realloc' function,
and to 0 otherwise. */
#define HAVE_REALLOC 1
/* Define to 1 if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define to 1 if you have the <stdint.h> header file. */ /* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1 #define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */ /* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1 #define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */ /* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1 #define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */ /* Define to 1 if you have the <string.h> header file. */
skipping to change at line 54 skipping to change at line 37
/* Define to 1 if you have the <sys/stat.h> header file. */ /* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1 #define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */ /* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */ /* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1
/* Define to 1 if you have the `vprintf' function. */
#define HAVE_VPRINTF 1
/* Name of package */ /* Name of package */
#define PACKAGE "liblouis" #define PACKAGE "liblouis"
/* Define to the address where bug reports for this package should be sent. */ /* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "john.boyer@jjb-software.com" #define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */ /* Define to the full name of this package. */
#define PACKAGE_NAME "liblouis" #define PACKAGE_NAME "liblouis"
/* Define to the full name and version of this package. */ /* Define to the full name and version of this package. */
#define PACKAGE_STRING "liblouis 1.3.9" #define PACKAGE_STRING "liblouis 1.3.51"
/* Define to the one symbol short name of this package. */ /* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "liblouis" #define PACKAGE_TARNAME "liblouis"
/* Define to the version of this package. */ /* Define to the version of this package. */
#define PACKAGE_VERSION "1.3.9" #define PACKAGE_VERSION "1.3.51"
/* Define to 1 if you have the ANSI C header files. */ /* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1 #define STDC_HEADERS 1
/* Version number of package */ /* Version number of package */
#define VERSION "1.3.9" #define VERSION "1.3.51"
/* Define as the size of the unicode type. */ /* Define as the size of the unicode type. */
#define WIDECHAR_SIZE 2 #define WIDECHAR_SIZE 2
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to rpl_malloc if the replacement function should be used. */
/* #undef malloc */
/* Define to rpl_realloc if the replacement function should be used. */
/* #undef realloc */
#endif /*LOUISCFG_H*/ #endif /*LOUISCFG_H*/
 End of changes. 10 change blocks. 
36 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/