4
#===============================================================================
6
#===============================================================================
9
#4.0.264 - version update
14
class aligner(object):
23
def open(self,parent,cfg):
28
if ktgt[cf.rdrlang] == ktgt[cf.srclang]: return
30
ksrc[cf.rdrlang] = ktgt[cf.srclang]
32
self.p.cfoutput[ktgt]['tempbuff'] = ['\t'.join(['stdout',line]) for line in self.p.cfoutput[ktgt]['tempbuff']]
33
self.p.cfoutput[ksrc]['tempbuff'] = ['\t'.join(['stdout',line]) for line in self.p.cfoutput[ksrc]['tempbuff']]
34
self.p.cferror[ktgt]['tempbuff'] = ['\t'.join(['stderr',line]) for line in self.p.cfoutput[ktgt]['tempbuff']]
35
self.p.cferror[ksrc]['tempbuff'] = ['\t'.join(['stderr',line]) for line in self.p.cfoutput[ksrc]['tempbuff']]
44
'''Command prompt help.'''
45
return "\n%s\n\tUsage:\n\tfrom %s import filter\n"%(
46
os.path.basename(sys.argv[0]),
47
os.path.splitext(os.path.basename(sys.argv[0]))[0]
50
licensetxt=u'''CorpusFiltergraph™ v4.0
51
Copyright © 2010-2012 Precision Translation Tools Co., Ltd.
53
This program is free software: you can redistribute it and/or modify
54
it under the terms of the GNU Lesser General Public License as published by
55
the Free Software Foundation, either version 3 of the License, or
56
(at your option) any later version.
58
This program is distributed in the hope that it will be useful,
59
but WITHOUT ANY WARRANTY; without even the implied warranty of
60
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
61
GNU Lesser General Public License for more details.
63
You should have received a copy of the GNU Lesser General Public License
64
along with this program. If not, see http://www.gnu.org/licenses/.
66
For more information, please contact Precision Translation Tools Co., Ltd.
67
at: http://www.precisiontranslationtools.com'''
69
if __name__ == "__main__":
72
sys.stdout.write(usage().encode('utf8')+'\n')