[liblouis-liblouisxml] Re: SV: Re: SV: Multipass back translation.

  • From: Bert Frees <bertfrees@xxxxxxxxx>
  • To: "liblouis-liblouisxml@xxxxxxxxxxxxx" <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Fri, 6 Jan 2017 10:33:10 +0100

Yes, it is like other translation rules. However, with both multipass and
other translation rules, it is not the first match that is used, but rather
the best match. Only one matching rule is used, the rest is ignored.
Processing resumes at the first character after the replacement. This means
that if the replacement starts at offset 0 and has length 0, the processing
resumes at the same place which results in an endless loop.

2017-01-06 8:09 GMT+01:00 Dave Mielke <dave@xxxxxxxxx>:

I'm having trouble understanding when a multipass opcode (e.g. pass2)
moves on
to the next character. It doesn't seem to be like translation rules where
the
first one that matches is used, the rest are skipped, and processing
resumes at
the next character after the replacement.

Are they all always processed, or is the first one that matches the only
one
that's processed?

Where does processing resume after a match?

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