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

  • From: Bue Vester-Andersen <bue@xxxxxxxxxxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Thu, 5 Jan 2017 23:36:16 +0100

Hi Dave,

I have tested with lou_trace:

The first line
context `[]%englishLetter @56
runs in a loop 256 times and then quits.

The second line
context _!$l[]%englishLetter @56
works if you remove the _ character.

Apparently, Liblouis backtracks one character before running the test in
both cases. Come to think of it, I normally don't need to use the _
character when testing for one character before something that needs to be
acted on.

It could probably use a good look-over.

Bue


-----Oprindelig meddelelse-----
Fra: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] På vegne af Dave Mielke
Sendt: 5. januar 2017 20:12
Til: liblouis-liblouisxml@xxxxxxxxxxxxx
Emne: [liblouis-liblouisxml] Re: SV: Re: SV: Difficulty with the context
opcode.

[quoted lines by Bue Vester-Andersen on 2017/01/05 at 19:27 +0100]

Have you tried it in the middle of the string in stead of as the first 
character?

Yes. I also had a second rule: _!$l[]%greekLetter @56

In case you missed it, I've now added virtual dot e (for English) to the
English letters so as to give them unique representations, and then use:

   pass2 %englishLetter. @56*

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

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

Other related posts:

  • » [liblouis-liblouisxml] SV: Re: SV: Re: SV: Difficulty with the context opcode. - Bue Vester-Andersen