Crate louis_sys[][src]

Structs

ThreadUnsafetyToken

A token that can only ever exist once in the context of an entire process. This is needed since liblouis is inherently thread-unsafe. Safe abstractions over this crate have to guard all liblouis function calls, allowing them only if this token is held. Note that the token itself does not enable any safe calling of liblouis functions - higher-level bindings need to provide this.

Constants

EMPH_NAME_BOLD
EMPH_NAME_ITALIC
EMPH_NAME_UNDERLINE
logLevels_LOG_ALL
logLevels_LOG_DEBUG
logLevels_LOG_ERROR
logLevels_LOG_FATAL
logLevels_LOG_INFO
logLevels_LOG_OFF
logLevels_LOG_WARN
translationModes_compbrlAtCursor
translationModes_compbrlLeftCursor
translationModes_dotsIO
translationModes_noContractions
translationModes_noUndefinedDots
translationModes_partialTrans
translationModes_pass1Only
translationModes_ucBrl
typeforms_computer_braille
typeforms_emph_1
typeforms_emph_2
typeforms_emph_3
typeforms_emph_4
typeforms_emph_5
typeforms_emph_6
typeforms_emph_7
typeforms_emph_8
typeforms_emph_9
typeforms_emph_10
typeforms_no_contract
typeforms_no_translate
typeforms_plain_text

Functions

lou_backTranslate
lou_backTranslateString
lou_charSize

Return the size of widechar

lou_charToDots
lou_checkTable

Check a translation table for errors.

lou_compileString

Compile a table entry on the fly at run-time

lou_dotsToChar

Convert a string of dot patterns to a string of chars

lou_findTable

Find the best match for a query.

lou_findTables

Find all matches for a query, best match first.

lou_free

Free all memory allocated by liblouis.

lou_getDataPath

Get the path set in the previous function.

lou_getEmphClasses

Return the emphasis class names declared in tableList as a NULL-terminated array of strings. The array is acquired with malloc() and should be released with free(). The strings must not be released, and are no longer valid after lou_free() has been called.

lou_getTable

Load and compile a translation table

lou_getTableInfo

Read metadata from a file.

lou_getTypeformForEmphClass

Get the typeform bit for the named emphasis class.

lou_hyphenate
lou_indexTables

Parse, analyze and index tables.

lou_listTables

List available tables.

lou_logEnd

Close the log file so it can be read by other functions.

lou_logFile

Specify the name of the file to be used by lou_logPrint.

lou_logPrint

Print error messages to a file

lou_readCharFromFile

Read a character from a file, whether big-encian, little-endian or ASCII8

lou_registerLogCallback

Register logging callbacks Set to NULL for default callback.

lou_registerTableResolver

Register a new table resolver. Overrides the default resolver.

lou_setDataPath

Set the path used for searching for tables and liblouisutdml files.

lou_setLogLevel

Set the level for logging callback to be called at

lou_translate
lou_translatePrehyphenated
lou_translateString
lou_version

Type Definitions

formtype
logLevels
logcallback
translationModes
typeforms
widechar