Paul Klassen wrote:
Since *.tex files are pure text,
They are not. I.e., they are no more text than XML files.
LaTeX files are formatted files, the issue being that we had to hard-code a parser, as there is no standard parser we could use.
First of all, in text editors that bit of text looks like this:
avec $\ell=\|y\|=(\sum_{p}y_{i}^{2})^{1/2}$ la norme euclidienne de $y$ et $m(\theta)$ une fonction de transformation des coordonnées polaires d'angles $\theta$ telle que $m(\theta)=y/\ell(y)$ et $\|m(\theta)\|=1$. $m(\theta)$ peut également s'exprimer comme suit :
That seems ok.
Supposing there are no other things explaining the behaviour, it looks like a bug in OmegaT.
If I create another *.tex file including only that paragraph and view it in TeXnicCenter (without running build, as it has no front matter), the paragraph looks fine, but loading that file into OmegaT shows the same gibberish. If I load that file in a text editor (Notepad++) and then save it as a text file (*.txt)
No need to "save as". Renaming it from the desktop would do the same thing.
, it looks normal in OmegaT.
When renamed as .txt, you are not using the LaTeX parser, but the Text filter. It has cons and pros. If your LaTeX file is not heavily formatted, it might be simpler to translated it as a text file. You see more LaTeX "tags", and you might have very odd linebreaks, but you have no risk of a wrong interpretation.
(but saving that file back to *.tex does not eliminate the problem).
There's no reason it should, you are just renaming your file.
I'm really not sure whether this is an OmegaT problem, or what.
It's probably a bug.
You could open a bug report on Sourceforge.
Didier