apertium / apertium-regtest

Regression testing system for Apertium language data and translators
https://wiki.apertium.org/wiki/Apertium-regtest
GNU General Public License v3.0
1 stars 0 forks source link

fails if input file has unescaped slash / #17

Open unhammer opened 2 years ago

unhammer commented 2 years ago

e.g. 300 km/t has to be written 300 km\/t or it will crash on the first step

TinoDidriksen commented 2 years ago

That's...kinda on purpose? The input is meant to be verbatim, to allow testing complex things and let the pipe definition be in charge of any transformation, including whether the pipe should apertium-destxt or not. But I can see how it's unexpected for most uses.

unhammer commented 2 years ago

Mode definitions have never included deformatting info though. Is there somewhere I can specify that I want txt deformatting on everything (preferably by default)?

mr-martian commented 2 years ago

I thought I had included an option to specify the formatter, but it appears that I didn't. I'll put that on the todo list as well as a global option.