4
#===============================================================================
5
# Author: Walapa Muangjeen
6
#===============================================================================
9
#4.0.264 - version update
11
from copy import deepcopy
17
'deleteoriginal': False,
20
deleteoriginal = False
25
def open(self,parent,cfg):
26
self.deleteoriginal = cfg['deleteoriginal']
30
self.p.cfextract[k] = deepcopy(self.p.cfoutput[k])
31
if self.deleteoriginal: self.p.cfoutput[k]['tempbuff'] = ['' for line in self.p.cfoutput[k]['tempbuff']]
40
'''Command prompt help.'''
41
return "\n%s\n\tUsage:\n\tfrom %s import filter\n"%(
42
os.path.basename(sys.argv[0]),
43
os.path.splitext(os.path.basename(sys.argv[0]))[0]
46
licensetxt=u'''CorpusFiltergraph™ v4.0
47
Copyright © 2010-2012 Precision Translation Tools Co., Ltd.
49
This program is free software: you can redistribute it and/or modify
50
it under the terms of the GNU Lesser General Public License as published by
51
the Free Software Foundation, either version 3 of the License, or
52
(at your option) any later version.
54
This program is distributed in the hope that it will be useful,
55
but WITHOUT ANY WARRANTY; without even the implied warranty of
56
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57
GNU Lesser General Public License for more details.
59
You should have received a copy of the GNU Lesser General Public License
60
along with this program. If not, see http://www.gnu.org/licenses/.
62
For more information, please contact Precision Translation Tools Co., Ltd.
63
at: http://www.precisiontranslationtools.com'''
65
if __name__ == "__main__":
68
sys.stdout.write(usage().encode('utf8')+'\n')