pytmx

TMX(Translation Memory eXchange) files in python

烈酒焚心 提交于 2020-04-12 20:38:32
问题 Is there a module for handling TMX(Translation Memory eXchange) files in python, if not, what would be another way to do it? As it stands, I have a giant 2gb file with French-English subtitles. Would it be possible to even handle such a file or would I have to break it down? 回答1: As @hurrial said, you can use translate-toolkit. Install This toolkit is only available using pip. To install it, run: pip install translate-toolkit Usage Assume that you have the following simple sample.tmx file: