[liblouis-liblouisxml] Re: Using liblouis on a server?

  • From: Christian Egli <christian.egli@xxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 24 Nov 2016 14:01:14 +0100

On 11/14/2016 06:11 PM, Brandon Biggs wrote:

Hello,
I would like to eventually make a server that one enters in 1-5 words in
text and the site spits out a Braille translation along with an
explanation of the Braille rules for any contractions that are found
(like de(ar) ar trumps ea).

Something along the lines of the lou_trace output?

I am trying to figure out if I should use liblouis in python with a
django server, or try and get it working with Node and either compile
liblouis to Javascript or use Edges JS to access liblouis functions
directly from NodeJS.

Can't you just invoke the lou_trace command (as a shell command) from either Django or NodeJS.

I downloaded the zip file and looked through all the folders and did not
see any python anywhere. I also extracted the tar file and found python
and now I'm not sure what to do with all these .am and .in files. Will
they magically turn into .py files after I run setup.py? the setup
didn't seem to have any special treatment of .in or .am files though.

On a unix machine the installation should generate just the library and the executables under tools. The Python bindings require an extra step which I believe is documented in the README in the python directory.

https://github.com/reiner-dolp/liblouis-js

This sounds dang interesting. I didn't know about that one.

Hope that helps
Christian

--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland


-----
Die SBS unterstuetzt die Leseaktion Prix Chronos. Lesen auch Sie mit! Erfahren 
Sie mehr unter www.prixchronos.ch.
For a description of the software, to download it and links to
project pages go to http://liblouis.org

Other related posts: