tmx-to-text


Nametmx-to-text JSON
Version 0.1.8 PyPI version JSON
download
home_pagehttps://github.com/jordimas/tmx-to-text
SummaryConverts TMX files to text files
upload_time2024-07-15 17:10:53
maintainerNone
docs_urlNone
authorJordi Mas
requires_pythonNone
licenseGPLv2+
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![GitHub Actions status](https://github.com/jordimas/tmx-to-text/workflows/Tests/badge.svg)](https://github.com/jordimas/tmx-to-text/actions)
[![PyPI version](https://img.shields.io/pypi/v/tmx-to-text.svg?logo=pypi&logoColor=FFE873)](https://pypi.org/project/tmx-to-text/)
[![PyPI downloads](https://img.shields.io/pypi/dm/tmx-to-text.svg)](https://pypistats.org/packages/tmx-to-text)


# 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

```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jordimas/tmx-to-text",
    "name": "tmx-to-text",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Jordi Mas",
    "author_email": "jmas@softcatala.org",
    "download_url": "https://files.pythonhosted.org/packages/9f/59/b6594fc5a460f60ff83b911af475dda32bb5dad589359f8fc81e86085cc1/tmx-to-text-0.1.8.tar.gz",
    "platform": null,
    "description": "[![GitHub Actions status](https://github.com/jordimas/tmx-to-text/workflows/Tests/badge.svg)](https://github.com/jordimas/tmx-to-text/actions)\n[![PyPI version](https://img.shields.io/pypi/v/tmx-to-text.svg?logo=pypi&logoColor=FFE873)](https://pypi.org/project/tmx-to-text/)\n[![PyPI downloads](https://img.shields.io/pypi/dm/tmx-to-text.svg)](https://pypistats.org/packages/tmx-to-text)\n\n\n# Introduction\n\ntmx-to-text allows convert TMX files into plain text and to get information.\n\nThis tool be used for example to:\n* Extract translations memories into text file for spell checking or post-editing\n* Extract corpuses into text files for traning machine learning similar\n\nThe following command will extract the Catalan and Italian texts out of the TMX file:\n\n```\ntmx-to-text convert -f ca-it.tmx -s ca -t it\n```\n\nRunning the application with *-h* shows the options avaiable for the info and convert commands.\n\n```\nusage: tmx-to-text info [-h] -f TMX_FILE\n\noptional arguments:\n  -h, --help   show this help message and exit\n  -f TMX_FILE  TMX file to show info\n\n\nusage: tmx-to-text convert [-h] -f TMX_FILE -s SOURCE_LANG -t TARGET_LANG [-p PREFIX] [-d] [-x] [-a]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f TMX_FILE           TMX file to convert\n  -s SOURCE_LANG, --source_lang SOURCE_LANG\n                        Source language to export\n  -t TARGET_LANG, --target_lang TARGET_LANG\n                        Target language to export\n  -p PREFIX, --prefix PREFIX\n                        Filename prefix used in the generated text files\n  -d, --debug           Debug memory and execution time\n  -x, --nodup_source    Remove duplicates based on source\n  -a, --nodup_target    Remove duplicates based on target\n\n```\n\n",
    "bugtrack_url": null,
    "license": "GPLv2+",
    "summary": "Converts TMX files to text files",
    "version": "0.1.8",
    "project_urls": {
        "Homepage": "https://github.com/jordimas/tmx-to-text"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6db9ae7b0923744a703db3e5b6bf8838b8f2f7813bdf3a4d1435818093c1bc94",
                "md5": "096382b72ab85c71aeb0ac1ce0e3ea99",
                "sha256": "ecd90c7bb403b31dbecd54eb2f45c95b6c6ac088b11db446c6b8877af36297d4"
            },
            "downloads": -1,
            "filename": "tmx_to_text-0.1.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "096382b72ab85c71aeb0ac1ce0e3ea99",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6417,
            "upload_time": "2024-07-15T17:10:51",
            "upload_time_iso_8601": "2024-07-15T17:10:51.424330Z",
            "url": "https://files.pythonhosted.org/packages/6d/b9/ae7b0923744a703db3e5b6bf8838b8f2f7813bdf3a4d1435818093c1bc94/tmx_to_text-0.1.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f59b6594fc5a460f60ff83b911af475dda32bb5dad589359f8fc81e86085cc1",
                "md5": "3123041ecd9e700523755724135b0005",
                "sha256": "3ae6c320a5e243e3671695a1ab65ee19fe14fe58fe1a978b1f9e15454b51efce"
            },
            "downloads": -1,
            "filename": "tmx-to-text-0.1.8.tar.gz",
            "has_sig": false,
            "md5_digest": "3123041ecd9e700523755724135b0005",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6325,
            "upload_time": "2024-07-15T17:10:53",
            "upload_time_iso_8601": "2024-07-15T17:10:53.553611Z",
            "url": "https://files.pythonhosted.org/packages/9f/59/b6594fc5a460f60ff83b911af475dda32bb5dad589359f8fc81e86085cc1/tmx-to-text-0.1.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-15 17:10:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jordimas",
    "github_project": "tmx-to-text",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tmx-to-text"
}
        
Elapsed time: 0.69688s