Metadata-Version: 2.1
Name: tmxt
Version: 0.1
Summary: Tool to convert TMX files to text files
Home-page: https://github.com/bartmachielsen/tmxt
Author: Bart Machielsen
Author-email: bartmachielsen@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# tmxt

NOTE:
This is an fork of the original 'https://github.com/sortiz/tmxt' repo. Only modifications are for easier use with pip.

This tool consists on two scripts:
* `tmxplore.py`, a script to determine the language codes available inside a particular TMX file by looking to an excerpt or even the whole file.
* `tmxt.py`, to effectively transform a TMX to a tab-separated text file using the language code list provided in the command

# Requirements

Requires python3 and the libraries included in requirements.txt

## Examples of usage

### `tmxplore.py`

```bash
$ python3 tmxplore.py file.tmx
en es
```

or

```bash
$ cat file.tmx | python3 tmxplore.py
en es
```

### `tmxt.py` 

```bash
$ python3 tmxt.py --codelist en,fr tm.fr-en.tmx en-fr.txt
```

Other

```bash
$ zcat largefile.tmx.gz | python3 tmxt.py --codelist en,es |gzip > bitext.en-es.gz
```



