apertium / apertium-viewer

Tool to view and edit the output of the various stages of an apertium translation
http://wiki.apertium.org/wiki/Apertium-viewer
GNU General Public License v2.0
0 stars 1 forks source link

Run C++ version of Apertium by default instead of Java #4

Open marcriera opened 2 years ago

marcriera commented 2 years ago

Partly related to https://github.com/apertium/apertium-viewer/issues/3

The Java port of Apertium doesn't have feature parity with the C++ version and this leads to all kinds of errors in Apertium Viewer. I think it makes sense to set "C++ version" as default when starting the program or, at least, to remember the last version used via settings.

MyzTyn commented 2 years ago

I think you can add this code line UseCppVersion.setSelected(true); at between line 921 and 922 in src/apertiumview/ApertiumView.java. So the "C++ version" will be default. I can't compile/test it so can anyone test this?

nordfalk commented 2 years ago

That's right. Or right after the invocation of initComponents() - at line 234 ( https://github.com/apertium/apertium-viewer/blob/master/src/apertiumview/ApertiumView.java#L234 ) The initComponents() is auto generated from a layout file and in this way you dont risk the change to get lost if the initComponents() method is ever re-generated again.