Oh, I see the mistake. I took the 3.6.0 version of the source code. Which explains the bracket and annotations missing (which I did not removed) and comment thing . Basically I only changed in the last part of the processLatexFile() the block around /* at the end of the line */ if (state.equals("N")) { String endOfLine = lpin.getLinebreak(); /* at the end of the line */ if (state.equals("N")) { /* \par */ if (par.length() > 0) { out.write(processParagraph(commands, par.toString())); out.write(endOfLine);...
Test file
Here is a file with minimal changes. The filter will now find more strings than before (some which do not need to be translated) but retains the file format - which is way more important. The fixed test file will be in the next post.
This should help. As far as I can tell all texts are found and the linebreaks are well, but the test file fails. But at the moment I have no more time to look into it.
This should help. As far as I can tell all texts are found and the linebreaks are well, but the test file fails. But at the moment I have no more time to look into it.
<deleted></deleted>
Well OK, here is the fix. Perhaps it is possible to integrate it.
Any progress on this?
Loss of linebreaks when translating LaTeX files