Hi!

For some time (not sure when it started to happen), mode files contain the
filenames of the dictionaries/tagger data/.... quoted, like

*lt-proc '/home/xavi/src/apertium/apertium-spa-cat/spa-cat.automorf.bin' |
\*
*cg-proc -w '/home/xavi/src/apertium/apertium-spa-cat/spa-cat.rlx.bin' | \*
*apertium-tagger -g $2
'/home/xavi/src/apertium/apertium-spa-cat/spa-cat.prob' *


while previously, it was something like

*lt-proc /home/xavi/src/apertium/apertium-es-ca/es-ca.automorf.bin | \*
*apertium-tagger -g $2 /home/xavi/src/apertium/apertium-es-ca/es-ca.prob*


That makes lttoolbox-java to fail to open the files. I think filenames
should be "sanitized", for example here:
https://apertium.projectjj.com/trac/browser/trunk/lttoolbox-java/src/org/apertium/tagger/Tagger.java#L222
(same happens for all other commands).

But when running apertium-viewer in C++, it also fails. As even the C++
mode of apertium-viewer uses parts of lttoolbox-java, my guess is that the
error is more or less related, but I'm not familiar enough with the code
and how java creates and handles native processes to be sure without
spending more time.

Meanwhile, as a workaround, is enough to remove the quotes from the mode
files (making sure there are no whitespaces). Replacing single quotes with
double quotes doesn't help either.

-- 
< Xavi Ivars >
< http://xavi.ivars.me >
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to