Yeah, you could have asked me directly, that's precisely all the stuff I figured out last year :-)
The apertium-desodt and apertium-reodt commands should be applied to the XML files that are contained in an odt file, not on the odt directly. When I made the application last summer, the "-f" option did not accept odt files yet, as it basically just did a "desodt" and "reodt". That's why I did all the extracting and rebuilding part in the PHP script (inspired by the apertium-unformat script that existed and did the extracting but had no "reformat" counterpart). I'll give you more details about formatting handling in the PHP app, but not here : I'll avoid spamming the apertium list :-) Le 22/06/2011 17:25, mougeyc a écrit : > On Wed, 22 Jun 2011 17:17:13 +0100, Jimmy O'Regan wrote: >> On 22 June 2011 16:25, mougeyc<[email protected]> wrote: >>> Hi everybody, >>> >>> I have tested the ODT format module, with a file >>> test.odt: Contains just "Apertium" >>> >>> The command >>> $ apertium-unformat test.odt | apertium-reodt> test2.odt >>> gives a corrupted file, that my OOo isn't able to read. >>> >>> OOo version: 3.2.1 >>> Ubuntu 10.10 >>> >>> Any ideas ? > Oh sorry, the command was > $ apertium-desodt test.odt | apertium-reodt> test2.odt > which give the same result (corrupted file) >> Where did you get this 'apertium-unformat' command? Is that part of >> apertium-awi? If so, don't you think you should have asked Arnaud >> first? >> >> The command >> apertium -f odt en-es test.odt out.odt >> works fine for me. The thing that should be noted here is that the >> apertium shellscript takes care of unzipping the .odt file, >> extracting >> the XML from inside it, passing it through apertium-desodt, the mode >> for the language, and apertium-reodt, then zipping the output into >> the >> desired output file. IIRC, apertium-awi takes care of unzip/zip >> itself, so those are probably the missing steps. > Works fine for me too. > So, apertium-desodt doesn't managed the XML from odt file. > > Sorry for the disagreement, > Regards, > MOUGEY Camille > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Apertium-stuff mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/apertium-stuff ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
