diff --git a/filtres_TMX_pour_Calc/TMX-export.xsl b/filtres_TMX_pour_Calc/TMX-export.xsl index daf37c6..bad4aa8 100644 --- a/filtres_TMX_pour_Calc/TMX-export.xsl +++ b/filtres_TMX_pour_Calc/TMX-export.xsl @@ -5,11 +5,7 @@ Filter to install as an export filter for LibreOffice Calc. --> - - - - - + - - - - - - - - -
- TMX-export for LibreOffice - 0.95 - sentence - application/vnd.oasis.opendocument.spreadsheet - - - - - - - plaintext +
- - + - + - - - - - - - - - - + + + + - - + + + + + + + + + + + + + + + + + + + + + + + - \ No newline at end of file diff --git a/filtres_TMX_pour_Calc/TMX-import.xsl b/filtres_TMX_pour_Calc/TMX-import.xsl index a773246..542b889 100644 --- a/filtres_TMX_pour_Calc/TMX-import.xsl +++ b/filtres_TMX_pour_Calc/TMX-import.xsl @@ -4,10 +4,7 @@ XSLT transformation of a TMX translation memory exchange file into an Open Document Format spreadsheet in two columns. Filter to install as an import filter for LibreOffice Calc. --> - - + - - - + + + + + + + + - - + + - - - - - - + + + - - - - - - - - - - - + + + + + - - - - - - - - - - - - + - + diff --git a/filtres_TMX_pour_Calc/TMX-readme.txt b/filtres_TMX_pour_Calc/TMX-readme.txt new file mode 100644 index 0000000..70be8cf --- /dev/null +++ b/filtres_TMX_pour_Calc/TMX-readme.txt @@ -0,0 +1,58 @@ +Dominique Meeùs (dominique@d-meeus.be, https://d-meeus.be), +created 30-9-2013, version 0.9. +(If my surname is not shown correctly, mind the fact that this file is encoded in UTF-8.) +(One would have written Meeùs in old HTML entities for older charachters encodings.) +Copyright 2013 Dominique Meeùs, see below. + +Modified 28-11-2019 (this readme file) as 0.91 for the position of the command +to install in new versions of LibreOffice. + +Modified 21-5-2020 (the XML export filter) as 0.92 to allow five columns nl-BE, fr-BE, de-DE, en-GB, es-ES. +(Originally two columns only.) + +This TMX-filters software provides two XSLT filters +to import or export TMX translation memories +to and from LibreOffice (or OpenOffice.org) Calc. + +Installation +============ +The package TMX-filters-vx_y.jar has to be installed in LibreOffice +by the standard dialog from the menu Tools, + command Macros > XML Filter Settings… + [command directly XML Filter Settings… in older versions] +Click the button Open Package… and browse to the package. + +Limitation +========== +Source language nl-BE (Dutch) and targets fr-BE (French), de-DE, en-GB, es-ES +are hardcoded in the export filter. +The segments in two or more of the above languages have to be put +in the corresponding columns A (nl), B (fr), C (de), D (en), E (es) of Calc. +Some columns may stay empty. +The source language is marked srclang="nl-BE" near the end of line 3. +It suffices to change this attribute value to change the source language. +The order A (nl), B (fr), C (de), D (en), E (es) in compulsory in Calc +to have the segments correctly marked for their language. +Each segment being so marked, the order has no effect on the translation memory. Only srclang matters +For other languages you have to search and replace these attribute values in the TMX +or edit the export filter. +Feel free to e-mail me if you think of a way to improve this. + +Use +=== +— To read a TMX in LibreOffice Calc: File, Open… +— To produce a TMX sentences aligned in two columns in LibreOffice Calc, +File, Save as… (not Export…) and choose type TMX (likely all the way down a long list). + +License +======= +Copyright 2013, 2020 Dominique Meeùs. +This program is free software: you can redistribute it and/or modify it +under the terms of the GNU Lesser General Public License +as published by the Free Software Foundation, +either version 3 of the License, or (at your option) any later version. +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU Lesser General Public License for more details. +You should have received a copy of the GNU Lesser General Public License along with this program. +If not, see http://www.gnu.org/licenses/.