Skip to main content

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

Metadata

Release files for tmxt 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tmxt 0.2
File Size Uploaded
tmxt-0.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tmxt 0.2
File Interpreter ABI Platform
tmxt-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / tmxt-0.2.tar.gz

Download URL tmxt-0.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3db8c2abecb14437b9074731a36770473ca9658a9c0210c8d29da829ca9730ef
BLAKE2b-256 checksum
How to use checksums
a58ab7e460a9ab4395067a33bf2b1a742103ebe3ca016a51d1c2c54fd7c61bc2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / tmxt-0.2-py3-none-any.whl

Download URL tmxt-0.2-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01be63ddafcd0537f3b649130847dd6ac31a42cd1b03d6444cba7d7a89a78000
BLAKE2b-256 checksum
How to use checksums
62eb9e42bfd90cfc9d608778eabe370d0a239fb618a50fd083b72def0b5e35c3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page