[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 17:27:32 +0100

I'm not sure how matches are sorted TBH. We have to look at the code for
that.

John, do you remember?

Could it be that you have not defined a character with 123 as the dots part?



2017-01-06 17:21 GMT+01:00 Dave Mielke <dave@xxxxxxxxx>:

[quoted lines by Bert Frees on 2017/01/06 at 10:33 +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.

Is it possible that best doesn't mean longest? I have a series of matches
for
specific dots, and then a $a rule to catch the rest. It seems that the $a
rule
is being used even though it's last. How can I write a rule to catch the
rest
which has a lower precedence?

Another issue is that lou_translate is giving me dot numbers (e.g. \123/),
rather than characters, for the [$a] rule. Note that this is for back
translation.


Other related posts: