Converts TMX files to text files
Project description
Introduction
tmx-to-text allows convert TMX files into plain text and to get information.
This tool be used for example to:
- Extract translations memories into text file for spell checking or post-editing
- Extract corpuses into text files for traning machine learning similar
The following command will extract the Catalan and Italian texts out of the TMX file:
tmx-to-text convert -f ca-it.tmx -s ca -t it
Running the application with -h shows the options avaiable for the info and convert commands.
usage: tmx-to-text info [-h] -f TMX_FILE
optional arguments:
-h, --help show this help message and exit
-f TMX_FILE TMX file to show info
usage: tmx-to-text convert [-h] -f TMX_FILE -s SOURCE_LANG -t TARGET_LANG [-p PREFIX] [-d] [-x] [-a]
optional arguments:
-h, --help show this help message and exit
-f TMX_FILE TMX file to convert
-s SOURCE_LANG, --source_lang SOURCE_LANG
Source language to export
-t TARGET_LANG, --target_lang TARGET_LANG
Target language to export
-p PREFIX, --prefix PREFIX
Filename prefix used in the generated text files
-d, --debug Debug memory and execution time
-x, --nodup_source Remove duplicates based on source
-a, --nodup_target Remove duplicates based on target
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmx-to-text-0.1.8.tar.gz.
File metadata
- Download URL: tmx-to-text-0.1.8.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae6c320a5e243e3671695a1ab65ee19fe14fe58fe1a978b1f9e15454b51efce
|
|
| MD5 |
3123041ecd9e700523755724135b0005
|
|
| BLAKE2b-256 |
9f59b6594fc5a460f60ff83b911af475dda32bb5dad589359f8fc81e86085cc1
|
File details
Details for the file tmx_to_text-0.1.8-py3-none-any.whl.
File metadata
- Download URL: tmx_to_text-0.1.8-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecd90c7bb403b31dbecd54eb2f45c95b6c6ac088b11db446c6b8877af36297d4
|
|
| MD5 |
096382b72ab85c71aeb0ac1ce0e3ea99
|
|
| BLAKE2b-256 |
6db9ae7b0923744a703db3e5b6bf8838b8f2f7813bdf3a4d1435818093c1bc94
|