[liblouis-liblouisxml] Table authors: Backslash at the end of a line voids the following line, even if in a comment

  • From: Bue Vester-Andersen <bue@xxxxxxxxxxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Thu, 15 Dec 2016 15:19:48 +0100

Hi guys,

 

I have just posted the below issue on github. I am reposting it on the list
because it is a "silent fail", and I thought it might affect some tables
without anyone being aware of it.

 

1. Make a file called testbackslash.ctb with the following lines:

# This is a backslash \

word foo 124

word bar 12

 

2. Run in lou_trace together with a computer Braille table, e.g.
da-dk-g08.ctb.

 

3. Type foo bar, and you get foo b as the result (expected f b).

 

It doesn't matter if you have one or two backslashes at the end of the line.
Also, you can use an opcode in stead of a comment, e.g. nocont \. It will
still void the following line, and the opcode itself will fail silently. If
you must use a backslash at the end of a line as part of an opcode or a
comment, you have to enter \x005c.

 

Is this some attempt at a line continuation feature that was never finished
or documentet?

Perhaps it is worth considering if this "feature" can explain other known
issues.

 

Bue

Other related posts:

  • » [liblouis-liblouisxml] Table authors: Backslash at the end of a line voids the following line, even if in a comment - Bue Vester-Andersen