Package org.liblouis
Class LibLouis
java.lang.Object
org.liblouis.LibLouis
-
Method Summary
Modifier and TypeMethodDescriptionboolean
backTranslate
(String tableList, byte[] inbuf, int[] inlen, byte[] outbuf, int[] outlen, int[] outputPos, int[] inputPos, int[] cursorPos, byte[] typeform, String logFileName, int mode) boolean
backTranslateString
(String tableList, byte[] inbuf, int[] inlen, byte[] outbuf, int[] outlen, byte[] typeform, String logFileName, int mode) int
charSize()
Get the size of widechar used by LibLouis.boolean
compileString
(String tableList, String newEntry, String logFile) Add a new entry to a table.static LibLouis
boolean
static void
loadLibrary
(String libraryPath, String librarySuffix) void
logEnd()
End the liblouis log file.void
Register a callback for liblouis logging.void
setDataPath
(String path) Set the path for which liblouis will look for tables.void
setLogFile
(String fileName) Set the log file for liblouis.void
setLogLevel
(int level) Set liblouis logging level.boolean
translate
(String tableList, byte[] inbuf, int[] inlen, byte[] outbuf, int[] outlen, byte[] typeform, int[] outputPos, int[] inputPos, int[] cursorPos, String logFileName, int mode) boolean
translateString
(String tableList, byte[] inbuf, int[] inlen, byte[] outbuf, int[] outlen, byte[] typeform, String logFileName, int mode)
-
Method Details
-
loadLibrary
- Throws:
Exception
-
getInstance
-
charSize
public int charSize()Get the size of widechar used by LibLouis. -
setDataPath
Set the path for which liblouis will look for tables. -
setLogFile
Set the log file for liblouis. -
logEnd
public void logEnd()End the liblouis log file. -
registerLogCallback
Register a callback for liblouis logging. -
setLogLevel
public void setLogLevel(int level) Set liblouis logging level. -
compileString
Add a new entry to a table. -
translateString
-
translate
-
hyphenate
-
backTranslateString
-
backTranslate
-