Skip to main content

Converts TMX files to text files

Project description

GitHub Actions status PyPI version PyPI downloads

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]

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
 Debug memory and execution time

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

tmx-to-text-0.1.5.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

tmx_to_text-0.1.5-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page