packagetmx
Add tmx files to a zipfile.
PackageTmx
A class to package tmx files into a zip file.
Source code in /home/anders/projects/CorpusTools/corpustools/packagetmx.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
__del__()
Close the zipfile.
Source code in /home/anders/projects/CorpusTools/corpustools/packagetmx.py
40 41 42 43 |
|
__init__(packagename)
Set the counter on which filenames are based.
Source code in /home/anders/projects/CorpusTools/corpustools/packagetmx.py
32 33 34 35 36 37 38 |
|
find_tmx_files(tmxdir)
Find the tmx files in dirname, return them as a list.
Source code in /home/anders/projects/CorpusTools/corpustools/packagetmx.py
45 46 47 48 49 50 |
|
generate_filename()
Generate a new file name. Return the new filename.
Source code in /home/anders/projects/CorpusTools/corpustools/packagetmx.py
52 53 54 55 56 57 |
|
write_new_file(tmxFile)
Write the file to the zipfile with a new filename.
Source code in /home/anders/projects/CorpusTools/corpustools/packagetmx.py
59 60 61 62 63 64 65 |
|
main()
Make a package containing the tmx files.
Source code in /home/anders/projects/CorpusTools/corpustools/packagetmx.py
78 79 80 81 82 83 84 85 86 87 |
|
parse_options()
Parse the command line. No arguments expected.
Source code in /home/anders/projects/CorpusTools/corpustools/packagetmx.py
68 69 70 71 72 73 74 75 |
|