|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.liblouis.liblouisutdml
public final class liblouisutdml
Bindings for liblouisutdml
Field Summary | |
---|---|
static int |
comp8Dots
|
static int |
compbrlAtCursor
|
static int |
compbrlLeftCursor
|
static int |
dontInit
liblouisutdml mode bits |
static int |
dotsIO
|
static int |
htmlDoc
|
static int |
noContractions
The bits for liblouis are included because it is sometimes necessary to pass a liblouis mode to a liblouisutdml function. |
static int |
otherTrans
|
static int |
pass1Only
|
static int |
ucBrl
|
Method Summary | |
---|---|
boolean |
backTranslateFile(java.lang.String configFileList,
java.lang.String inputFileName,
java.lang.String outputFileName,
java.lang.String logFileName,
java.lang.String settingsString,
int mode)
|
boolean |
backTranslateString(java.lang.String configFileList,
byte[] inbuf,
char[] outbuf,
int[] outlen,
java.lang.String logFilename,
java.lang.String settingsSrting,
int mode)
the brf characters in inbuf are translated to print characters in outbuf according to the settings in the configuration files and setingsStrring. |
int |
charSize()
Return the character size used internally by liblouis and liblouisutdml. |
boolean |
charToDots(java.lang.String tableList,
byte[] inbuf,
byte[] outbuf,
java.lang.String logFile,
int mode)
Convert the utf8 character string in inbuf to Unicode braille dot patterns and place the result as a utf8 string in outbuf. |
boolean |
checkTable(java.lang.String tableList,
java.lang.String logFile,
int mode)
See if the table in tableList exists and is valid. |
boolean |
compileString(java.lang.String tableList,
java.lang.String newEntry,
java.lang.String logFile)
Add a new entrry to a table. |
boolean |
dotsToChar(java.lang.String tableList,
byte[] inbuf,
byte[] outbuf,
java.lang.String logFile,
int mode)
Convert the utf8 string of dot patterns in inbuf to characters and place the result as a utf8 string in outbuf. |
boolean |
file2brl(java.lang.String[] args)
This method performs the functions of the file2brl program in a more contrrolled environment. |
void |
free()
You must call free at the end of your application to free all memory used by liblouisutdml and liblouis. |
static liblouisutdml |
getInstance()
|
static void |
loadLibrary(java.lang.String libraryName)
The libary name must be a complete path. |
void |
setDataPath(java.lang.String path)
Path on which liblouis tables and liblouisutdml files can be found. |
void |
setWriteablePath(java.lang.String path)
Set the path to which temporary files will be written. |
boolean |
translateFile(java.lang.String configFileList,
java.lang.String inputFileName,
java.lang.String outputFileName,
java.lang.String logFileName,
java.lang.String settingsString,
int mode)
The xml document in inputFile is translated into braille and the translation is placed in outputFile. |
boolean |
translateString(java.lang.String configFileList,
byte[] inbuf,
char[] outbuf,
int[] outlen,
java.lang.String logFilename,
java.lang.String settingsSrting,
int mode)
Make a braille translation of the UTF-8 characters in inbuf according to configuration settings to UTF-8 characters in outbuf. |
boolean |
translateTextFile(java.lang.String configFileList,
java.lang.String inputFileName,
java.lang.String outputFileName,
java.lang.String logFileName,
java.lang.String settingsString,
int mode)
The plain-text file in inFile is translated to braille and the translation placed in outputFile as described for the previous method. |
java.lang.String |
version()
Return a string giving the versions of both liblouisutdml and liblouis |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int noContractions
public static final int compbrlAtCursor
public static final int dotsIO
public static final int comp8Dots
public static final int pass1Only
public static final int compbrlLeftCursor
public static final int otherTrans
public static final int ucBrl
public static final int dontInit
public static final int htmlDoc
Method Detail |
---|
public static liblouisutdml getInstance()
public static void loadLibrary(java.lang.String libraryName) throws java.lang.Exception
java.lang.Exception
public java.lang.String version()
public boolean translateString(java.lang.String configFileList, byte[] inbuf, char[] outbuf, int[] outlen, java.lang.String logFilename, java.lang.String settingsSrting, int mode)
public boolean backTranslateString(java.lang.String configFileList, byte[] inbuf, char[] outbuf, int[] outlen, java.lang.String logFilename, java.lang.String settingsSrting, int mode)
public boolean translateFile(java.lang.String configFileList, java.lang.String inputFileName, java.lang.String outputFileName, java.lang.String logFileName, java.lang.String settingsString, int mode)
public boolean translateTextFile(java.lang.String configFileList, java.lang.String inputFileName, java.lang.String outputFileName, java.lang.String logFileName, java.lang.String settingsString, int mode)
public boolean backTranslateFile(java.lang.String configFileList, java.lang.String inputFileName, java.lang.String outputFileName, java.lang.String logFileName, java.lang.String settingsString, int mode)
public boolean charToDots(java.lang.String tableList, byte[] inbuf, byte[] outbuf, java.lang.String logFile, int mode)
public boolean dotsToChar(java.lang.String tableList, byte[] inbuf, byte[] outbuf, java.lang.String logFile, int mode)
public boolean checkTable(java.lang.String tableList, java.lang.String logFile, int mode)
public boolean compileString(java.lang.String tableList, java.lang.String newEntry, java.lang.String logFile)
public void setDataPath(java.lang.String path)
public int charSize()
public boolean file2brl(java.lang.String[] args)
public void setWriteablePath(java.lang.String path)
public void free()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |