ggm/vm-for-transfer-cpp — Issue #9: allow escapes in blanks and words
Author: unhammer
Created: 2011-10-20 15:02:49+00:00
State: open

It is possible to have words with \^ in them, and escaped ^ and $ in between words, in the apertium stream format. http://paste.pocoo.org/raw/495531/ contains an example of some of the stranger possibilities. The lines with \^ or \$ in them are not handled correctly by apertium-transfervm, specifically:

^word$\^ ^word$

turns into

^word$\^word$

(which may lead to all kinds of trouble later on)

and

^wo\^rd$ ^word$

turns into

^rd$wo\^word$

which is very wrong :)

(http://bugs.apertium.org/cgi-bin/bugzilla/show_bug.cgi?id=89 has some more test cases)