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

  • From: Christian Egli <christian.egli@xxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 9 Mar 2017 12:15:15 +0100

Hi Brandon

Sorry to get back to you only now. Did you get further with this? The output below shows that the Python installation has a problem if you do now run the autotools first. Let me know if you need help or if this is still relevant.

HTH
Christian


On 11/25/2016 01:07 PM, Brandon Biggs wrote:

Hello,
Yes, I could run lou_trace, but I would find it much more useful if it
wouldn't loop. It would work much better if I passed arguments like the
table and the translation string when running the .exe file at first. I
am not quite sure how to run several commands in a row on the same
instance of the shell.
I have tried running Liblouis with NodeJS ffi module, but I get a
strange win32 127 dynamic symbol retrieval error.
I tried running Liblouis with C#, but I got an error that the meta data
wasn't there.
I tried running the setup.py file and got the following error:
Traceback (most recent call last):
  File "setup.py", line 26, in <module>
    import louis
  File
"C:\Users\brandon\Downloads\liblouis-3.0.0.tar\liblouis-3.0.0\python\louis\__init__.py",
line 73, in <module>
    liblouis = _loader["###LIBLOUIS_SONAME###"]
  File "C:\python27\lib\ctypes\__init__.py", line 440, in __getitem__
    return getattr(self, name)
  File "C:\python27\lib\ctypes\__init__.py", line 435, in __getattr__
    dll = self._dlltype(name)
  File "C:\python27\lib\ctypes\__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found

So I've been striking out on every avenue!
It would be good to know what function lou_trace uses to trace the rules
in the table.

I would also like to dynamically create tables that have a different
number of contractions in them. Most of the students we have don't know
all the contractions, so the teacher should be able to set what
contractions the student knows and only those contractions show.
But first I need to have something work from translating in the first place.
Does anyone have any ideas?
Thanks,


On Thu, Nov 24, 2016 at 5:01 AM, Christian Egli <christian.egli@xxxxxx
<mailto:christian.egli@xxxxxx>> wrote:

    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
        <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
    <http://www.prixchronos.ch>.
    For a description of the software, to download it and links to
    project pages go to http://liblouis.org




--
Brandon Biggs
CFO

Sonja Biggs Educational Services Inc <http://sbesinc.com/>


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

For a description of the software, to download it and links to
project pages go to http://liblouis.org

Other related posts: