blob: b27c0b0220ebc2fa5552a912ed0d1acaa3f8ac81 [file] [log] [blame]
Name: Braille Translation Library
Short Name: liblouis
URL: https://github.com/liblouis/liblouis
Version: 3.11.0
License: LGPL3 and GPL3
License Android Compatible: No
License File: LICENSE
Security Critical: yes
Description:
Liblouis is an open-source braille translator and back-translator. It
features support for computer and literary braille, and supports
contracted and uncontracted translation for many languages.
LibLouis is used as a web assembly module.
Local Modifications:
* Add liblouis_wrapper.js, a js wrapper to wasm binary.
* Add tables.json, a list of tables with metadata.
* Add cvox-common.cti with common definitions for all tables mentioned in
tables.json.
* The web assembly module is compiled by using emscripten,
using these instructions:
cd third_party/liblouis/src
cp ../cvox-common.cti tables/
./autogen.sh
emconfigure ./configure
emmake make
emcc ./liblouis/.libs/liblouis.a -s RESERVED_FUNCTION_POINTERS=1 -s MODULARIZE=1 \
-s TOTAL_MEMORY=167772160 -s EXPORT_NAME="'liblouisBuild'" \
-s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall','ALLOC_NORMAL', \
'Pointer_stringify', 'allocate','FS', 'cwrap', 'stringToUTF16', \
'UTF16ToString','intArrayFromString', 'intArrayToString', 'setValue',\
'getValue']" --preload-file tables@/ -o liblouis_wasm.js
cp liblouis_wasm.* ../wasm