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

  • From: "Michael Whapples" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "mwhapples" for DMARC)
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 2 Jan 2017 08:28:03 +0000

I have a feeling that if * or ? is used in the action column then it should be the only thing. However the documentation is not clear on this and it might be otherwise.


I think that for the first of the context rules you gave it would need to be specified as:

context `[]%englishLetter @56


The third column is specifying what to replace the content of the brackets with, so moving the %englishLetter outside those brackets means it does not need specifying in the third column. If the second column has no brackets then I think it is assumed the brackets surround the whole of the second column.


Similar can be done for the other context rule you gave:

context _!$l[]%englishLetter @56


Does this work for you?


Michael Whapples


On 02/01/2017 01:45, Dave Mielke wrote:

I must be missing something regarding my understanding of the context opcode.
My goal is to prefix the first English letter of a sequence with dots 56. To
that end, I've written:

    class englishLetter ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
    context `[%englishLetter] @56*
    context _!$l[%englishLetter] @56*

What happens is that the dots 56 is generated but that the letter itself is
missing. What's the right way to have the original text copied from the test to
the action?


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

Other related posts: