• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..16-Feb-2021-

overrides/liblouis/H16-Feb-2021-191110

src/H16-Feb-2021-1,856,0081,825,697

wasm/H03-May-2022-507,553497,106

BUILD.gnH A D16-Feb-2021912 3226

LICENSEH A D16-Feb-20211 KiB2819

OWNERSH A D16-Feb-2021162 86

PRESUBMIT.pyH A D16-Feb-20211.6 KiB5542

README.chromiumH A D16-Feb-20211.6 KiB4538

cvox-common.ctiH A D16-Feb-2021605 1612

liblouis_library.gniH A D16-Feb-20211.6 KiB5145

liblouis_list_tables.pyH A D16-Feb-20213.9 KiB137101

tables.jsonH A D16-Feb-202117.9 KiB1,1031,102

README.chromium

1Name: Braille Translation Library
2Short Name: liblouis
3URL: https://github.com/liblouis/liblouis
4Version: 3.12.0
5CPEPrefix: cpe:/a:liblouis:liblouis:3.12.0
6License: LGPL3 and GPL3
7License Android Compatible: No
8License File: LICENSE
9Security Critical: yes
10
11Description:
12Liblouis is an open-source braille translator and back-translator. It
13features support for computer and literary braille, and supports
14contracted and uncontracted translation for many languages.
15
16LibLouis is used as a web assembly module.
17
18Local Modifications: * Add liblouis_wrapper.js, a js wrapper to wasm binary.  *
19Add tables.json, a list of tables with metadata.  * Add cvox-common.cti with
20common definitions for all tables mentioned in tables.json.  * The web assembly
21module is compiled by using emscripten.  As of writing, the fastcomp sdk (the
22older compiler) picks up on LibLouis' C exports while the non-fastcomp compiler
23does not.
24
25Use the following commands to set up your environment:
26cd <PATH_TO_EMSDK>
27source ./emsdk_env.sh
28emsdk install latest-fastcomp
29emsdk activate latest-fastcomp
30
31Use the following commands to compile:
32
33cd third_party/liblouis/src
34cp ../cvox-common.cti tables/
35./autogen.sh
36emconfigure ./configure --disable-shared
37emmake make
38emcc ./liblouis/.libs/liblouis.a -s RESERVED_FUNCTION_POINTERS=1 -s MODULARIZE=1 \
39-s TOTAL_MEMORY=167772160 -s EXPORT_NAME="'liblouisBuild'" \
40-s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall','ALLOC_NORMAL', \
41'Pointer_stringify', 'allocate','FS', 'cwrap', 'stringToUTF16', \
42'UTF16ToString','intArrayFromString', 'intArrayToString', 'setValue',\
43'getValue']" --preload-file tables@/ -o liblouis_wasm.js
44cp liblouis_wasm.* ../wasm
45