[liblouis-liblouisxml] Re: Difficulty with the context opcode.

  • From: Dave Mielke <dave@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 2 Jan 2017 11:30:48 -0500

[quoted lines by Michael Whapples on 2017/01/02 at 10:38 +0000]

OK, I wasn't certain and now you mention getting repeated dots 56 for
that first rule I think I had a similar issue when creating a
different rule.

For that case (empty brackets), lou_trace gives me:

   1.      lowercase       a       1
   2.      context `[]$w   @56
   3.      lowercase       a       1
   4.      context `[]$w   @56

And so on. The log made it easier to count. It looped 256 times.

I have done a bit more looking at it and my original suggestion of
@56* was wrong, it appears that can be used in the third column. So
yes your original suggestion looks correct.

This is what lou_trace gives for my original method (class name within 
brackets, and @56*):

   1.      lowercase       a       1
   2.      context `[$w]   @56*
   3.      lowercase       b       12
   4.      lowercase       c       14
   5.      space           0
   6.      lowercase       d       145
   7.      context _!$l[$w]        @56*
   8.      lowercase       e       15
   9.      lowercase       f       124

-- 
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: