Giter VIP home page Giter VIP logo

liblouis / liblouisutdml Goto Github PK

View Code? Open in Web Editor NEW
22.0 12.0 16.0 3.76 MB

An open-source library providing complete braille transcription services for xml, html and text documents

Home Page: http://liblouis.io

License: GNU General Public License v3.0

C 60.83% C++ 8.97% Java 1.79% Shell 0.43% Makefile 8.63% Batchfile 0.01% M4 19.31% Dockerfile 0.03%
braille formatting accessibility blind

liblouisutdml's Introduction

Introduction

Make check/distcheck

Liblouisutdml is an open-source library providing complete braille transcription services for xml, html and text documents. It translates into appropriate braille codes and formats according to its style sheet and the specifications in the document. A command-line program, file2brl which uses this library is also included. The latest version of liblouis is required. Java bindings are built in to the library.

The library is licensed under the GNU Lesser General Public License (LGPL) version 3 or later. See the file COPYING.LIB.

The command line tools, are licensed under the GNU General Public License version 3.0 or later. See the file COPYING.

Documentation

For documentation, see liblouisutdml.html or liblouisutdml.txt. These are in the docs directory. For an example of a configuration file, see liblouisutdml.ini and preferences.cfg. For examples of semantics-action files, see dtbook.sem and nemeth.sem. These files are in the lbu_files subdirectory. For examples of translation tables, see en-us-g2.ctb, en-us-g1.ctb, chardefs.cti, nemeth.ctb and whatever other files they may include. These are all in the tables directory of liblouis.

Installation

First obtain the latest version of liblouis and compile it. Before compiling, you should chose between 16- and 32-bit Unicode, as described in the README file and the documentation. liblouisutdml inherits this choice from liblouis.

After unpacking the distribution tarball for liblouisutdml go to the directory it creates. After running configure run make and make install. You will need root privileges for the installation step.

This will produce the liblouisutdml library and the program file2brl. To compile the Java bindings go to the java subdirectory and run ant.

Note that that the library and programs will not work properly unless you have first installed the latest version of liblouis.

Docker

There are docker images for liblouisutdml and liblouis. So to run liblouisutdml from docker simply type the following command which will bring you into a shell where you can invoke file2brl:

$ docker run -it liblouis/liblouisutdml /bin/bash
root@74a8b1ad5e03:/usr/src/liblouisutdml# file2brl --help
Usage: file2brl [OPTION] [inputFile] [outputFile]
Translate an xml or a text file into an embosser-ready braille file.
This includes translation into grade two, if desired, mathematical 
codes, etc. It also includes formatting according to a built-in 
style sheet which can be modified by the user.

If inputFile is not specified or '-' input is taken from stdin. If outputFile
is not specified the output is sent to stdout.

  -h, --help          	  display this help and exit
  -v, --version       	  display version information and exit
  -f, --config-file       name a configuration file that specifies
                          how to do the translation
  -b, --backward      	  backward translation
  -r, --reformat      	  reformat a braille file
  -T, --text		  Treat as text even if xml
  -t, --html              html document, not xhtml
  -p, --poorly-formatted  translate a poorly formatted file
  -P, --paragraph-line    treat each block of text ending in a newline
                          as a paragraph. If there are two newline characters
                          a blank line will be inserted before the next paragraph
  -C, --config-setting    specify particular configuration settings
                          They override any settings that are specified in a
                          config file
  -w  --writeable-path    path for temp files and log file
  -l, --log-file          write errors to file2brl.log instead of stderr

Report bugs to <[email protected]>.
root@74a8b1ad5e03:/usr/src/liblouisutdml# 

Docker for cross-compiling

You can use a Dockerfile to cross-compile liblouisutdml using mingw either for 32 or for 64 bit architecture:

# for 32 bit architecture
docker build -f Dockerfile.win32 .
# for 64 bit architecture
docker build -f Dockerfile.win64 .

Then grab the artifact from the docker container.

Or instead let the Makefile do it all for you:

make distwin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.