1
/* liblouis Braille Translation and Back-Translation Library
3
Based on the Linux screenreader BRLTTY, copyright (C) 1999-2006 by
6
Copyright (C) 2004, 2005, 2006, 2009 ViewPlus Technologies, Inc.
7
www.viewplus.com and JJB Software, Inc. www.jjb-software.com
9
liblouis is free software: you can redistribute it and/or modify it
10
under the terms of the GNU Lesser General Public License as
11
published by the Free Software Foundation, either version 3 of the
12
License, or (at your option) any later version.
14
liblouis is distributed in the hope that it will be useful, but
15
WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Lesser General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public
20
License along with this program. If not, see
21
<http://www.gnu.org/licenses/>.
23
Maintained by John J. Boyer john.boyer@abilitiessoft.com
31
#endif /* __cplusplus */
33
#define widechar @WIDECHAR_TYPE@
36
#define EXPORT_CALL __stdcall
37
char * EXPORT_CALL lou_getProgramPath (void);
50
#define comp_emph_1 italic
51
#define comp_emph_2 underline
52
#define comp_emph_3 bold
63
char * EXPORT_CALL lou_version ();
65
int EXPORT_CALL lou_translateString
67
const widechar *inbuf,
70
int *outlen, char *typeform, char *spacing, int mode);
72
int EXPORT_CALL lou_translate (const char *trantab, const widechar
74
int *inlen, widechar * outbuf, int *outlen,
75
char *typeform, char *spacing, int *outputPos, int
76
*inputPos, int *cursorPos, int mode);
77
int EXPORT_CALL lou_hyphenate (const char *trantab, const widechar
79
int inlen, char *hyphens, int mode);
81
int EXPORT_CALL lou_backTranslateString (const char *trantab,
82
const widechar *inbuf,
85
int *outlen, char *typeform, char
88
int EXPORT_CALL lou_backTranslate (const char *trantab, const widechar
90
int *inlen, widechar * outbuf, int *outlen,
91
char *typeform, char *spacing, int
92
*outputPos, int *inputPos, int *cursorPos, int
94
void EXPORT_CALL lou_logPrint (char *format, ...);
95
/* prints error messages to a file */
97
void EXPORT_CALL lou_logFile (char *filename);
98
/* Specifies the name of the file to be used by lou_logPrint. If it is
99
* not used, this file is stderr*/
101
int EXPORT_CALL lou_readCharFromFile (const char *fileName, int *mode);
102
/*Read a character from a file, whether big-encian, little-endian or
103
* ASCII8, and return it as an integer. EOF at end of file. Mode = 1 on
104
* first call, any other value thereafter*/
106
void * EXPORT_CALL lou_getTable (const char *trantab);
107
/* This function checks a table for errors. If none are found it loads
108
* the table into memory and returns a pointer to it. if errors are found
109
* it returns a null pointer. It is called by _ou_translateString and
110
* lou_backTranslateString and also by functions in liblouisxml
113
void EXPORT_CALL lou_free (void);
114
/* This function should be called at the end of
115
* the application to free all memory allocated by liblouis. */
119
#endif /* __cplusplus */
121
#endif /*LibLOUIS_H_ */