[liblouis-liblouisxml] Re: table path from Python

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 1 Feb 2010 09:44:43 -0600

The documentation needs correcting, of course. I don't have much 
experience with Python, but I would guess that it has some kind of 
hard-coded path.

John

On Mon, Feb 01, 2010 at 04:10:13PM +0100, Christian Egli wrote:
> Hi all
> 
> The documentation in the Python module for liblouis says that if you
> invoke louis.translate (the equivalent of lou_translate in C) you have
> to pass a full pathname for the table (at least for the first table)
> unless the table is in the current directory.
> 
> The documentation for lou_translate (line 1859 in doc/liblouis.texi)
> also states that the first table has to be a full pathname. However a
> look at the code doesn't confirm this claim and if I invoke
> lou_checktable with en-us-g2.ctb for example the table is found
> regardless of whether the table is in the current directory. In fact it
> is found in /usr/local/share/liblouis/tables where it was installed. So
> far so good (we're "only" talking about documentation problems).
> 
> Now but if I invoke the translate function from Python the table is not
> found. It says that the table /usr/share/liblouis/tables/en-us-g2.ctb is
> not found (note the missing "local"). I don't understand how this could
> be any different than invoking it from C. Anyone have an idea why from
> Python it assumes that the standard table path is in /usr/share instead
> of /usr/local/share?
> 
> Thanks
> Christian
> -- 
> 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 and to download it go to
> http://www.jjb-software.com

-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

For a description of the software and to download it go to
http://www.jjb-software.com

Other related posts: