Tool to convert TMX files to text files
Project description
tmxt
NOTE: This is an fork of the original 'https://github.com/sortiz/tmxt' repo. Only modifications are for easier use with pip.
To install execute pip3 install tmxt
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
$ python3 tmxplore.py file.tmx
en es
or
$ cat file.tmx | python3 tmxplore.py
en es
tmxt.py
$ python3 tmxt.py --codelist en,fr tm.fr-en.tmx en-fr.txt
Other
$ zcat largefile.tmx.gz | python3 tmxt.py --codelist en,es |gzip > bitext.en-es.gz
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tmxt-0.2.tar.gz
(2.7 kB
view details)
Built Distribution
tmxt-0.2-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file tmxt-0.2.tar.gz
.
File metadata
- Download URL: tmxt-0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3db8c2abecb14437b9074731a36770473ca9658a9c0210c8d29da829ca9730ef |
|
MD5 | 760d0c7e04801941baf9061bba2579c1 |
|
BLAKE2b-256 | a58ab7e460a9ab4395067a33bf2b1a742103ebe3ca016a51d1c2c54fd7c61bc2 |
File details
Details for the file tmxt-0.2-py3-none-any.whl
.
File metadata
- Download URL: tmxt-0.2-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01be63ddafcd0537f3b649130847dd6ac31a42cd1b03d6444cba7d7a89a78000 |
|
MD5 | 606c194789c530cb49e6e36d0c5fb8a8 |
|
BLAKE2b-256 | 62eb9e42bfd90cfc9d608778eabe370d0a239fb618a50fd083b72def0b5e35c3 |