Package org.liblouis
Class LibLouis
java.lang.Object
org.liblouis.LibLouis
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbackTranslate(String tableList, byte[] inbuf, int[] inlen, byte[] outbuf, int[] outlen, int[] outputPos, int[] inputPos, int[] cursorPos, byte[] typeform, String logFileName, int mode) booleanbackTranslateString(String tableList, byte[] inbuf, int[] inlen, byte[] outbuf, int[] outlen, byte[] typeform, String logFileName, int mode) intcharSize()Get the size of widechar used by LibLouis.booleancompileString(String tableList, String newEntry, String logFile) Add a new entry to a table.static LibLouisbooleanstatic voidloadLibrary(String libraryPath, String librarySuffix) voidlogEnd()End the liblouis log file.voidRegister a callback for liblouis logging.voidsetDataPath(String path) Set the path for which liblouis will look for tables.voidsetLogFile(String fileName) Set the log file for liblouis.voidsetLogLevel(int level) Set liblouis logging level.booleantranslate(String tableList, byte[] inbuf, int[] inlen, byte[] outbuf, int[] outlen, byte[] typeform, int[] outputPos, int[] inputPos, int[] cursorPos, String logFileName, int mode) booleantranslateString(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
-