Hello,
I am experiencing Problems using bitext rules together with Rainbow CheckMate (v 0.26 and latest 0.27 Snapshot). The error markup does not work and the error “Error while updating table. Index out of bounds.” is thrown when I click to open the entry. I have reproduced this behavior with v. 2.7 and 2.8, latest snapshot.
First I suspected my rules to be wrong and / or uncomplete, so I did some further testing. The rulechecks for German grammar and bitext files returned no errors.
The rule is the following:
<rule name="Bitext Test">
<rule lang="de" id="BITEXT_TEST_XXXY" name="Bitext Test XXXY">
<pattern>
<source lang="en">
<token>XXXX</token>
</source>
<target>
<marker>
<token>XXXY</token>
</marker>
</target>
</pattern>
<message>Meinten Sie etwa <suggestion><match no="1" regexp_match="^(XXX)Y" regexp_replace="$1X"/></suggestion>?</message>
<example type="incorrect" correction="XXXX">
<srcExample><marker>XXXX</marker> was meant.</srcExample>
<trgExample>Es war <marker>XXXY</marker> gemeint.</trgExample>
</example>
<example type="correct">
<srcExample><marker>XXXX</marker> was meant.</srcExample>
<trgExample>Es war <marker>XXXX</marker> gemeint.</trgExample>
</example>
</rule>
</category>
The xliff file to check is:
<?xml version="1.0" encoding="utf-8"?>