[liblouis-liblouisxml] Re: When x.ctb and x.yaml aren't in the same directory.

  • From: Bert Frees <bertfrees@xxxxxxxxx>
  • To: "liblouis-liblouisxml@xxxxxxxxxxxxx" <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Sat, 14 Jan 2017 11:52:57 +0100

Hi Dave,

Paths in YAML files are relative to the YAML file itself. In addition, if
you set the environment variable LOUIS_TABLEPATH, table paths relative to
this are found too.

2017-01-14 3:51 GMT+01:00 Dave Mielke <dave@xxxxxxxxx>:

lou_checkyaml works fine when gr-forward.yaml and gr-forward.ctb are in the
same directory. When I move gr-forward.yaml to test/yaml/, however, it
doesn't
seem to work properly. When I'm in tables/, I get:

   [android-tables] 19:57> lou_checkyaml ../tests/yaml/gr-forward.yaml
   Cannot resolve table 'unicode.dis'
   1 errors found.
   unicode.dis,gr-forward.ctb could not be found
   Cannot resolve table 'unicode.dis'
   1 errors found.
   unicode.dis,gr-forward.ctb could not be found
   lou_checkyaml:../tests/yaml/gr-forward.yaml:1: Table
unicode.dis,gr-forward.ctb not valid
   [android-tables] 21:41>

And when I'm in tests/yaml/, I get:

   [android-yaml] 21:48> lou_checkyaml gr-forward.yaml
   Cannot resolve table 'unicode.dis'
   1 errors found.
   unicode.dis,gr-forward.ctb could not be found
   Cannot resolve table 'unicode.dis'
   1 errors found.
   unicode.dis,gr-forward.ctb could not be found
   lou_checkyaml:gr-forward.yaml:1: Table unicode.dis,gr-forward.ctb not
valid
   [android-yaml] 21:48>

I assume that there must be a way for it to work, but, so far, I haven't
figured it out.

--
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of
God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: Dave@xxxxxxxxx | Canada  K2A 1H7   | http://FamilyRadio.org/
For a description of the software, to download it and links to
project pages go to http://liblouis.org

Other related posts: