Skip to content

typhoon-hil/tmxtool

Repository files navigation

Typhoon HIL TMX Tool typhoon-logo

The TMX Tool is a script used for executing operations related to .tmx files.

These instructions are update each time there is a new version of the tool/new commands added to the tool.


- 12. FEB. 2020.

Tmx tool got it's own Graphical User Interface.

The gui has a help menu in each panel that does something, so no help will be posted on this README. Opening the 'About' panel in the GUI will show the address and what to do if there are any errors, and how to support the project.

The gui can be ran using the "run.bat" file. If any problems occur using this file or the file simply does not run, call your local IT or software colleagues and ask for help.

If all else fails, send a mail to milan.djurisic@typhoon-hil.com and ask for help.


- Long ago ..

All the available commands are listed below with examples:

  • -help

    • parameters: none
    • description: Displays all possible commands and their parameters to the user.
    • example: python tmxtool.py -help
  • -mktmx

    • parameters:
      • (1): 'path-to-source-file.srt' 'source-language' 'path-to-translation-file.srt' 'translation-language'
      • (2): 'path-to-directory' 'source-language'
    • description:
      • (1): Creates a .tmx file that is based on the provided .srt files and their languages. The tmx file is saved with a generated name. The location of the file is displayed when the script is finished.
      • (2): Creates .tmx files using file pairs from the specified directory. In order for a .tmx to be generated, there has to be a pair of files that are named the same, except for the last three characters, which need to be in the form of '-XY', where the XY are the language abbreviations of the file (eg. EN or DE). The resulting .tmx file is named the same as the pairs prefix (before the -XY). This is done for all pairs found in the directory.
    • example:
      • python tmxtool.py "C:/users/file-1.srt" en "C:/users/some-other-file-2-hello.srt" de
      • python tmxtool.py "C:/users/srt-files/" en
  • -mkvtt

    • parameters:
      • (1): 'path-to-tmx-file.tmx' 'language-to-process'
      • (2): 'path-to-directory' 'language-to-process'
    • description:
      • (1): Creates a .vtt file based on the provided path to the tmx file, extracting all items that are marked with the provided language.
      • (2): Does the same as (1), but for each .tmx file found in the provided directory.
    • example:
      • python tmxtool.py -mkvtt "C:/users/file1.tmx" en
      • python tmxtool.py -mkvtt "C:/users/documents/translations/" de

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages