apertium / lttoolbox

Finite state compiler, processor and helper tools used by apertium
http://wiki.apertium.org/wiki/Lttoolbox
GNU General Public License v2.0
18 stars 22 forks source link

Problems with double post-generation #183

Open acmraimx23 opened 6 months ago

acmraimx23 commented 6 months ago

Hello,

We have defined two post-generation files to be able to apply the 'l apostrophe in Asturian. We have defined two post-generators with a rule for that particular case in the second post-generator. In version 3.7 of the engine it works correctly. But applying the same solution in version 3.8.3 does not give the same results. In the first post-generator it removes the tags that are incorporated for the call to the second post-generator.

In version 3.7.2 + ltoolbox 3.5.4

Calling the first post-generator echo "~Ye ~~el ~momentu~. ~~En ~~esta ~casa~." | lt-proc -c -p spa-ast.autopgen.bin output is ~Ye el ~momentu.

Calling the second post-generator echo "~Ye el ~momentu." | lt-proc -c -p spa-ast.autopgen2.bin, output is Ye'l momentu.

In version 3.8.3 + ltoolbox 3.7.1 Calling the first post-generator echo "~Ye ~~el ~momentu~." | lt-proc -c -p spa-ast.autopgen.bin output is Ye el momentu.

It does nothing in the second post-generator because it loses the marks .

Could it be a bug?

Thank's

mr-martian commented 6 months ago

Try changing the the first command from lt-proc -c -p to lt-proc -x -p. The -x option is intergeneration which is the same as post-generation but retains unmatched tildes.